Android Question What does this error mean? PLEASE HELP

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
Registo conectado a: Lenovo Lenovo TB3-710I
--------- beginning of main
:null,0
java.lang.NullPointerException: null receiver
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:735)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at b4a.example.main.afterFirstLayout(main.java:97)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5637)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **



THE CODE IS:

Sub Activity_Create(FirstTime As Boolean)

If FirstTime=True Then

DBFileDir=rp.GetSafeDirDefaultExternal("KONNEXION")
Log(DBFileDir)

If File.Exists(DBFileDir, "Konnexion.db") = False Then File.Copy(File.DirAssets,"Konnexion.db",DBFileDir,"Konnexion.db") '
End If
yaingreso=False
txtemaillogin.Initialize("")
txtpassword.Initialize("")

txtpassword.CounterEnabled=True
txtpassword.CounterMaxLength=20
txtpassword.PasswordMode=True

sqlparametros.Initialize(DBFileDir, "Konnexion.db", True)
Activity.LoadLayout("main")
Activity.Title =""
ImageView1.Bitmap=LoadBitmap(File.DirAssets,"splash.png")
ImageView1.Visible=True


ToolBar.InitMenuListener
ToolBar.Title="KonneXion Club"
ToolBar.SubTitle="ProvoKamos emociones"
ToolBar.Color=Colors.red
ToolBar.TitleTextColor=Colors.White
ToolBar.SubTitleTextColor=Colors.White

Activity.AddMenuItem("Perfíl", "Menu")
Activity.AddMenuItem("Notificaciones", "Menu")
Activity.AddMenuItem("Promos destacadas", "Menu")
Activity.AddMenuItem("BackOffice", "Menu")
Activity.AddMenuItem("Proveedores", "Menu")
Activity.AddMenuItem("Salir", "Menu")

leer_id_dispositivo
parametros
If email<>Null Then txtemaillogin.Text=email
If password<>Null Then txtpassword.Text=password
imagen_perfil


End Sub
 

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
Thanks EME. I made some changes and suddenly it stopped working. Fortunately I had a recent copy of the entire project and everything works for me. Thank you very much.
 
Upvote 0
Top