Android Question HELP TO TRANSLATE A CODE TO B4A

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
Hello
They asked me to adapt a code to B4A but I can't find a solution to something.
It is about making an app that communicates by INTENT with another that in turn interfaces with some payment devices. They give me the intent parameters but I have not received a response from the other app. Please, Can someone help me? I attach the example code and the code translated to B4A
Please tell me how to repay your valuable help. Thanks in advance
 

Attachments

  • CODIGO.TXT
    3.6 KB · Views: 325

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
I really appreciate your patience. Thanks.
I attach the project in zip and here the full text of the error:

Registro conectado a: PAX A910
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 73 (Main)
java.lang.RuntimeException: Method: getBA not found in: COM.DATAFONO.main
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
at COM.DATAFONO.main._getba(main.java:550)
at COM.DATAFONO.main._startactivityforresult(main.java:516)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 73 (Main)
java.lang.RuntimeException: Method: getBA not found in: COM.DATAFONO.main
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
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:348)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at COM.DATAFONO.main._getba(main.java:540)
at COM.DATAFONO.main._startactivityforresult(main.java:516)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 73 (Main)
java.lang.RuntimeException: Method: getBA not found in: COM.DATAFONO.main
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
at COM.DATAFONO.main._getba(main.java:550)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at COM.DATAFONO.main._startactivityforresult(main.java:509)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 0 (Main)
java.lang.StackOverflowError
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 73 (Main)
java.lang.RuntimeException: Method: getBA not found in: COM.DATAFONO.main
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
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:348)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at COM.DATAFONO.main._startactivityforresult(main.java:509)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 73 (Main)
java.lang.RuntimeException: Method: getBA not found in: COM.DATAFONO.main
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
at COM.DATAFONO.main._getba(main.java:550)
at COM.DATAFONO.main._startactivityforresult(main.java:516)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 73 (Main)
java.lang.RuntimeException: Method: getBA not found in: COM.DATAFONO.main
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
at COM.DATAFONO.main._getba(main.java:550)
at COM.DATAFONO.main._startactivityforresult(main.java:516)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
 

Attachments

  • DATAFONO.zip
    11.2 KB · Views: 220
Upvote 0

agraham

Expert
Licensed User
Longtime User
Ah, you have that code in the Main activity - the version of GetBA you are using is for use in a class instance. Try this one
B4X:
Sub GetBA As Object
   Dim jo As JavaObject
   Dim cls As String = Me
   cls = cls.SubString("class ".Length)
   jo.InitializeStatic(cls)   
   Return jo.GetField("processBA")
End Sub
 
Upvote 0

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
Ah, you have that code in the Main activity - the version of GetBA you are using is for use in a class instance. Try this one
B4X:
Sub GetBA As Object
   Dim jo As JavaObject
   Dim cls As String = Me
   cls = cls.SubString("class ".Length)
   jo.InitializeStatic(cls)  
   Return jo.GetField("processBA")
End Sub
Error on line 67 and 80

Attached code

Registro conectado a: PAX A910
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 67 (Main)
java.lang.ClassNotFoundException: rbm.pax$wimobile$com$rbmappcomercioswm
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:289)
at anywheresoftware.b4j.object.JavaObject.createEvent(JavaObject.java:253)
at anywheresoftware.b4j.object.JavaObject.CreateEvent(JavaObject.java:216)
at COM.DATAFONO.main._startactivityforresult(main.java:519)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 80 (Main)
java.lang.ClassNotFoundException: Invalid name: COM$DATAFONO$main
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:274)
at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:75)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at COM.DATAFONO.main._getba(main.java:540)
at COM.DATAFONO.main._startactivityforresult(main.java:516)
at COM.DATAFONO.main._btnenviar_click(main.java:501)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
 

Attachments

  • DATAFONO.zip
    11.2 KB · Views: 202
Upvote 0

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
That's OK. It's got the BA successfully and the problem now is in StartActivityForResult where jo.CreateEvent can't find the package. It is installed isn't it?

java.lang.ClassNotFoundException: rbm.pax$wimobile$com$rbmappcomercioswm
If it is installed. I did a process that verifies it. I attach new code and here the error. Doesn't it look for the class in the app in question and not in the target one, depending on the error? Is there something additional to change in the manifest?

I appreciate your help and patience. I will reward you for your good will. Thanks


