Wednesday, June 23, 2010

[android-developers] App failing to load on Nexus One

Hey guys,

I have an app delivered OTA that I wrote that works find on every
Android device we have ran it against. However, whenever tested
against the Nexus One, it fails to load. LogCat reports something to
the affect of:

06-22 16:23:53.467: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp }
06-22 16:23:53.467: WARN/ActivityManager(76): Permission Denial:
starting Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp } from ProcessRecord{44879720
148:com.android.launcher2/10016} (pid=148, uid=10016) requires
android.permission.INTERNET
06-22 16:23:53.467: INFO/NotificationService(76): enqueueToast
pkg=com.android.launcher2 callback=android.app.ITransientNotification
$Stub$Proxy@44c0ab90 duration=0
06-22 16:23:53.477: ERROR/Launcher(148): Launcher does not have the
permission to launch Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp }. Make sure to create a MAIN intent-
filter for the corresponding activity or use the exported attribute
for this activity.
06-22 16:23:53.477: ERROR/Launcher(148): java.lang.SecurityException:
Permission Denial: starting Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp } from ProcessRecord{44879720
148:com.android.launcher2/10016} (pid=148, uid=10016) requires
android.permission.INTERNET
06-22 16:23:53.477: ERROR/Launcher(148): at
android.os.Parcel.readException(Parcel.java:1218)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.os.Parcel.readException(Parcel.java:1206)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:
1214)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1373)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.app.Activity.startActivityForResult(Activity.java:2749)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.launcher2.Launcher.startActivityForResult(Launcher.java:
947)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.app.Activity.startActivity(Activity.java:2855)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.launcher2.Launcher.startActivitySafely(Launcher.java:1420)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.launcher2.AllAppsView.onClick(AllAppsView.java:560)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.View.performClick(View.java:2364)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.View.onTouchEvent(View.java:4179)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.launcher2.AllAppsView.onTouchEvent(AllAppsView.java:441)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.View.dispatchTouchEvent(View.java:3709)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1107)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.app.Activity.dispatchTouchEvent(Activity.java:2061)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.os.Looper.loop(Looper.java:123)
06-22 16:23:53.477: ERROR/Launcher(148): at
android.app.ActivityThread.main(ActivityThread.java:4363)
06-22 16:23:53.477: ERROR/Launcher(148): at
java.lang.reflect.Method.invokeNative(Native Method)
06-22 16:23:53.477: ERROR/Launcher(148): at
java.lang.reflect.Method.invoke(Method.java:521)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
06-22 16:23:53.477: ERROR/Launcher(148): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
06-22 16:23:53.477: ERROR/Launcher(148): at
dalvik.system.NativeStart.main(Native Method)

Now what is funny is that the manifest DOES include the
android.permission.INTERNET. Yet for some reason, the Nexus One
doesn't see or honor it.

Anyone have any ideas?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment