摘要:
Activity生命周期见图:Table 1.A summary of the activity lifecycle's callback methods.MethodDescriptionKillable after?NextonCreate()Called when the activity is first created. This is where you should do all of your normal static set up — create views, bind data to lists, and so on. This method is passed 阅读全文
posted @ 2012-10-18 19:25
游鱼
阅读(255)
评论(0)
推荐(0)
摘要:
1.打电话:1 Intent intent = new Intent();2 intent.setAction(Intent.ACTION_CALL);3 intent.setData(Uri.parse("tel:159xxxxxxxx"));4 startActivity(intent);必须在AndroidManifest.xml中添加权限:<uses-permission android:name="android.permission.CALL_PHONE" />2.发短信:1 Intent intentsms = new Inte 阅读全文
posted @ 2012-10-18 15:22
游鱼
阅读(243)
评论(0)
推荐(0)