Registro conectado a: PAX A910
--------- beginning of main
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm instalada!
Error occurred on line: 87 (Main)
java.lang.ClassNotFoundException: Invalid name: COM$DATAFONO$main
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:274)
at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:75)
at COM.DATAFONO.main._getba(main.java:624)
at COM.DATAFONO.main._startactivityforresult(main.java:584)
at COM.DATAFONO.main._btnenviar_click(main.java:515)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm instalada!
Error occurred on line: 87 (Main)
java.lang.ClassNotFoundException: Invalid name: COM$DATAFONO$main
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:274)
at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:75)
at COM.DATAFONO.main._getba(main.java:621)
at COM.DATAFONO.main._startactivityforresult(main.java:581)
at COM.DATAFONO.main._btnenviar_click(main.java:515)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm instalada!
Error occurred on line: 87 (Main)
java.lang.ClassNotFoundException: Invalid name: COM$DATAFONO$main
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:274)
at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:75)
at COM.DATAFONO.main._getba(main.java:621)
at COM.DATAFONO.main._startactivityforresult(main.java:581)
at COM.DATAFONO.main._btnenviar_click(main.java:515)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
** Activity (main) Pause, UserClosed = true **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm instalada!
Error occurred on line: 87 (Main)
java.lang.ClassNotFoundException: Invalid name: COM$DATAFONO$main
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:274)
at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:75)
at COM.DATAFONO.main._getba(main.java:621)
at COM.DATAFONO.main._startactivityforresult(main.java:581)
at COM.DATAFONO.main._btnenviar_click(main.java:515)
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.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
 

Attachments

  • DATAFONO.zip
    11.5 KB · Views: 225
Upvote 0

agraham

Expert
Licensed User
Longtime User
Your intent code looks wrong as well, though I'm not sure if the following is correct as I don't know how that particular intent is meant to be formulated.
B4X:
    Dim i As Intent
    i.Initialize(i.ACTION_SEND,"")
    i.SetComponent(SEND_COMERCIOS)  
    i.SetPackage(PACKAGE)
    i.PutExtra("data_input" ,INPUT)
    i.PutExtra("package",  Application.PackageName)
 
Upvote 0

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
Hello. I followed all your valuable indications and the result was the following:

I FEEL THAT THERE IS VERY LITTLE MISSING ;)



FILTERED RESULT:


Registro conectado a: PAX A910
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **


RESULT WITHOUT FILTER:

Registro conectado a: PAX A910
--------- beginning of main
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad02000 Launching thread(s), CPUs 4
After accept
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad0c000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
java.net.SocketException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:361)
at java.net.Socket.shutdownInput(Socket.java:635)
at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:105)
at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.system.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
at libcore.io.Posix.shutdown(Native Method)
at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:159)
at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:359)
... 4 more
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad7b000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
endAllActiveAnimators on 0xa22e4680 (RippleDrawable) with handle 0xa22e9730
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad7b000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-1/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
After accept
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/47') failed: Permission denied [fd=47]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/47') failed: Permission denied [fd=47]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/47') failed: Permission denied [fd=47]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad7b000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
endAllActiveAnimators on 0xa0679680 (RippleDrawable) with handle 0xa067f600
Background sticky concurrent mark sweep GC freed 7409(427KB) AllocSpace objects, 0(0B) LOS objects, 26% free, 1795KB/2MB, paused 6.164ms total 102.203ms
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-1/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad0e000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
 

Attachments

  • DATAFONO.zip
    11.5 KB · Views: 204
Upvote 0

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
Hello. I followed all your valuable indications and the result was the following:

I FEEL THAT THERE IS VERY LITTLE MISSING ;)



FILTERED RESULT:


Registro conectado a: PAX A910
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **


RESULT WITHOUT FILTER:

