如何从一个应用程序调用安卓计算器 [英] 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?
推荐答案
从<一个拍摄href="http://groups.google.com/group/android-developers/browse_thread/thread/792eb424da2f946e">here:
Intent i = new Intent();
i.setClassName("com.android.calculator2",
"com.android.calculator2.Calculator");
startActivity(i);
这篇关于如何从一个应用程序调用安卓计算器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文