allora ho disinstallato tutte le app da smarphone e riprovato l'esempio originale nel mio post qui sopra ed è partito
ho subito dopo avviato il tuo esempio ed è partito
lo spento e avviato nuovamente ed esce di nuovo schermata bianca con pulsante camera in alto a sinistra e sfondo bianco
qualcosa si incricca.
ho provato poi ad avviare la mia app con integrata la tua che mette il timbro label alla foto scattata, è partita mi ha chiesto permesso di utilizzo fotocamera (concesso) poi è andata in errore alla riga e si è chiusa
Sub B4XPage_Background
cam.Stop
End Sub
errore seguente:
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Service (httputils2service) Start **
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
Error occurred on line: 969 (B4XMainPage)
java.lang.RuntimeException: Class instance was not initialized (camex2)
at anywheresoftware.b4a.debug.Debug.shouldDelegate(Debug.java:242)
at b4a.example.camex2._stop(camex2.java:73)
at b4a.example.b4xmainpage._b4xpage_background(b4xmainpage.java:955)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
at anywheresoftware.b4a.keywords.Common.CallSubNew(Common.java:1032)
at b4a.example.b4xpagesmanager._backgroundstatechanged(b4xpagesmanager.java:993)
at b4a.example.b4xpagesmanager._activity_pause(b4xpagesmanager.java:591)
at b4a.example.b4xpagesdelegator._activity_pause(b4xpagesdelegator.java:76)
at b4a.example.main._activity_pause(main.java:444)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at b4a.example.main.onPause(main.java:275)
at android.app.Activity.performPause(Activity.java:8324)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1545)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5248)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5209)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5156)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2348)
at android.os.Handler.dispatchMessage(Handler.java:106)
non capisco