Registro conectado a: PAX A910
--------- beginning of main
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad02000 Launching thread(s), CPUs 4
After accept
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad0c000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
java.net.SocketException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:361)
at java.net.Socket.shutdownInput(Socket.java:635)
at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:105)
at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.system.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
at libcore.io.Posix.shutdown(Native Method)
at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:159)
at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:359)
... 4 more
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad7b000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
endAllActiveAnimators on 0xa22e4680 (RippleDrawable) with handle 0xa22e9730
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-2/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad7b000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-1/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
After accept
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/47') failed: Permission denied [fd=47]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/47') failed: Permission denied [fd=47]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/47') failed: Permission denied [fd=47]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad7b000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
endAllActiveAnimators on 0xa0679680 (RippleDrawable) with handle 0xa067f600
Background sticky concurrent mark sweep GC freed 7409(427KB) AllocSpace objects, 0(0B) LOS objects, 26% free, 1795KB/2MB, paused 6.164ms total 102.203ms
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1988)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:357)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
** Service (starter) Destroy (ignored)**
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
ClassLoader referenced unknown path: /data/app/COM.DATAFONO-1/lib/arm
common created.
Starting remote logger. Port: 10308
getInstance() new sInstance = android.view.accessibility.AccessibilityManager@90f43d4, context = COM.DATAFONO.main@c22a97d, userId = 0
Use EGL_SWAP_BEHAVIOR_PRESERVED: false
Initialized EGL, version 1.4
*** Debugger waiting for connection (0) ***
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSDriver.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libRSCpuRef.so". Will use given name.
readlink('/proc/self/fd/44') failed: Permission denied [fd=44]
warning: unable to get realpath for the library "libblas.so". Will use given name.
0xaad0e000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Resume **
App: rbm.pax.wimobile.com.rbmappcomercioswm si está instalada!
The paxStyleFullScreen is = false
** Activity (main) Pause, UserClosed = false **
onActivityResult: wi is null
** Activity (main) Resume **
These are the brief indications that the provider of the app2 gives: I am attaching a zip with other additional things that it provided:


"Send messages through intents, they facilitate communication between the components of the same application or different applications. It is specified which component should be started by its name (package),

to share information through another app, the action ACTION_SEND is specified. Intent i = new Intent (Intent.ACTION_SEND); You must specify the package name of the merchants app:

public static String PACKAGE = "rbm.pax.wimobile.com.rbmappcomercioswm"; public static String SEND_COMERCIOS = "rbm.pax.wimobile.com.rbmappcomercios.features.mainmenu.ui.MainMe nuActivity";

public static String packageName = "package";

By means of ComponentName, the previous information is specified and the instruction is given that when opening APP Shops, and that it is done within the application that makes the call:

ComponentName cn = new ComponentName (PACKAGE, SEND_TRADES);

intent.setComponent (cn);

The application that requires you to open the Commerce APP initializes the application and waits for the result.

Using setResult () you set the result that your activity will return. setResult (Activity.RESULT_OK, intent);

3.1 INPUTS The Commerce APP requires input parameters according to the operation / transaction to be carried out; these parameters are sent in the intent via putExtra (). intent.putExtra ("data_input", input);

The input variable will be a String which will have the input information encapsulated in JSON format..."
 

Attachments

  • INDICATION_FROM_APP2_PROVIDER_(IN_ANDROID_STUDIO).zip
    174 KB · Views: 211
Upvote 0

agraham

Expert
Licensed User
Longtime User
It's got to be the way you are setting up the intent and I can't help with that. As far as I can see you are successfully calling StartActivityForResult and ion_Event is being raised with an error value of 0 which you can check by putting a Log("Event " & Args(0)) at the start of the event.

The message "onActivityResult: wi is null" is being logged by the StartActivityForResult mechanism possibly, but I'm not entirely sure, because it can't find the activity you are invoking.
 
Last edited:
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
further down the rabbit hole.

his app doesn't need anything relating to intents in the manifest. this is because it's using startActivityForResult().

i don't think he can use SetComponent() and SetPackage() at the same time for the same intent. one is bound to override the other. and we really have no way of knowing which of those names is the correct one.

the only way he gets an answer is when the app that he launches with startActivityForResult() runs setResult(). he really needs to figure out how to launch that app, ie, what the correct name of it is. a simple test with startactivity() will do for starters.

we have to assume that activity has a setResult() method. if he can launch the right activity, then he can get back to starting it for result and passing his data.
 
Upvote 0

JUAN CARLOSORDOÑEZ

Member
Licensed User
Longtime User
further down the rabbit hole.

his app doesn't need anything relating to intents in the manifest. this is because it's using startActivityForResult().

i don't think he can use SetComponent() and SetPackage() at the same time for the same intent. one is bound to override the other. and we really have no way of knowing which of those names is the correct one.

the only way he gets an answer is when the app that he launches with startActivityForResult() runs setResult(). he really needs to figure out how to launch that app, ie, what the correct name of it is. a simple test with startactivity() will do for starters.

we have to assume that activity has a setResult() method. if he can launch the right activity, then he can get back to starting it for result and passing his data.
I really appreciate that you give me your time to try to help me. Thank you very much. God blessed you.
I am still in the process of moving the process forward. I'll tell you how it goes.
The tests continue...
 
Upvote 0
Top