How can i run other app?

Joselito

New Member
Licensed User
Longtime User
Hi guys,

I need help with how can i run with b4a other app installed in my phone?

I don't know it is posible to do. I'm sorry but my english is a bit bad.

Regards,


Enviado desde mi LT22i usando Tapatalk 2
 

yttrium

Active Member
Licensed User
Longtime User
Do you mean how can you install B4A applications to your phone?

Or how can you install the .apk files that users post here as an application?
 
Last edited:

Joselito

New Member
Licensed User
Longtime User
No, sorry by my explanation

I need to do an intent or shell to run an app intalled in my phone, from my app build with b4a. So i need to check if it was intalled too.

For instance, in visual basic i can use "shell" to run an app.



Enviado desde mi LT22i usando Tapatalk 2
 

yttrium

Active Member
Licensed User
Longtime User

Oh.

Use StartActivity.
Keywords - Basic4android Wiki

Also, programming questions like this belong in the Updates and Questions forum.
 

Joselito

New Member
Licensed User
Longtime User
But startactivity i think is only for the app made with b4a.
I would like to launch for example, the calc of android.

Do you understand me?

Thanks for your patient

Enviado desde mi LT22i usando Tapatalk 2
 

yttrium

Active Member
Licensed User
Longtime User
No !

To launch the calculator you can use the code from this thread.

Best regards.

I dislike how this is hardcoded - it picks the first package with the string "calc" in it and launches.

Wouldn't this best be served with a ContentChooser?
 

NJDude

Expert
Licensed User
Longtime User
There's no "default calculator app", a manufacturer (like Samsung for example) names the calc app differently, and regarding the "hardcoded" part, that code can be easily modified to display a list to choose from.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…