Android Question Attempt to start PayPal Mobile Intent causes error: Unexpected event (missing RaiseSynchronousEvents): ion_event

toby

Well-Known Member
Licensed User
Longtime User
My test code is based on code found here: https://www.b4x.com/android/forum/threads/google-pay-api-conversion.118143/#post-739273

All I want is to launch PayPal Mobile from my app using Intent.


B4X:
    Dim PACKAGE_NAME As String = "com.paypal.android.p2pmobile"
    Dim REQUEST_CODE As Int = 123 'This is not required
    Dim intent As Intent
    'intent.Initialize(intent.ACTION_VIEW,"upi://pay?pa=your-merchant-vpa@xxx&pn=your-merchant-name&mc=your-merchant-code&tr=your-transaction-ref-id&tn=your-transaction-note&am=your-order-amount&cu=INR&url=your-transaction-url")
    intent.Initialize(intent.ACTION_VIEW,"upi://pay?pa=my paypal merchant id was here&pn=ddg&mc=your-merchant-code&tr=20200916114130&tn=your-transaction-note&am=1.23&cu=CAD&url=https://deedeegroup.com")
    intent.SetPackage(PACKAGE_NAME)
    StartActivityForResult(intent)

Result: Paypal mobile wasn't started

Logger connected to: asus ASUS_X017DA
--------- beginning of crash
FATAL EXCEPTION: main
Process: b4a.example, PID: 12780
java.lang.RuntimeException: anywheresoftware.b4a.B4AUncaughtException
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:175)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at b4a.example.main.afterFirstLayout(main.java:111)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:198)
at android.app.ActivityThread.main(ActivityThread.java:6732)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: anywheresoftware.b4a.B4AUncaughtException
at anywheresoftware.b4a.Msgbox.debugWait(Msgbox.java:210)
at anywheresoftware.b4a.debug.Debug.wait(Debug.java:217)
at anywheresoftware.b4a.shell.Shell.debugPause(Shell.java:544)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:417)
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)
... 11 more
--------- beginning of main
null
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2034)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2068)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:387)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:764)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Not starting debugger since process cannot load the jdwp agent.
Connecting to perf service.
SetAppTypeFace- try to flip, app = b4a.example
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = b4a.example
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
common created.
Starting remote logger. Port: 35352
Skia GL Pipeline
QUALCOMM build : cf57c9c, I1cb5c4d1cc
Build Date : 10/15/18
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.2.R1.09.00.00.442.049
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 6.0.7 AArch64
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
type=1400 audit(0.0:471): avc: denied { search } for name="proc" dev="debugfs" ino=11655 scontext=u:r:untrusted_app:s0:c154,c256,c512,c768 tcontext=u:eek:bject_r:qti_debugfs:s0 tclass=dir permissive=0
*** Debugger waiting for connection (0) ***
PFP: 0x005ff110, ME: 0x005ff066
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
Initialized EGL, version 1.4
Swap behavior 2
Loading /vendor/lib64/hw/[email protected] from current namespace instead of sphal namespace.
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
After accept
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Unexpected event (missing RaiseSynchronousEvents): ion_event
Check the unfiltered logs for the full stack trace.
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1348)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:314)
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)

''''''
trunscated due to message size too large. See attached zip file for full log

I hope that some ones, especially who have done something similar successfully could give me some hints.


TIA
 

Attachments

  • startPayPalIntentLog.zip
    3.5 KB · Views: 177
Top