摘要: <activity android:name=".ui.MyActivity" > <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="image/*" /> </intent-filter> 阅读全文
posted @ 2012-09-13 22:35 niky 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: static final int PICK_CONTACT_REQUEST = 1; // The request codeprivate void pickContact() { Uri contacts = Uri.parse("content://contacts"); Intent pickContactIntent = new Intent(Intent.ACTION_PICK, contacts); pickContactIntent.setType(Phone.CONTENT_TYPE); // Show user only contacts w/ ph... 阅读全文
posted @ 2012-09-13 21:51 niky 阅读(299) 评论(0) 推荐(0) 编辑
摘要: //define this at the top of the first Activitypublic final static String EXTRA_MESSAGE="com.binni.AndroidUI.MESSAGE";//first ActivityIntent intent =new Intent(this,DisplayMessageActivity.class);EditText edittext=(EditText)findViewById(R.id.edit_message);String str=edittext.getText().toStri 阅读全文
posted @ 2012-09-13 21:34 niky 阅读(585) 评论(0) 推荐(0) 编辑
摘要: // Build the intent //Uri number = Uri.parse("tel:5551234"); //Intent callIntent = new Intent(Intent.ACTION_DIAL, number); Intent intent = new Intent(Intent.ACTION_SEND); // Always use string resources for UI text. This says something like "Share this photo with"... 阅读全文
posted @ 2012-09-13 21:30 niky 阅读(282) 评论(0) 推荐(0) 编辑