34 messages in com.googlegroups.android-internalsRe: [android-internals] Re: native (C...
FromSent OnAttachments
sbVB09 Mar 2008 17:43 
Stone Mirror09 Mar 2008 18:08 
Guilherme09 Mar 2008 18:21 
vlad...@gmail.com09 Mar 2008 18:37 
Stone Mirror09 Mar 2008 18:45 
hackbod09 Mar 2008 22:22 
Stone Mirror10 Mar 2008 06:05 
Digit10 Mar 2008 08:05 
vlad...@gmail.com10 Mar 2008 08:25 
Erik Martino10 Mar 2008 08:34 
Digit10 Mar 2008 08:37 
vlad...@gmail.com10 Mar 2008 08:41 
Digit10 Mar 2008 08:57 
Diluka Moratuwage10 Mar 2008 08:59 
Diluka Moratuwage10 Mar 2008 09:01 
Diluka Moratuwage10 Mar 2008 09:05 
Digit10 Mar 2008 09:07 
Erik Martino10 Mar 2008 09:33 
hackbod10 Mar 2008 09:43 
Digit10 Mar 2008 10:01 
sbVB11 Mar 2008 17:22 
vlad...@gmail.com11 Mar 2008 17:28 
chen yuefeng11 Mar 2008 19:07 
Sean Kelley04 Apr 2008 05:11 
David Given04 Apr 2008 10:28 
Digit04 Apr 2008 15:20 
Akio05 Apr 2008 01:02 
David Given05 Apr 2008 10:42 
Akio09 Apr 2008 05:26 
sbVB15 Apr 2008 06:27 
PowerGUI16 Apr 2008 16:42 
windstorm16 Apr 2008 21:23 
sbVB17 Apr 2008 06:32 
Valluri Kumar21 Apr 2008 20:50 
Subject:Re: [android-internals] Re: native (C++) SDK for Android is definitively needed
From:Diluka Moratuwage (dil@wso2.com)
Date:03/10/2008 09:05:03 AM
List:com.googlegroups.android-internals

I think since information about the limitations of the available C platform inside Android is not available it becomes a very hard job for a new person to get to know and he might mislead by going through a normal ARM/Linux toolchain. At the end, it becomes impossible to link from JNI for sure.

Thanks, Diluka.

Digit wrote:

Dalvik respects some of the JVM's memory semantics. you cannot perform raw-pointer accesses with it for example. this means that compiling C/C++ to it is not generally feasible.

but you can envision writing C/C++ code that is called through JNI (useful for a lot of CPU-intensive stuff, while the App UI is still in Java and can use many Java services). and in Android, such a program crashing would only bring down its process, not the whole system.

On Mon, Mar 10, 2008 at 4:34 PM, Erik Martino <erik@gmail.com <mailto:erik@gmail.com>> wrote:

Another solution would be to create a C/C++ compiler that targets the dalvik VM. Then you would have tonnes of code ready to use that would still be platform independent and doesn't bring the phone down when it crashes.

On Mar 10, 1:43 am, sbVB <sbvi@gmail.com <mailto:sbvi@gmail.com>> wrote: > Hi, all > > For many reasons, Android MUST have a C/C++ SDK. > For instance: I have countess lines of code written in C++ and > wxWidgets; of course, I want to compile this to Android. Don't tell me > Java is better. > I'm focusing in reusing my code. > > I've spent many hours digging out the web, finding "hacker-like" > recipes to use native code on Android, as well as my own hours of > experimentation. > But that's not the way it should be. > > For the sake of Android, the Google development team must provide a > complete C/C++ SDK for Android, much similar of the one found in > Linux. > Development tools such as g++, make, ldconfig, ar, etc. should be > included in this C/C++ SDK for Android. > > If Google does not provide this C/C++ SDK, Android might get > discredited.