When the user clicks on a button it launches the Android Calculator. The problem is that I want to launch small version of the calculator like in this image:
When I tried with the following code I am able to launch the big version of the calculator:
Intent i = new Intent();
i.setClassName("com.sec.android.app.popupcalculator","com.sec.android.app.popupcalculator.Calculator");
startActivity(i);
Is there a way of launching the small version?
A suggestion which will not resolve directly your problem but can avoid some other problems:
By starting the activity: “com.sec.android.app.popupcalculator.Calculator”, you are launching the calculator for certain Android devices only. Depending on different devices, teh activity name is not the same. So I suggest you to find your calculator as described here:
How to call android calculator on my app for all phones
When about launching your calculator on a small screen, you can maybe use a Custom Dialog: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog or to launch your activity in a small window: see Android – Activity that does not fill the parent screen.