歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> Linux編程

Android 基本工程配置

Android 基本工程配置:
  1. AndroidManifest.xml  
  2. <?xml version="1.0" encoding="utf-8" ?>  
  3. + <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.archermind.activity" android:versionCode="1" android:versionName="1.0">  
  4. - <application android:icon="@drawable/icon" android:label="@string/app_name">  
  5. - <activity android:name=".MailCompose" android:screenOrientation="portrait">  
  6. - <intent-filter>  
  7.   <category android:name="android.intent.category.DEFAULT" />  
  8.   <data android:mimeType="vnd.android.cursor.item/vnd.google.mail" />  
  9.   </intent-filter>  
  10. - <intent-filter>  
  11.   <category android:name="android.intent.category.DEFAULT" />  
  12.   <data android:mimeType="vnd.android.cursor.dir/vnd.google.mail" />  
  13.   </intent-filter>  
  14.   </activity>  
  15. - <activity android:name=".MailBox" android:label="@string/all_mail" android:screenOrientation="portrait">  
  16. - <intent-filter>  
  17.   <category android:name="android.intent.category.DEFAULT" />  
  18.   <data android:mimeType="vnd.android.cursor.item/vnd.google.mail" />  
  19.   </intent-filter>  
  20. - <intent-filter>  
  21.   <category android:name="android.intent.category.DEFAULT" />  
  22.   <data android:mimeType="vnd.android.cursor.dir/vnd.google.mail" />  
  23.   </intent-filter>  
  24.   </activity>  
  25. - <activity android:name=".MailView" android:screenOrientation="portrait">  
  26. - <intent-filter>  
  27.   <category android:name="android.intent.category.DEFAULT" />  
  28.   <data android:mimeType="vnd.android.cursor.item/vnd.google.mail" />  
  29.   </intent-filter>  
  30. - <intent-filter>  
  31.   <category android:name="android.intent.category.DEFAULT" />  
  32.   <data android:mimeType="vnd.android.cursor.dir/vnd.google.mail" />  
  33.   </intent-filter>  
  34.   </activity>  
  35. - <activity android:name=".MailSearch" android:label="@string/search_mail" android:screenOrientation="portrait">  
  36. - <intent-filter>  
  37.   <category android:name="android.intent.category.DEFAULT" />  
  38.   <data android:mimeType="vnd.android.cursor.item/vnd.google.mail" />  
  39.   </intent-filter>  
  40. - <intent-filter>  
  41.   <category android:name="android.intent.category.DEFAULT" />  
  42.   <data android:mimeType="vnd.android.cursor.dir/vnd.google.mail" />  
  43.   </intent-filter>  
  44.   </activity>  
  45.   <provider android:name="DataContentProvider" android:authorities="com.android.archermind.dao.info.contentprovider" />  
  46.   <activity android:name=".RegistrationNew" android:screenOrientation="portrait" />  
  47.   <activity android:name=".RegistrationActive" android:screenOrientation="portrait" />  
  48.   <activity android:name=".RegistrationSuc" android:screenOrientation="portrait" />  
  49.   <activity android:name=".RegistrationBindMainMail" android:screenOrientation="portrait" />  
  50.   <activity android:name=".RegistrationBindCommonMail" android:screenOrientation="portrait" />  
  51.   <activity android:name=".RegistrationAdvSetting" android:screenOrientation="portrait" />  
  52.   <activity android:name=".RegistrationSmtpSetting" android:screenOrientation="portrait" />  
  53.   <activity android:name=".SettingGlobalProperties" android:label="@string/setting" android:screenOrientation="portrait" />  
  54.   <activity android:name=".Setting" android:label="@string/setting" android:screenOrientation="portrait" />  
  55.   <activity android:name=".SettingSecPass" android:screenOrientation="portrait" />  
  56. - <activity android:name=".SettingEmailAccount" android:screenOrientation="portrait" android:label="@string/setting_email_account">  
  57. - <intent-filter>  
  58.   <category android:name="android.intent.category.DEFAULT" />  
  59.   <data android:mimeType="vnd.android.cursor.item/vnd.google.mail" />  
  60.   </intent-filter>  
  61. - <intent-filter>  
  62.   <category android:name="android.intent.category.DEFAULT" />  
  63.   <data android:mimeType="vnd.android.cursor.dir/vnd.google.mail" />  
  64.   </intent-filter>  
  65.   </activity>  
  66.   <activity android:name=".EmailAddressList" android:screenOrientation="portrait" />  
  67.   <activity android:name=".ContactView" android:screenOrientation="portrait" />  
  68.   <activity android:name=".FolderStore" android:screenOrientation="portrait" />  
  69.   <activity android:name=".ContactsManager" android:screenOrientation="portrait" />  
  70.   <activity android:name=".ContactEdit" android:screenOrientation="portrait" />  
  71.   <activity android:name=".EmailAdressSelect" android:screenOrientation="portrait" />  
  72.   <service android:name="ReceiveMessageService" android:exported="true" android:process=":remote" />  
  73.   <service android:name="ReceiveAttachmentService" android:exported="true" android:process=":remote" />  
  74. - <receiver android:name="MessageBroadcastReceiver">  
  75. - <intent-filter>  
  76.   <action android:name="receive_message" />  
  77.   </intent-filter>  
  78.   </receiver>  
  79.   <activity android:name=".ArriveNewMail" android:screenOrientation="portrait" />  
  80.   <activity android:name=".AllAttachment" android:screenOrientation="portrait" />  
  81.   <activity android:name=".AllSDAttachment" android:screenOrientation="portrait" />  
  82.   <activity android:name=".AccountManage" android:screenOrientation="portrait" />  
  83.   <activity android:name=".AttachmentView" android:screenOrientation="portrait" />  
  84.   <activity android:name=".AttachmentTextView" android:screenOrientation="portrait" />  
  85.   <activity android:name=".RegistrationAccount" android:screenOrientation="portrait" />  
  86. - <activity android:name=".Welcome" android:screenOrientation="portrait">  
  87. - <intent-filter>  
  88.   <action android:name="android.intent.action.MAIN" />  
  89.   <category android:name="android.intent.category.LAUNCHER" />  
  90.   </intent-filter>  
  91.   </activity>  
  92.   <activity android:name=".OutBoxAttachmentView" android:screenOrientation="portrait" />  
  93.   <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="false" />  
  94.   </application>  
  95.   <uses-sdk android:minSdkVersion="7" />  
  96.   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  
  97.   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />  
  98.   <uses-permission android:name="android.permission.INTERNET" />  
  99.   <uses-permission android:name="android.permission.WRITE_APN_SETTINGS" />  
  100.   <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />  
  101.   <uses-permission android:name="android.permission.READ_PHONE_STATE" />  
  102.   <uses-permission android:name="android.permission.WRITE_CONTACTS" />  
  103.   <uses-permission android:name="android.permission.READ_CONTACTS" />  
  104.   <uses-permission android:name="android.permission.READ_SMS" />  
  105.   <uses-permission android:name="android.permission.READ_CONTACTS" />  
  106.   <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="false" />  
  107.   </manifest  
  108. strings.xml  
  109. <string name="enter_email_suffix">Please enter the email suffix</string>  
  110. array.xml  
  111. <?xml version="1.0" encoding="UTF-8" ?>  
  112. - <resources>  
  113. - <!--  
  114.  mail title   
  115.   -->  
  116. - <string-array name="mail_title">  
  117.   <item>MSN Hotmail</item>  
  118.   <item>Gmail</item>  
  119.   <item>Yahoo</item>  
  120.   <item>Internet Email</item>  
  121.   </string-array>  
  122. <?xml version="1.0" encoding="utf-8" ?>  
  123. - <selector xmlns:android="http://schemas.android.com/apk/res/android">  
  124.   <item android:drawable="@drawable/attachment" android:state_selected="false" android:state_pressed="false" />  
  125.   <item android:drawable="@drawable/attachment_sel" android:state_selected="false" android:state_pressed="true" />  
  126.   </selector>  
  127.   <?xml version="1.0" encoding="utf-8" ?>  
  128. - <selector xmlns:android="http://schemas.android.com/apk/res/android">  
  129.   <item android:state_window_focused="false" android:drawable="@drawable/folder_bg" />  
  130.   <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/folder_bg_sel" />  
  131.   <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/folder_bg_sel" />  
  132.   <item android:state_selected="true" android:drawable="@drawable/folder_bg_sel" />  
  133.   <item android:state_focused="true" android:drawable="@drawable/folder_bg_sel" />  
  134.   </selector>  
  135.   <?xml version="1.0" encoding="utf-8" ?>  
  136. - <selector xmlns:android="http://schemas.android.com/apk/res/android">  
  137.   <item android:state_checked="false" android:drawable="@drawable/yd" />  
  138.   <item android:state_checked="true" android:drawable="@drawable/yd_select" />  
  139.   </selector>  
Copyright © Linux教程網 All Rights Reserved