I gave up on this some time ago but would like to revisit it.
I want to create a button in my app that loads another app if installed on the device.
There are a lot of posts but I can't find a successful resolution.
This code complains on the last line that Intent should be initialized
This is the folder I found on the device and in older versions of my app this worked but that was android target 28 and I just used
StartActivity(pac.GetApplicationIntent("com.ecartek.en.kd"))
App can be found here
I want to create a button in my app that loads another app if installed on the device.
There are a lot of posts but I can't find a successful resolution.
This code complains on the last line that Intent should be initialized
B4X:
Dim pac As PackageManager
Dim in As Intent
in.Initialize(in.ACTION_MAIN, "")
in = pac.GetApplicationIntent("com.ecartek.en.kd")
StartActivity(in)
This is the folder I found on the device and in older versions of my app this worked but that was android target 28 and I just used
StartActivity(pac.GetApplicationIntent("com.ecartek.en.kd"))
App can be found here