Android Question Pass parameters to another application

bgsoft

Well-Known Member
Licensed User
Longtime User
Hi:

I need to pass parameters to another application by code

Use this code, and I've tried several things but can not get it to work.

B4X:
Try
    Dim Intent1 As Intent
    Dim pm As PackageManager
              
    Intent1 = pm.GetApplicationIntent("com.sec.android.app.sbrowser")
        
    StartActivity (Intent1)
       
Catch
    ToastMessageShow("Error al ejecutar el programa", True)
End Try



Imagine you want to open the browser and pass an address, as it should do, or another pass any other data application

thanks

regards

Jesús
 

bgsoft

Well-Known Member
Licensed User
Longtime User
Thanks for your answer, but I have more questions:

- As I can know what the other application expects, such as Maps, The Browser, The gallery, etc, is there any way of knowing or to consult?

- Imagine what we already expected the other application, now I need to implement it and send that data in Visual Basic simply put the name of the application, a space and then the parameter (usually), but not as B4A can do. I can put up with the example I gave above, but not as pass the parameter.

thanks

regards

Jesus
 
Upvote 0

bgsoft

Well-Known Member
Licensed User
Longtime User
Thanks for your answer.

What is clear browser.
If I want to pass coordinates to Google Maps, as I pass the coordinates?

thanks
 
Upvote 0
Top