Hi Erel, all
When i try this code on Samsung S7
i have this error:
If i run this code is OK.
Any idea ?
When i try this code on Samsung S7
B4X:
Sub ListView1_ItemClick (Position As Int, Value As Object)
Dim pi As PhoneIntents
Log("Value: " & Value) '= http://www.gazzetta.it/Calcio/Serie-A/Inter/04-01-2017/joao-mario-punta-champions-ancora-possibile-credo-nell-inter-gabigol-suning-180280421151.shtml
StartActivity(pi.OpenBrowser(Value))
End Sub
i have this error:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=
http://www.gazzetta.it/Calcio/Serie...-nell-inter-gabigol-suning-180280421151.shtml
flg=0x20000 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1878)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1545)
at android.app.Activity.startActivityForResult(Activity.java:4283)
at android.app.Activity.startActivityForResult(Activity.java:4230)
at android.app.Activity.startActivity(Activity.java:4567)
at android.app.Activity.startActivity(Activity.java:4535)
at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:698)
at b4a.example.main._listview1_itemclick(main.java:512)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA$1.run(BA.java:293)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
If i run this code is OK.
B4X:
StartActivity(pi.OpenBrowser("http://www.gazzetta.it/Calcio/Serie-A/Juventus/04-01-2017/rugani-carica-feroce-supercoppa-180280496426.shtml"))
Any idea ?