Ricky D Well-Known Member Licensed User Longtime User Mar 26, 2012 #1 How do you open the inbuilt calc app? I'd like to be able to bring it up on one of my activities. I assume it would be an intent but I don't know how to do those. regards, Ricky Last edited: Mar 26, 2012
How do you open the inbuilt calc app? I'd like to be able to bring it up on one of my activities. I assume it would be an intent but I don't know how to do those. regards, Ricky
Erel B4X founder Staff member Licensed User Longtime User Mar 26, 2012 #2 Here: Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.calculator2/.Calculator") Try StartActivity(i) Catch ToastMessageShow("Calculator app not found.", True) End Try End Sub Upvote 0
Here: Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.calculator2/.Calculator") Try StartActivity(i) Catch ToastMessageShow("Calculator app not found.", True) End Try End Sub
Ricky D Well-Known Member Licensed User Longtime User Mar 26, 2012 #3 oh well... that didn't work. I'll start to build myself a simple calculator as an activity in my app when I get up from sleep. cheers, Ricky Upvote 0
oh well... that didn't work. I'll start to build myself a simple calculator as an activity in my app when I get up from sleep. cheers, Ricky