B4A Code Snippet Using StartActivityForResult with JavaObject - Erel    
Jun 18, 2020   
(11 reactions)   
tags: call external for resultSubName: StartActivityForResult
Description: This code demonstrates how JavaObject can be used to call external APIs that should be called with Context.startActivityForResult.
Same implementation in...
link: opened in Android question
Thanks...
link: Please start a new thread for this question in the questions forum....
link: Hello,
how can I open this pircker with a specific item selected?
SubName: StartActivityForResult...
B4A Code Snippet Draw on top of other apps permission - Erel    
Sep 5, 2023   
(19 reactions) Application.PackageName)
StartActivityForResult(i)
Wait For ion_Event (MethodName As String...
Return True
End If
End Sub
Private Sub StartActivityForResult(i As Intent)
Dim jo As JavaObject = GetBA
ion = jo.CreateEvent("anywheresoftware.b4a.IOnActivityResult", "ion", Null)
jo.RunMethod("startActivityForResult", Array As Object(ion, i))
End..., Null)
End Sub
It is an example of how to use StartActivityForResult in a class.
Note that in...
B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    
Nov 1, 2024   
(47 reactions).TITLE", Title)
intent.SetType(MimeType)
StartActivityForResult(intent)
Wait For ion_Event (MethodName As String, Args() As Object)
If -1 = Args(0) Then 'resultCode = RESULT_OK...
End Sub
Sub StartActivityForResult(i As Intent)
Dim jo As JavaObject = GetBA
ion = jo.CreateEvent("anywheresoftware.b4a.IOnActivityResult", "ion", Null)
jo.RunMethod("startActivityForResult", Array(ion, i))
End Sub
Sub GetBA As Object
Dim jo...
B4A Question [Solved] B4XPages and StartActivityForResult - asales    
Jun 17, 2020.intent.extra.ringtone.TYPE", 1)
StartActivityForResult(i)
End Sub
Sub StartActivityForResult....b4a.IOnActivityResult", "ion", Null)
jo.RunMethod("startActivityForResult", Array As Object(ion, i))
End Sub
Is possible to use StartActivityForResult in a B4XPage? If yes, how...
link: Problem solved. Thanks!...
link: .extra.ringtone.TYPE", 1)
StartActivityForResult(i)
End Sub
Sub ion_Event (MethodName As String...
B4A Question Problem with "startActivityForResult" - JOTHA    
Aug 24, 2023.RuntimeException: Method: StartActivityForResult not found in: anywheresoftware.b4a.BA" appears....RuntimeException: Method: StartActivityForResult not found in: anywheresoftware.b4a.BA...
link:
startActivityForResult & the associated onActivityResult are deprecated
Thank you for your...
link: .RuntimeException: Method: StartActivityForResult not found in: anywheresoftware.b4a.BA" appears...
link: Try this, I hope it works for you.
I have tested it in B4A...
B4A Library StartActivityForResult Lib - Ivica Golubovic    
Dec 6, 2023   
(6 reactions).
It also contains the OnActivityResult event and StartActivityForResult module which only contains two...)
Dim ActivityForResult As StartActivityForResult
ActivityForResult.Initialize("Ion"..., ResultCode As Int, Data As Intent, ExtraParams() As Object)
If ResultCode = StartActivityForResult...
link: There is use to update that there is AndroidNetUri2 (Uri wrapper) lib for this lib as a companion....
link: I don't get it?...
B4A Tutorial [java] Guide - Using onActivityResult - Erel    
Jan 12, 2011Starting with B4A V1.1 libraries can use startActivityForResult and receive the onActivityResult... it to BA.startActivityForResult:
public synchronized void startActivityForResult(IOnActivityResult iOnActivityResult, Intent intent)
This method starts the intent and also takes care of mapping....startActivityForResult(ion, i);
}
ion is an instance variable.
When the user calls Listen we create a new... by calling ba.startActivityForResult....
B4A Question StartActivityForResult, get file name and path - Mostez    
Aug 21, 2021-excel")
StartActivityForResult(intent)
Wait For ion_Event (MethodName As String, Args() As Object)
If -1 = Args(0) Then 'resultCode = RESULT_OK
Dim result As Intent = Args(1)
Dim jo As JavaObject = result
Dim fn() As Object = Array(jo.RunMethod...
link: You cannot get the name and path....
B4A Question [wish] StartActivityForResult and OnActivityResult - Eduard    
Feb 6, 2013Support for StartActivityForResult and OnActivityResult
The startActivity(Intent) method is used... this, you call the startActivityForResult(Intent, int) version with a second integer parameter...
link: Ok thx...
link: No idea about the log.
But setcomponent format is wrong, should be "com.b4a.example/.act2"...
link: Can I use an activity of my own app as the activity that opens when calling StartActivityWithResult...
B4A Question [B4X] B4XPages - StartActivityForResult camera failing - Alessandro71    
Jul 29, 2020 on the StartActivityForResult, getting trapped by Catch clause, triggering the "camera not..., u) 'the image will be saved to this path
Try
StartActivityForResult(i)
Catch... error")
End Try
End If
Return Null
End Sub
Sub StartActivityForResult(i As Intent....b4a.IOnActivityResult", "ion", Null)
jo.RunMethod("startActivityForResult", Array...
link: https://www.b4x.com/android/forum/threads/b4x-b4xpages-intent-based-camera.120721/...
Page: 1  
2  
3  
4  
5