I'm developing the WorkTime application for Android and I am expieriencing some strange behaviour with my widget.
SO I have a widget on which basically 3 parts are clickable: 1) The header => opens a selection dialog 2) A button => starts an activity to start a new time registration 3) The rest of the widget => launches the main screen of the application Before telling you my exact problem I want to mention to you that I have tried the application on a Nexus One and two emulators (4.0.3 and 2.3.3). The issue is only valid for the Nexus One! So a couple of hours ago I was still using the widget normally, all buttons were working fine. I then installed a new version of the application (with some minor fixus, BUT nothing changed to the widget part or any activity called from within the widget!!!!) And suddenly when I was pressing the header (1) or the button (2) nothing happend and (when connected to my PC) in the LogCat I saw some exceptions (attached at the bottom!). Before the update (so no files related to the widget or the activities launched from the widget have changed!) everything was working fine. I also tried uninstalling the application and installing the old version again (the version that has worked a few hours ago), but still the two activities could not be launched and the same exceptions are thrown. The latest code with which I'm having these issues is availble on http://code.google.com/p/worktime/source/browse/trunk. Does anyone has any idea what could have gone wrong? :s I read somewhere that I could add the "android:exported="true"" property in the AndroidManifest.xml file for those two activities, but why does it suddenly fail for those two activities and it still works for the third...? Here are the two exceptions: 01-09 11:37:43.733: WARN/ActivityManager(92): Unable to send startActivity intent java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10800000 cmp=eu.vranckaert.worktime/.activities.widget.SelectProjectActivity bnds=[254,64][466,140] } from null (pid=-1, uid=10073) requires null at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java: 1973) at com.android.server.am.ActivityManagerService.startActivityInPackage(ActivityManagerService.java: 2271) at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java: 212) at com.android.server.am.ActivityManagerService.startActivityIntentSender(ActivityManagerService.java: 2134) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java: 211) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java: 1467) at android.os.Binder.execTransact(Binder.java:320) at dalvik.system.NativeStart.run(Native Method) 01-09 11:37:44.253: DEBUG/dalvikvm(14556): GC_EXPLICIT freed 1582K, 52% free 4478K/9159K, external 2917K/3577K, paused 170ms 01-09 11:37:44.263: INFO/ActivityManager(92): Starting: Intent { flg=0x10800000 cmp=eu.vranckaert.worktime/.activities.widget.StartTimeRegistrationActivity bnds=[269,146][451,218] } from pid -1 01-09 11:37:44.263: WARN/ActivityManager(92): Permission denied: checkComponentPermission() reqUid=10066 01-09 11:37:44.263: WARN/ActivityManager(92): Permission Denial: starting Intent { flg=0x10800000 cmp=eu.vranckaert.worktime/.activities.widget.StartTimeRegistrationActivity bnds=[269,146][451,218] } from null (pid=-1, uid=10073) requires null 01-09 11:37:44.263: WARN/ActivityManager(92): Unable to send startActivity intent java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10800000 cmp=eu.vranckaert.worktime/.activities.widget.StartTimeRegistrationActivity bnds=[269,146][451,218] } from null (pid=-1, uid=10073) requires null at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java: 1973) at com.android.server.am.ActivityManagerService.startActivityInPackage(ActivityManagerService.java: 2271) at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java: 212) at com.android.server.am.ActivityManagerService.startActivityIntentSender(ActivityManagerService.java: 2134) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java: 211) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java: 1467) at android.os.Binder.execTransact(Binder.java:320) at com.android.server.SystemServer.init1(Native Method) at com.android.server.SystemServer.main(SystemServer.java:625) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 597) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

