Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to invoke the Android calculator from an app

I want to invoke the android calculator from within my app. I don't want to pass anything to it, just provide a quick launch button to it. Can anyone show me how or point me to an example of how to do this?

like image 618
miannelle Avatar asked Jun 18 '10 12:06

miannelle


1 Answers

Taken from here:

Intent i = new Intent();
i.setClassName("com.android.calculator2",
               "com.android.calculator2.Calculator");
startActivity(i); 
like image 145
kgiannakakis Avatar answered Sep 19 '22 07:09

kgiannakakis