hello everyone, I would like to create an app for elderly people where within this app through icons you can open for example facebook, whatsapp, calendar etc, so I need to understand how to open phone apps from my app even externally by leaving mine app, can anyone tell me how to do it?
Be aware that current and future versions of Android do not allow you to get a list of all installed apps. If you want to check if an app is installed you need to specify its package name in your manifest otherwise it will be invisible to your app.
Until now I used PackageManager to check which applications were installed (for example WhatsApp) Currently google requires QUERY_ALL_PACKAGES in Manifest in order to have a list of Installed Packages. Is it possible to know if WhatsApp is installed, via tried through some kind of Try-Catch...
www.b4x.com
There is a QUERY_ALL_PACKAGES permission that you can add to your manifest but Google does not allow most store apps to use it, though it will be fine if you distribute the app yourself.
Google Play restricts the use of high-risk or sensitive permissions, including the QUERY_ALL_PACKAGES permission, which gives visibility into the inventory of installed
I would like to create a panel in my application with icons representing for example: calculator, calendar, facebook, whatsapp, flashlight, alarm clock, etc, all clickable which allow each one to open his application obviously it must not open within my app but allow just to have the ability to open it from my app then open externally from my app.
Agraham I think the link DonManfred posted is what I was looking for, this code taken should be the one to open the applications that are installed on the phone right?
B4X:
Dim in As Intent
Dim pm As PackageManager
in = pm.GetApplicationIntent("com.google.android.youtube")
If in.IsInitialized Then StartActivity(in)
StartActivity(in)
Agraham I think the link DonManfred posted is what I was looking for, this code taken should be the one to open the applications that are installed on the phone right?
B4X:
Dim in As Intent
Dim pm As PackageManager
in = pm.GetApplicationIntent("com.google.android.youtube")
If in.IsInitialized Then StartActivity(in)
StartActivity(in)
I would like to create a panel in my application with icons representing for example: calculator, calendar, facebook, whatsapp, flashlight, alarm clock, etc, all clickable which allow each one to open his application obviously it must not open within my app but allow just to have the ability to open it from my app then open externally from my app.