2013年9月17日

摘要: 方法一Timer与TimerTask(Java实现)public class timerTask extends Activity{private int recLen = 11;private TextView txtView;Timer timer = new Timer();public void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.timertask);txtView = (TextView)findViewById(R.id.txt 阅读全文
posted @ 2013-09-17 17:14 楠妮儿 阅读(259) 评论(0) 推荐(0) 编辑
摘要: [代码] 调用拨号程序 // 给移动客服10086拨打电话 Uri uri = Uri.parse("tel:10086"); Intent intent = new Intent(Intent.ACTION_DIAL, uri); startActivity(intent);[代码] 发送短信或彩信 // 给10086发送内容为“Hello”的短信 Uri uri = Uri.parse("smsto:10086"); Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putEx 阅读全文
posted @ 2013-09-17 16:14 楠妮儿 阅读(128) 评论(0) 推荐(0) 编辑

导航