Skip to content

Commit 100a563

Browse files
committed
Android Based 1
1 parent 5d1acf4 commit 100a563

File tree

75 files changed

+4265
-0
lines changed

Some content is hidden

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

75 files changed

+4265
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Mon Mar 30 22:14:46 CST 2015
Binary file not shown.
Binary file not shown.
Binary file not shown.

AndroidSourceCode/SundyAndroidDemo/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/compiler.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/copyright/profiles_settings.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/encodings.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/gradle.xml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/modules.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/scopes/scope_settings.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSourceCode/SundyAndroidDemo/.idea/workspace.xml

Lines changed: 1154 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="java-gradle" name="Java-Gradle">
5+
<configuration>
6+
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
7+
</configuration>
8+
</facet>
9+
</component>
10+
<component name="NewModuleRootManager" inherit-compiler-output="true">
11+
<exclude-output />
12+
<content url="file://$MODULE_DIR$">
13+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
14+
</content>
15+
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
16+
<orderEntry type="sourceFolder" forTests="false" />
17+
</component>
18+
</module>
19+
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="SundyAndroidDemo" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="android-gradle" name="Android-Gradle">
5+
<configuration>
6+
<option name="GRADLE_PROJECT_PATH" value=":app" />
7+
</configuration>
8+
</facet>
9+
<facet type="android" name="Android">
10+
<configuration>
11+
<option name="SELECTED_BUILD_VARIANT" value="debug" />
12+
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
13+
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
14+
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
15+
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
16+
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
17+
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugAndroidTestSources" />
18+
<option name="ALLOW_USER_CONFIGURATION" value="false" />
19+
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
20+
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
21+
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
22+
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
23+
</configuration>
24+
</facet>
25+
</component>
26+
<component name="NewModuleRootManager" inherit-compiler-output="false">
27+
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
28+
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
29+
<exclude-output />
30+
<content url="file://$MODULE_DIR$">
31+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
32+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
33+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
34+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
35+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
36+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" />
37+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
38+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
39+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
40+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
41+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
42+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/androidTest/debug" type="java-test-resource" />
43+
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
44+
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
45+
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
46+
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
47+
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
48+
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
49+
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
50+
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
51+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
52+
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
53+
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
54+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
55+
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
56+
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
57+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
58+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
59+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
60+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
61+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
62+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
63+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
64+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
65+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
66+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
67+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
68+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
69+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
70+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
71+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
72+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
73+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
74+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
75+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
76+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
77+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
78+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
79+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
80+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
81+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
82+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
83+
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
84+
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
85+
</content>
86+
<orderEntry type="jdk" jdkName="Android API 9 Platform" jdkType="Android SDK" />
87+
<orderEntry type="sourceFolder" forTests="false" />
88+
</component>
89+
</module>
90+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 9
5+
buildToolsVersion "21.1.2"
6+
7+
defaultConfig {
8+
applicationId "sundy.android.demo"
9+
minSdkVersion 9
10+
targetSdkVersion 9
11+
}
12+
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
17+
}
18+
}
19+
}
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="sundy.android.demo"
4+
android:versionCode="1"
5+
android:versionName="1.0">
6+
7+
<uses-permission android:name="android.permission.READ_CONTACTS" />
8+
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
9+
<uses-permission android:name="android.permission.CAMERA" />
10+
<uses-permission android:name="android.permission.VIBRATE" />
11+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
12+
<uses-permission android:name="android.permission.INTERNET" />
13+
<uses-permission android:name="android.permission.SEND_SMS" />
14+
<uses-permission android:name="android.permission.READ_SMS" />
15+
<uses-permission android:name="android.permission.WRITE_SMS" />
16+
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
17+
<uses-permission android:name="android.permission.CALL_PHONE"/>
18+
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
19+
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
20+
21+
22+
<application android:icon="@drawable/icon" android:label="@string/app_name" android:restoreAnyVersion="true">
23+
<activity android:name=".LauncherActivity"
24+
android:label="@string/app_name">
25+
<intent-filter>
26+
<action android:name="android.intent.action.MAIN" />
27+
<category android:name="android.intent.category.DEFAULT" />
28+
<category android:name="android.intent.category.LAUNCHER" />
29+
</intent-filter>
30+
</activity>
31+
<activity android:name=".log.LogActivity" android:label="@string/subject_log">
32+
<intent-filter>
33+
<action android:name="android.intent.action.MAIN" />
34+
<category android:name="android.intent.category.SAMPLE_CODE" />
35+
</intent-filter>
36+
</activity>
37+
<activity android:name=".processthread.ProcessLifecycleActivity" android:label="@string/subject_process_lifecycle">
38+
<intent-filter>
39+
<action android:name="android.intent.action.MAIN" />
40+
<category android:name="android.intent.category.SAMPLE_CODE" />
41+
</intent-filter>
42+
</activity>
43+
44+
<activity android:name=".processthread.ActivityWindowViewRelationship" android:label="@string/subject_process_activityrelation">
45+
<intent-filter>
46+
<action android:name="android.intent.action.MAIN" />
47+
<category android:name="android.intent.category.SAMPLE_CODE" />
48+
</intent-filter>
49+
</activity>
50+
51+
<activity android:name=".activity.MainTestActivity" android:label="@string/process_activitymaintest">
52+
<intent-filter>
53+
<action android:name="android.intent.action.MAIN" />
54+
<category android:name="android.intent.category.SAMPLE_CODE" />
55+
</intent-filter>
56+
</activity>
57+
58+
<activity android:name=".processthread.ThreadConceptActivity" android:label="@string/process_threadconcept">
59+
<intent-filter>
60+
<action android:name="android.intent.action.MAIN" />
61+
<category android:name="android.intent.category.SAMPLE_CODE" />
62+
</intent-filter>
63+
</activity>
64+
65+
<activity android:name=".processthread.HandlerConceptActivity" android:label="@string/process_handlerconcept">
66+
<intent-filter>
67+
<action android:name="android.intent.action.MAIN" />
68+
<category android:name="android.intent.category.SAMPLE_CODE" />
69+
</intent-filter>
70+
</activity>
71+
72+
<activity android:name=".processthread.AsyncTaskTestActivity" android:label="@string/process_asynctask">
73+
<intent-filter>
74+
<action android:name="android.intent.action.MAIN" />
75+
<category android:name="android.intent.category.SAMPLE_CODE" />
76+
</intent-filter>
77+
</activity>
78+
79+
<activity android:name=".processthread.MemoryCheckActivity" android:label="@string/process_check_memory">
80+
<intent-filter>
81+
<action android:name="android.intent.action.MAIN" />
82+
<category android:name="android.intent.category.SAMPLE_CODE" />
83+
</intent-filter>
84+
</activity>
85+
86+
<activity android:name=".processthread.DetectSlowActionsActivity" android:label="@string/process_detect_block">
87+
<intent-filter>
88+
<action android:name="android.intent.action.MAIN" />
89+
<category android:name="android.intent.category.SAMPLE_CODE" />
90+
</intent-filter>
91+
</activity>
92+
93+
<activity android:name=".medias.SimpleMediaPlayerActivity" android:label="@string/media_sample_demo">
94+
<intent-filter>
95+
<action android:name="android.intent.action.MAIN" />
96+
<category android:name="android.intent.category.SAMPLE_CODE" />
97+
</intent-filter>
98+
</activity>
99+
100+
<activity android:name=".medias.ForgroundServiceActivity" android:label="@string/media_forground_service">
101+
<intent-filter>
102+
<action android:name="android.intent.action.MAIN" />
103+
<category android:name="android.intent.category.SAMPLE_CODE" />
104+
</intent-filter>
105+
</activity>
106+
107+
<activity android:name=".medias.AudioHelloworld" android:label="@string/media_audio_helloworld">
108+
<intent-filter>
109+
<action android:name="android.intent.action.MAIN" />
110+
<category android:name="android.intent.category.SAMPLE_CODE" />
111+
</intent-filter>
112+
</activity>
113+
114+
<activity android:name=".medias.VideoHelloworld" android:label="@string/media_video_helloworld">
115+
<intent-filter>
116+
<action android:name="android.intent.action.MAIN" />
117+
<category android:name="android.intent.category.SAMPLE_CODE" />
118+
</intent-filter>
119+
</activity>
120+
121+
<activity android:name=".medias.FaceDetectionActivity" android:label="@string/media_face_detector">
122+
<intent-filter>
123+
<action android:name="android.intent.action.MAIN" />
124+
<category android:name="android.intent.category.SAMPLE_CODE" />
125+
</intent-filter>
126+
</activity>
127+
128+
<activity android:name=".medias.MediaStoreActivity" android:label="@string/media_media_store">
129+
<intent-filter>
130+
<action android:name="android.intent.action.MAIN" />
131+
<category android:name="android.intent.category.SAMPLE_CODE" />
132+
</intent-filter>
133+
</activity>
134+
<activity android:name=".telephony.ContactsActivity" android:label="@string/telephony_contacts">
135+
<intent-filter>
136+
<action android:name="android.intent.action.MAIN" />
137+
<category android:name="android.intent.category.SAMPLE_CODE" />
138+
</intent-filter>
139+
</activity>
140+
<activity android:name=".telephony.SmsActivity" android:label="@string/telephony_sms">
141+
<intent-filter>
142+
<action android:name="android.intent.action.MAIN" />
143+
<category android:name="android.intent.category.SAMPLE_CODE" />
144+
</intent-filter>
145+
</activity>
146+
<activity android:name=".telephony.CallActivity" android:label="@string/telephony_call">
147+
<intent-filter>
148+
<action android:name="android.intent.action.MAIN" />
149+
<category android:name="android.intent.category.SAMPLE_CODE" />
150+
</intent-filter>
151+
</activity>
152+
153+
<service android:name=".service.LauncherService">
154+
</service>
155+
<service android:name=".medias.ForgroundService"/>
156+
157+
</application>
158+
<uses-sdk android:minSdkVersion="9" />
159+
160+
</manifest>

0 commit comments

Comments
 (0)