A akinnovation Member Licensed User Longtime User Jan 30, 2018 #1 Hi all, I need to lauch the standard phone app. I have try with Code: StartActivity("com.android.phone") and Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN,"com.android.phone") Intent1.SetComponent("com.android.phone/.LaunchActivity") StartActivity(Intent1) I have used the getpackages in order to see if exist the com.android.phone packages and I have see this packages. But when I try to execute the app I have a crash with the error "ActivityNotFoundException" What is my error ? Many thanks marco
Hi all, I need to lauch the standard phone app. I have try with Code: StartActivity("com.android.phone") and Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN,"com.android.phone") Intent1.SetComponent("com.android.phone/.LaunchActivity") StartActivity(Intent1) I have used the getpackages in order to see if exist the com.android.phone packages and I have see this packages. But when I try to execute the app I have a crash with the error "ActivityNotFoundException" What is my error ? Many thanks marco
asales Expert Licensed User Longtime User Jan 30, 2018 #2 Code: Dim i As Intent i.Initialize("android.intent.action.DIAL", "") StartActivity(i) or Code: Dim i As Intent i.Initialize("android.intent.action.DIAL", "tel:" & <telephone number>) StartActivity(i) https://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL Upvote 0
Code: Dim i As Intent i.Initialize("android.intent.action.DIAL", "") StartActivity(i) or Code: Dim i As Intent i.Initialize("android.intent.action.DIAL", "tel:" & <telephone number>) StartActivity(i) https://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL
A akinnovation Member Licensed User Longtime User Jan 30, 2018 #3 Many thanks asales, all work fine now. Upvote 0