Dex cache issue

by nickname » Fri, 23 Apr 2010 08:05:15 GMT


Sponsored Links
 i all,
My application is crashing once in a while . Logcat logs are pasted
bellow.

04-11 02:26:37.225 1245 1245 W dalvikvm: Refusing to reopen boot DEX '/
system/framework/frameworks.jar'
04-11 02:26:37.334 1245 1245 E dalvikvm: Can't open dex cache '/data/
dalvik-cache/sys...@app@settings....@classes.dex': No such file or
directory
04-11 02:26:37.345 1245 1245 I dalvikvm: Unable to open or create
cache for /system/app/Settings.apk (/data/dalvik-cache/
sys...@app@settings....@classes.dex)
04-11 02:26:37.350 1245 1245 D AndroidRuntime: Shutting down VM
04-11 02:26:37.373 1245 1245 W dalvikvm: threadid=3: thread exiting
with uncaught exception (group=0x4001e600)
04-11 02:26:37.373 1245 1245 E AndroidRuntime: Uncaught handler:
thread main exiting due to uncaught exception
04-11 02:26:37.389 1245 1245 E AndroidRuntime:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.setupwizard/
com.android.setupwizard.SetupWirelessActivity}:
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.android.settings/
com.android.settings.wifi.WifiSettings}:
java.lang.ClassNotFoundException:
com.android.settings.wifi.WifiSettings in loader
dalvik.system.pathclassloa...@44f0d8d8
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2550)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2566)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread.access$2400(ActivityThread.java:121)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:99)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.os.Looper.loop(Looper.java:123)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:4417)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
java.lang.reflect.Method.invokeNative(Native Method)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
java.lang.reflect.Method.invoke(Method.java:521)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
dalvik.system.NativeStart.main(Native Method)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: Caused by:
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.android.settings/
com.android.settings.wifi.WifiSettings}:
java.lang.ClassNotFoundException:
com.android.settings.wifi.WifiSettings in loader
dalvik.system.pathclassloa...@44f0d8d8
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2471)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2389)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
127)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:
339)
04-11 02:26:37.389 1245 1245 E AndroidRuntime: at
com.an



Other Threads

1. how can i write a Broadcast Receiver that will be invoked when user clicks on any application icon.

AFAIK that is not possible

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------





> 

2. About android.permission.INJECT_EVENTS

Hi All,

I refer to 
http://developer.android.com/intl/zh-TW/reference/android/Manifest.permission.html
and find "android.permission.INJECT_EVENTS"  as below description.

----------------------------------------------------------------------------------------------------------------------
Allows an application to inject user events (keys, touch, trackball)
into the event stream and deliver them to ANY window. Without this
permission, you can only deliver events to windows in your own
process. Very few applications should need to use this permission.
----------------------------------------------------------------------------------------------------------------------

So, I use "<uses-permission
android:name="android.permission.INJECT_EVENT"/> or "<assign-
permission android:name="android.permission.INJECT_EVENT"/>" and add
them into AndroidManifest.xml of my activity to disable key event.

But, when my activity is running, I still could use key, such as home
key..

Would you tell me if I use the wrong method?
or
This permission is not allowed for activity.

Thanks a lot.

Sincerely,
Morris

-- 

3. Problem when trying to on Bluetooth under Beagleboard

4. how to test JniStaticTest?

5. Cannot use third party library

6. How to control the XY postion in ViewStub

7. Help! about sign .apk