Skip to content

Commit 762af8b

Browse files
committed
add android starter
1 parent c5921d4 commit 762af8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+6892
-0
lines changed

phonegap/Starter/AndroidManifest.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.example"
4+
android:versionCode="1"
5+
android:versionName="1.0">
6+
<uses-sdk android:minSdkVersion="16"/>
7+
8+
<supports-screens
9+
android:largeScreens="true"
10+
android:normalScreens="true"
11+
android:smallScreens="true"
12+
android:resizeable="true"
13+
android:anyDensity="true" />
14+
<uses-permission android:name="android.permission.VIBRATE" />
15+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
16+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
17+
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
18+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
19+
<uses-permission android:name="android.permission.INTERNET" />
20+
<uses-permission android:name="android.permission.RECEIVE_SMS" />
21+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
22+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
23+
<uses-permission android:name="android.permission.READ_CONTACTS" />
24+
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
25+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
26+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
27+
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
28+
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
29+
30+
31+
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
32+
<activity android:name="MyActivity"
33+
android:label="@string/app_name"
34+
android:configChanges="orientation|keyboardHidden">
35+
36+
<intent-filter>
37+
<action android:name="android.intent.action.MAIN"/>
38+
<category android:name="android.intent.category.LAUNCHER"/>
39+
</intent-filter>
40+
</activity>
41+
</application>
42+
</manifest>

phonegap/Starter/MyProject.iml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="android" name="Android">
5+
<configuration>
6+
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
7+
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" />
8+
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/AndroidManifest.xml" />
9+
<option name="RES_FOLDER_RELATIVE_PATH" value="/res" />
10+
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/assets" />
11+
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/libs" />
12+
<option name="REGENERATE_R_JAVA" value="true" />
13+
<option name="REGENERATE_JAVA_BY_AIDL" value="true" />
14+
<option name="USE_CUSTOM_APK_RESOURCE_FOLDER" value="false" />
15+
<option name="CUSTOM_APK_RESOURCE_FOLDER" value="" />
16+
<option name="USE_CUSTOM_COMPILER_MANIFEST" value="false" />
17+
<option name="CUSTOM_COMPILER_MANIFEST" value="" />
18+
<option name="APK_PATH" value="" />
19+
<option name="LIBRARY_PROJECT" value="false" />
20+
<option name="RUN_PROCESS_RESOURCES_MAVEN_TASK" value="true" />
21+
<option name="GENERATE_UNSIGNED_APK" value="false" />
22+
<option name="CUSTOM_DEBUG_KEYSTORE_PATH" value="" />
23+
<option name="PACK_TEST_CODE" value="false" />
24+
<option name="RUN_PROGUARD" value="false" />
25+
<option name="PROGUARD_CFG_PATH" value="/proguard-project.txt" />
26+
<resOverlayFolders>
27+
<path>/res-overlay</path>
28+
</resOverlayFolders>
29+
<includeSystemProguardFile>true</includeSystemProguardFile>
30+
<includeAssetsFromLibraries>true</includeAssetsFromLibraries>
31+
<additionalNativeLibs />
32+
</configuration>
33+
</facet>
34+
</component>
35+
<component name="NewModuleRootManager" inherit-compiler-output="true">
36+
<exclude-output />
37+
<content url="file://$MODULE_DIR$">
38+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
39+
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
40+
</content>
41+
<orderEntry type="jdk" jdkName="Android 4.1 Platform" jdkType="Android SDK" />
42+
<orderEntry type="sourceFolder" forTests="false" />
43+
<orderEntry type="library" name="cordova-2.0.0" level="project" />
44+
<orderEntry type="library" name="cordova-2.2.0" level="project" />
45+
</component>
46+
</module>
47+

phonegap/Starter/ant.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file is used to override default values used by the Ant build system.
2+
#
3+
# This file must be checked into Version Control Systems, as it is
4+
# integral to the build system of your project.
5+
6+
# This file is only used by the Ant script.
7+
8+
# You can use this to override default values such as
9+
# 'source.dir' for the location of your java source folder and
10+
# 'out.dir' for the location of your output folder.
11+
12+
# You can also use it define how the release builds are signed by declaring
13+
# the following properties:
14+
# 'key.store' for the location of your keystore and
15+
# 'key.alias' for the name of the key to use.
16+
# The password will be asked during the build when you use the 'release' target.
17+

0 commit comments

Comments
 (0)