[android-developers] DexFile.loadClass signal 11 (Address not mapped to object)at address 0xdeadd00d [at libdvm.so:0x461e0 (dvmAbort+0x27)] occasionally

2014-12-26 Thread shiqun.shi
Hello, In my app, I use DexFile.loadClass to load class from a apk file,but on some android os 2.3.x devices, dexFile.loadClass signal 11 (Address not mapped to object)at address 0xdeadd00d [at libdvm.so:0x461e0 (dvmAbort+0x27)] occasionally。 detail info as below, java.lang.Error: signal

[android-developers] the time between wifiManager.startscan() and the SCAN_RESULTS_AVAILABLE_ACTION intent received takes several hours

2014-12-22 Thread shiqun.shi
Hello, while developing an app, i found that on some devices, after invoking the wifiManager.startscan(), the SCAN_RESULTS_AVAILABLE_ACTION intent is received after several hours. And the continuously wifi scan lead the power consumption of my app goes up to the top 3. Any one knows why

[android-developers] Re: IllegalAccessError occur in a receiver,when a new version apk replaced a older one!

2014-07-14 Thread shiqun.shi
Hi, I got it! It is because that ActivityThread.bindApplication() and ActivityThread.scheduleReceiver are IBinder.FLAG_ONEWAY,so you know things are* asynchronously*。 On Sunday, July 13, 2014 11:29:09 AM UTC+8, shiqun.shi wrote: Hello, In my app, we have a receiver, which listens action

[android-developers] Re: IllegalAccessError occur in a receiver,when a new version apk replaced a older one!

2014-07-13 Thread shiqun.shi
I notice this two methods, handleReceiver() and makeApplication()。 In which case,packageInfo.makeApplication(false, mInstrumentation); was called and mApplication == null? Which will make a receiver be instantiated(by cl.loadClass(component).newInstance())before

[android-developers] Re: IllegalAccessError occur in a receiver,when a new version apk replaced a older one!

2014-07-13 Thread shiqun.shi
, July 13, 2014 11:29:09 AM UTC+8, shiqun.shi wrote: Hello, In my app, we have a receiver, which listens action android.intent.action.PACKAGE_REPLACED. A java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation *occasionally* occur when a new version

Re: [android-developers] Re: IllegalAccessError occur in a receiver,when a new version apk replaced a older one!

2014-07-13 Thread shiqun.shi
://source.android.com/devices/tech/dalvik/dex-format.html 2014-07-13 14:00 GMT+01:00 shiqun.shi shiqun...@163.com javascript:: I notice this two methods, handleReceiver() and makeApplication()。 In which case,packageInfo.makeApplication(false, mInstrumentation); was called and mApplication

[android-developers] Re: IllegalAccessError occur in a receiver,when a new version apk replaced a older one!

2014-07-13 Thread shiqun.shi
will internally call Application app = data.info.makeApplication(data.restrictedBackupMode, null); and mInstrumentation.callApplicationOnCreate(app);, then a receiver be instantiated. On Sunday, July 13, 2014 11:29:09 AM UTC+8, shiqun.shi wrote: Hello, In my app, we have a receiver, which