JNI run time error even I use same code and lib as Android source code.

by Jerry Yang » Tue, 24 Feb 2009 09:47:30 GMT


Sponsored Links
 Hi, Marco
I am really new in android develop ment, so where should I check the system
log?
Thanks
with best wishes
Jerry






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



JNI run time error even I use same code and lib as Android source code.

by Jerry Yang » Tue, 24 Feb 2009 15:39:06 GMT


 Hi, Marco and all
Here is the log:


D/AndroidRuntime( 1221):
D/AndroidRuntime( 1221): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 1221): CheckJNI is OFF
I/ActivityThread( 1223): Publishing provider
com.android.vending.SuggestionsProv
ider: com.android.vending.SuggestionsProvider
D/AndroidRuntime( 1221): --- registering native functions ---
I/jdwp    ( 1221): received file descriptor 23 from ADB
I/ActivityManager(   52): Stopping service:
com.android.vending/.LocalDbSyncServ
ice
I/ActivityManager(   52): Starting activity: Intent { flags=0x10000000
comp={com
.android.hello/com.android.hello.HelloAndroid} }
I/ActivityManager(   52): Start proc com.android.hello for activity
com.android.
hello/.HelloAndroid: pid=1240 uid=10023 gids={}
D/AndroidRuntime( 1221): Shutting down VM
D/dalvikvm( 1221): DestroyJavaVM waiting for non-daemon threads to exit
I/dalvikvm( 1221): DestroyJavaVM shutting VM down
D/dalvikvm( 1221): HeapWorker thread shutting down
D/dalvikvm( 1221): HeapWorker thread has shut down
D/jdwp    ( 1221): JDWP shutting down net...
D/jdwp    ( 1221): +++ peer disconnected
I/dalvikvm( 1221): Debugger has detached; object registry had 1 entries
D/dalvikvm( 1221): VM cleaning up
D/dalvikvm( 1221): LinearAlloc 0x0 used 541332 of 4194304 (12%)
I/jdwp    ( 1240): received file descriptor 10 from ADB
D/dalvikvm( 1240): Trying to load lib /system/lib/libhello.so 0x433b50d8
D/dalvikvm( 1240): Added shared lib /system/lib/libhello.so 0x433b50d8
D/dalvikvm( 1240): No JNI_OnLoad found in /system/lib/libhello.so 0x433b50d8
W/ActivityManager(   52): Activity pause timeout for HistoryRecord{435ae750
{com.android.hello/com.android.hello.HelloAndroid}}
I/ActivityManager(   52): Displayed activity
com.android.hello/.HelloAndroid: 2025 ms
I/ActivityManager(   52): Stopping service:
com.android.vending/.PackageMonitorReceiver$UpdateCheckinDatabaseService
D/dalvikvm(   90): GC freed 2431 objects / 127176 bytes in 276ms
D/dalvikvm( 1223): GC freed 2076 objects / 140976 bytes in 128ms
With best wishes
Jerry









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


Sponsored Links


JNI run time error even I use same code and lib as Android source code.

by Jerry Yang » Tue, 24 Feb 2009 16:46:17 GMT


 Hi, all
I checked the logcat, I find it cannot find the jni_Onload,
Thanks for your information, I find I forget the function jni_Onload method,
it is a new requirement after jni)1.2
Now my hello world working.
Thanks
With best wishes
Jerry







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



Other Threads

1. Android di Bobo

Android
Hape anak anak

On Jun 26, 2010 11:19 AM, "Wing Wahyu Winarno" <wingonandr...@gmail.com>


terbarunya.
:-)
> 

2. Mod: Jangan lupa hari ini, Gathering ID-Android with HTC

Sukses Gathnya bro!
@jakontil
how to froyo a Desire:
 http://alturl.com/ddf8 <---JN powered
ris...@naekgenteng.com

-----Original Message-----
From: Agus Hamonangan <id.andr...@gmail.com>
Sender: id-android@googlegroups.com
Date: Sat, 26 Jun 2010 09:01:19 
To: <id-android@googlegroups.com>
Reply-To: id-android@googlegroups.com
Subject: [id-android] Mod: Jangan lupa hari ini, Gathering ID-Android with HTC

Hari/Tanggal      : Sabtu, 26 Juni 2010
Tempat             : F Cone, Lantai 7, FX Lifestyle X'nter
Alamat             :  Pintu Satu Senayan/Sudirman, Jakarta
Waktu              : 11.00 - 16.00 WIB
Agenda            : Unveiling the HTC Desire


Menghadirkan narasumber:

1. Lucky Sebastian   : HTC Desire
2. Abangkis              : How to Develop apps Cinemator
3. Subanindyo Ardi    : How to Root HTC Desire & HTC EVO 4
4. Dede Ardian          : How to Develop ROM

=========================

Peserta yang mendaftar sudah memenuhi kuota, bahkan melebihi.


Gathering id-android selalu mengutamakan kekeluargaan  dan
kebersamaan, jika tidak terdaftar di list peserta gathering (100
orang) masih tetap diperbolehkan datang, dengan konsekwensi, misalnya:

-Tidak mendapat tempat duduk
-Tidak mendapat snack
-Tidak mendapat minum

Saya percaya, tujuan utama kita gahering adalah untuk berbagi ilmu,
lebih mengakrabkan antar sesama member komunitas ID Android, BUKAN
untuk cari makan gratis, minum gratis dll.




-- 
Salam,


Agus Hamonangan

3. Howto create a quick action bar/badge/Dialog

4. @green Saiful Hidayat's locat...@3:55pm,6/26

5. Save image on SD card

6. Sensor listeners - threads and responsiveness

7. Try the free AndroidShell app to speed you learning of Android programming