Android Question Administrator Example has stopped working.

OliverA

Expert
Licensed User

synasir

Member
Licensed User
Check the LOG. There must be a full error.
Logger connected to: PANASONIC FZ-X1
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
java.lang.RuntimeException: Unable to instantiate receiver anywheresoftware.b4a.objects.AdminReceiver2: java.lang.ClassNotFoundException: Didn't find class "anywheresoftware.b4a.objects.AdminReceiver2" on path: /data/app/anywheresoftware.b4a.samples.admin-1.apk
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2360)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1313)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5074)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "anywheresoftware.b4a.objects.AdminReceiver2" on path: /data/app/anywheresoftware.b4a.samples.admin-1.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2355)
... 10 more
--------- beginning of /dev/log/system
 

OliverA

Expert
Licensed User
Did you add the Administration library? Without it, that error message will be given.
 

synasir

Member
Licensed User
did you edited the manifest? Forgot to add the needed snippets (See tutorial) maybe?
Ok, thanks. Had to change the manifest to:

AddApplicationText(<receiver android:name="anywheresoftware.b4a.objects.AdminManager$AdminReceiver"
 
Last edited:
Top