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?


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


Sponsored Links

Other Threads

1. Bluetooth crashes...


I've had a HTC Magic and bluetooth was slow, but was always working.
Now i've bought a Samsung Galaxy S, and bluetooth pairing with my car's
Audio only lasts for 30 seconds.

I get this in LogCat:


It is really strange because when i flash Samsung original firmware,
everything goes OK.
But as soon as i replace the system's APK's with deodexed APK's, (including
Bluetooth.apk, BluetoothServices.apk and BluetoothOPP.apk) in order to be
able to Theme my ROM, these problems start!

Also, i've tried to delete /data/misc/bluetoothd/[MACADDRES]/* and then pair
The problem was solved for a few days, like if I flashed a clean original
ROM, but then the problem came back and now it's un-solvable....

Any ideas after watching the output?


..::. Artur Martins

unsubscribe: android-kernel+unsubscr...@googlegroups.com

2. Fast destroy multiple WebView's


My problem: I have many WebView's these display images.

Each WebView is item in Gallery view. 10-15 images are loading

Internet is very low, for loading all visible items is need 5-10 sec.

If close Activity and restart it few times, device CPU is hangs long

I try WebView.destroy(); but webview's continues loading images.

How I can unbind webview connection, and destroy it?


3. Should Activity component be starting component for Android apps

4. Issue for resolution 1366x768

5. USB keyboard input on first prompt console also sent to GUI

6. Does ANDROID(FROYO) have two SurfaceFlinger?

7. Develop Games