Home » Android » How to invoke the Android calculator from an app

How to invoke the Android calculator from an app

Posted by: admin June 15, 2020 Leave a comment

Questions:

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?

How to&Answers:

Taken from here:

Intent i = new Intent();
i.setClassName("com.android.calculator2",
               "com.android.calculator2.Calculator");
startActivity(i);