C programming

by Michael Dorin » Tue, 15 Dec 2009 23:26:31 GMT


Sponsored Links
 Ok, I see all the examples on how to make a hello world program in c,
but all of them have you do an adb shell to run it.
Assume I want to have my c program do the useful things it already does and
use java for the UI, how would I launch my c program?
How do I bundle everything, java, c, into one distributable package?
Thanks,
 Mike

--



C programming

by Sean Hodges » Wed, 16 Dec 2009 00:25:20 GMT


 


This is probably best asked on the android-ndk mailing list.

My understanding is that you can place your C library into the lib/
directory of your project, and it becomes accessible to your Java code
via JNI calls. You'll probably get a better answer on that list
though.

--


Sponsored Links


Other Threads

1. GPS Question

How can i specify a default location for the emulator without having to load
GPX or KML always..........???



-- 
Atte

[[Jose Luis Ayerdis Espinoza]]
http://blognecronet.blogspot.com

--~--~---------~--~----~------------~-------~--~----~

2. android tool error

Hi,

I am have the Ubuntu PC, where I installed the Android SDK 1.5 r3. But
when I use adb that tool is working fine. But at the same time when I
use the android command I am getting the following error.

Exception in thread "main" java.lang.AssertionError
   at com.android.sdkmanager.CommandLineProcessor.define
(CommandLineProcessor.java:758)
   at com.android.sdkmanager.SdkCommandLine.<init>(SdkCommandLine.java:
96)
   at com.android.sdkmanager.Main.init(Main.java:125)
   at com.android.sdkmanager.Main.run(Main.java:80)
   at com.android.sdkmanager.Main.main(Main.java:72

I am not able to create and launch the emulator using avd.

My System configuration :

OS             : Ubuntu 8.10 Linux android-desktop 2.6.27-7-generic #1
SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linu

Processor : Intel core 2 Duo

Can some one help me to solve my problem...

thx
--~--~---------~--~----~------------~-------~--~----~

3. error on booting android filesystem through NFS

4. mysterious ant build error

5. Google IO phone - has anyone gotten 3G out of AT&T yet?

6. How can i access the home screen to show gif anim there..?

7. Side effect of normal activity stack behaviour causes bug when used with Intent.FLAG_ACTIVITY_REORDER_TO_FRONT