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 80Ah, 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
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?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
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)
These are the brief indications that the provider of the app2 gives: I am attaching a zip with other additional things that it provided: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 **
I really appreciate that you give me your time to try to help me. Thank you very much. God blessed you.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.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?