Trying to get Calculator intent

Ricky D

Well-Known Member
Licensed User
Longtime User
I am trying to see what the calculator intent on my phone is.

It's not the calculator2 I've seen in the forums.

I was told to look at the unfiltered log but the log keeps scrolling forever and I can't see where the calculator got started.

Apart from this log thing how can I see what intent was used to start the calculator?

What I want to do is start the calculator from my app in certain parts.

regards, Ricky
 
I still can't see where the calculator is getting called in the log.

I'm guessing this is a lost cause for me :(

regards, Ricky
 
Upvote 0
I believe Samsung has their own version of calculator, try this intent to see if it works:
Code: Copy
Dim i As Intent

i.Initialize("", "")
i.SetComponent("com.sec.android.app.popupcalculator/.Calculator")

StartActivity(i)

Note that this will work only on Samsung devices (I think)
 
Upvote 0
thanks NJDude you pointed me in the right direction. This is my code

Code: Copy
Sub Calculator    
   Dim i As Intent    
   i.Initialize("", "")    
   i.SetComponent("com.sec.android.app.calculator/.Calculator")    
   Try        
      StartActivity(i)    
   Catch        
      ToastMessageShow("Calculator app not found.", True)    
   End Try
End Sub

I loaded an intent creator app called Intent Tools and it provides autocomplete text fields so when I typed com.sec.android I scrolled down and saw the calculator as above.

My goodness why do they do this sort of thing I do wonder!

Now I found this simple intent tool I might be able to do some other useful stuff on this galaxy s2!

If I was creating apps for the market (I'm only writing apps for myself) I'd have to create my own calculator wouldn't I? If each manufacturer creates their own package names for it you'd never know how to find it.


regards, Ricky
 
Last edited:
Upvote 0
Back
Top