the integration of this time to develop testing tools used in some of the things, accumulated, their brains are not very flexible, only think of this method: every time recorded, although very simple (for many people Speaking).
use of file.separator:
In Android , it is officially encouraged to support the use of file.separator to insert the "/" symbol . The escape character of the"/" symbol will be different depending on the configuration system of the different models *; on UNIX Systems, the value of this field is '/' ; in Microsoft Windows on the system, it is ' \ '. It is generally recommended to use file.separator.
The following examples illustrate two ways to do this:
method One :
String mPath1 = Environment.getexternalstoragedirectory ()
. GetPath () + "/" + "test.txt";
File FileName = new file (mPath1);
method Two :
String mpath2= environment.getexternalstoragedirectory ()
. GetPath () +file.separator+ "test.txt";
File Filenam = new file (mPath2);
List Androidmanifest.xml1. Permissions
<!--writing data to external SD Card --
< uses-permission android:name="Android.permission.WRITE_EXTERNAL_STORAGE" />
<!--Read external SD card Data--
< uses-permission android:name="Android.permission.READ_EXTERNAL_STORAGE" />
<!--can create, copy, and delete files or folders --
< uses-permission android:name="Android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<!-- Make a phone call -
< uses-permission
android:name="Android.permission.CALL_PHONE" />
<!-- Read phone status -
< uses-permission android:name="Android.permission.READ_PHONE_STATE" />
<!-- Read Contact Data -
< uses-permission
android:name="Android.permission.READ_CONTACTS" />
<!-- read operation of the Call log data table -
< uses-permission
android:name="Android.permission.READ_CALL_LOG" />
<!-- write operation of the call log data table -
< uses-permission
android:name="Android.permission.WRITE_CALL_LOG" />
<!-- write operations for contact data tables -
< uses-permission
android:name="Android.permission.WRITE_CONTACTS" />
<!-- write operations for SMS data tables -
< uses-permission
android:name="Android.permission.WRITE_SMS" />
<!-- read operation of SMS data table -
< uses-permission
android:name="Android.permission.READ_SMS" />
<!-- send operation of SMS data -
< uses-permission
android:name="Android.permission.SEND_SMS" />
<!-- receive operation of SMS data -
< uses-permission
android:name="Android.permission.RECEIVE_SMS" />
<!-- browser bookmarks, browsing history read operations -
< uses-permission android:name="Com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
<!-- browser bookmarks, browsing history write operations -
< uses-permission android:name="Com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" />
<!-- write operations for MMS attachments -
< uses-permission android:name="Com.android.email.permission.READ_ATTACHMENT"/>
<!-- writing system app &NBSP; " = "1.0" "that column is added --> &NBSP;&NBSP;&NBSP; android:shareduserid = " Android.uid.system "
2. implicit invocation ( Intent "< intent-filter > " (Implicit invocation: does not display a specific activity or app requires a specific abstract " action ":" Com.test.key " )
<!-- An abstraction of Action completion " Action " -
< Action android:name="Com.test.key" />
<!-- two required for implicit invocation category Properties -
< category android:name="Android.intent.category.DEFAULT" /> <category C7>android:name="mycategory" />
Android development accumulate _2) permissions, Intent