Android: Launch Calculator when pressing button -



Android: Launch Calculator when pressing button -

i'm developing app , need when user clicks on calculator button launches android calculator. there way of doing or need create calculator myself?

in case have create calculator myself , show in specific part of screen android calculator type of thing 1 (showdialog, popup, toast etc)?

you can launch calculator app this:

intent = new intent(); i.setclassname("com.android.calculator2", "com.android.calculator2.calculator"); startactivity(i);

with starting activity in other package, setclassname(...) takes bundle , class parameter.

note not work on devices not utilize default calculator app.

android calculator

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -