www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Android development using D

reply Gour <gour atmarama.net> writes:
Hello,

What is the prospect of developing applications for Android using D?

I'm aware there is qt-android
(http://code.google.com/p/android-lighthouse/) which may be used (with
QtD), but wonder if there would be some other solution as well?


Sincerely,
Gour

--=20

Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA
----------------------------------------------------------------
Dec 29 2010
parent reply Trass3r <un known.com> writes:
Well you can always compile to native ARM code with gdc for example.
But normal apps use Java.
Dec 30 2010
parent reply Michel Fortin <michel.fortin michelf.com> writes:
On 2010-12-30 09:44:46 -0500, Trass3r <un known.com> said:

 Well you can always compile to native ARM code with gdc for example.
But has the runtime been ported to ARM? -- Michel Fortin michel.fortin michelf.com http://michelf.com/
Dec 30 2010
next sibling parent reply Klaim <mjklaim gmail.com> writes:
Nope. There is a "native" SDK too. And it have been recently enhanced to
allow native-only application (no java).


On Thu, Dec 30, 2010 at 15:50, Michel Fortin <michel.fortin michelf.com>wrote:

 On 2010-12-30 09:44:46 -0500, Trass3r <un known.com> said:

  Well you can always compile to native ARM code with gdc for example.

 But has the runtime been ported to ARM?

 --
 Michel Fortin
 michel.fortin michelf.com
 http://michelf.com/
Dec 30 2010
parent reply Andre Tampubolon <andre lc.vlsm.org> writes:
But the "native" code still need the VM to run, right?

On 31-Dec-10 7:09 AM, Klaim wrote:
 Nope. There is a "native" SDK too. And it have been recently enhanced to
 allow native-only application (no java).


 On Thu, Dec 30, 2010 at 15:50, Michel Fortin <michel.fortin michelf.com
 <mailto:michel.fortin michelf.com>> wrote:

     On 2010-12-30 09:44:46 -0500, Trass3r <un known.com
     <mailto:un known.com>> said:

         Well you can always compile to native ARM code with gdc for example.


     But has the runtime been ported to ARM?

     --
     Michel Fortin
     michel.fortin michelf.com <mailto:michel.fortin michelf.com>
     http://michelf.com/
-- - Andre Tampubolon -
Dec 30 2010
parent Trass3r <un known.com> writes:
 But the "native" code still need the VM to run, right?
Nope.
Dec 31 2010
prev sibling parent Johannes Pfau <spam example.com> writes:
Michel Fortin wrote:
On 2010-12-30 09:44:46 -0500, Trass3r <un known.com> said:

 Well you can always compile to native ARM code with gdc for example.
But has the runtime been ported to ARM?
There was no explicit porting, but I think it just works. I compiled a hello world with gdc2 for ARM some time ago and it basically worked. If optimization is enabled though, all programs enter an infinite loop, see: https://bitbucket.org/goshawk/gdc/issue/120/gc-enters-an-infinite-loop-on-a= rm When I was trying to debug that issue I also enabled the GC debug output and everything was correct. The gc collected objects and freed memory as it should. Iain pushed some fixes to the floating point control in phobos, but that's the only ARM specific change I'm aware of. But generating code for Android could be more complicated. I'm not sure if the NDK is enough. Maybe you'd have to root your phone, but then it should be possible.
Dec 31 2010