In Android, a code is used to address dialing, locating, webpage, uninstalling, installing, playing, email, text message, and Android.
// The following is a commonly used Intent URI and its example, including the common Intent used in most applications. 002 003 // 1. Open a webpage. the category is Intent. ACTION_VIEW 004 005 Uri uri = Uri. parse ("http://blog.3stdy.com/"); 006 007 Intent intent = new Intent (Intent. ACTION_VIEW, uri); 008 // 2. Open the map and locate a point 009 010 Uri uri = Uri. parse ("geo: 52.76,-79.0342"); 011 012 Intent intent = new Intent (Intent. ACTION_VIEW, uri); 013 014 // 3. Open the dialing interface. The type is Intent. ACTION_DIAL 015 016 Uri uri = Uri. parse ("tel: 10086"); 017 018 Intent intent = ne W Intent (Intent. ACTION_DIAL, uri); 019 020 // 4. Make a call directly. The difference is that, instead of opening the dialing interface 021 022 Uri uri = Uri. parse ("tel: 10086"); 023 024 Intent intent = new Intent (Intent. ACTION_CALL, uri); 025 026 // 5. Uninstall an application. The Intent category is Intent. ACTION_DELETE 027 028 Uri uri = Uri. fromParts ("package", "xxx", null); 029 030 Intent intent = new Intent (Intent. ACTION_DELETE, uri); 031 032 // 6. Install the application. The Intent category is Intent. ACTION_PACK AGE_ADDED 033 034 Uri uri = Uri. fromParts ("package", "xxx", null); 035 036 Intent intent = new Intent (Intent. ACTION_PACKAGE_ADDED, uri); 037 038 // 7. Play the audio file 039 040 Uri uri = Uri. parse ("file: // sdcard/download/everything.mp3"); 041 042 Intent intent = new Intent (Intent. ACTION_VIEW, uri); 043 044 intent. setType ("audio/mp3"); 045 046 // 8. open the mail interface 047 048 Uri uri = Uri. parse ("mailto: admin@3gstdy.com "); 049 050 Intent intent = new Intent (Intent. ACTION_SENDTO, uri); 051 052 // 9. send an email. Different from sending an email, 053 054 Intent intent = new Intent (Intent. ACTION_SEND); 055 056 String [] tos = {"admin@3gstdy.com"}; 057 058 String [] ccs = {"webmaster@3gstdy.com"}; 059 060 intent. putExtra (Intent. EXTRA_EMAIL, tos); 061 062 intent. putExtra (Intent. EXTRA_CC, ccs); 063 064 intent. putExtra (Intent. EXTRA_TEXT, "I come fro M http://blog.3gstdy.com "); 065 066 intent. putExtra (Intent. EXTRA_SUBJECT, "http://blog.3gstdy.com"); intent. setType ("message/rfc882"); 067 068 Intent. createChooser (intent, "Choose Email Client"); 069 070 // send Email 071 072 Intent intent = new Intent (Intent. ACTION_SEND); 073 074 intent. putExtra (Intent. EXTRA_SUBJECT, "The email subject text"); 075 076 intent. putExtra (Intent. EXTRA_STREAM, "file: // sdc Ard/mysong.mp3 "); 077 078 intent. setType ("audio/mp3"); 079 080 startActivity (Intent. createChooser (intent, "Choose Email Client"); 081 082 // 10. send a text message 083 084 Uri uri = Uri. parse ("tel: 10086"); 085 086 Intent intent = new Intent (Intent. ACTION_VIEW, uri); 087 088 intent. putExtra ("sms_body", "I come from http://blog.3gstdy.com"); 089 090 intent. setType ("vnd. android-dir/mms-sms "); 091 092 // 11. send an email directly 093 09. 4 Uri uri = Uri. parse ("smsto: // 100861"); 095 096 Intent intent = new Intent (Intent. ACTION_SENDTO, uri); 097 098 intent. putExtra ("sms_body", "3g android http://blog.3gstdy.com"); 099 100 // 12, send MMS 101 102 Uri uri = Uri. parse ("content: // media/external/images/media/23"); 103 104 Intent intent = new Intent (Intent. ACTION_SEND); 105 106 intent. putExtra ("sms_body", "3g android http://blog.3gstdy.com"); 107 108 intent. putExtra (Intent. EXTRA_STREAM, uri); 109 110 intent. setType ("image/png"); 111 112 113 // thirteen, # Market related 114 115 // 1 // search for an application 116 Uri uri = Uri. parse ("market: // search? Q = pname: pkg_name "); 117 118 Intent it = new Intent (Intent. ACTION_VIEW, uri); 119 120 startActivity (it ); 121 122 // where pkg_name is the full package path for an application 123 124 // 2 // display information about an application 125 Uri = uri. parse ("market: // details? Id = app_id "); 127 128 Intent it = new Intent (Intent. ACTION_VIEW, uri); 129 130 startActivity (it); 131 132 // where app_id is the application ID, find the ID 133 134 135 // by clicking on your application on Market home 136 // page, and notice the ID from the address bar 137 138 // 14. Path Planning 139 140 Uri = uri. parse ("http://maps.google.com/maps? F = d & saddr = startLat % 20 startLng & daddr = endLat % 20 endLng & hl = en "); 141 142 Intent it = new Intent (Intent. ACTION_VIEW, uri); 143 144 startActivity (it );
Why is the text message in Android deleted? Can I manage text messages?
If you do not have a backup, you will not have it! The SMS management function can be installed with applications, or managed with pods on a computer.