diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..7bc01d9 --- /dev/null +++ b/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..b32c427 --- /dev/null +++ b/.project @@ -0,0 +1,33 @@ + + + LedController + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/bin/classes.dex b/bin/classes.dex deleted file mode 100644 index 1d2834c..0000000 Binary files a/bin/classes.dex and /dev/null differ diff --git a/bin/dexedLibs/android-support-v4-ceda44cd6e21636604f6bd31687c9eff.jar b/bin/dexedLibs/android-support-v4-ceda44cd6e21636604f6bd31687c9eff.jar deleted file mode 100644 index e31c887..0000000 Binary files a/bin/dexedLibs/android-support-v4-ceda44cd6e21636604f6bd31687c9eff.jar and /dev/null differ diff --git a/bin/dexedLibs/gcm-dd988af6a57180902b1c3643cf22c659.jar b/bin/dexedLibs/gcm-dd988af6a57180902b1c3643cf22c659.jar deleted file mode 100644 index d54a79a..0000000 Binary files a/bin/dexedLibs/gcm-dd988af6a57180902b1c3643cf22c659.jar and /dev/null differ diff --git a/bin/dexedLibs/gcm-server-f1423d24d16b5551dcf42bf7ea57f71b.jar b/bin/dexedLibs/gcm-server-f1423d24d16b5551dcf42bf7ea57f71b.jar deleted file mode 100644 index 8a7ccfe..0000000 Binary files a/bin/dexedLibs/gcm-server-f1423d24d16b5551dcf42bf7ea57f71b.jar and /dev/null differ diff --git a/bin/jarlist.cache b/bin/jarlist.cache new file mode 100644 index 0000000..0565465 --- /dev/null +++ b/bin/jarlist.cache @@ -0,0 +1,3 @@ +# cache for current jar dependency. DO NOT EDIT. +# format is +# Encoding is UTF-8 diff --git a/bin/res/crunch/drawable-hdpi/ic_launcher.png b/bin/res/crunch/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 8fe9026..0000000 Binary files a/bin/res/crunch/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/bin/res/crunch/drawable-mdpi/ic_launcher.png b/bin/res/crunch/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 73defc3..0000000 Binary files a/bin/res/crunch/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/bin/res/crunch/drawable-xhdpi/ic_launcher.png b/bin/res/crunch/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 15f98ab..0000000 Binary files a/bin/res/crunch/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/bin/res/crunch/drawable-xxhdpi/ic_launcher.png b/bin/res/crunch/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index bae7f8a..0000000 Binary files a/bin/res/crunch/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/bin/resources.ap_ b/bin/resources.ap_ deleted file mode 100644 index 7e49726..0000000 Binary files a/bin/resources.ap_ and /dev/null differ diff --git a/bin/test-gcm-client.apk b/bin/test-gcm-client.apk deleted file mode 100644 index 504eaee..0000000 Binary files a/bin/test-gcm-client.apk and /dev/null differ diff --git a/project.properties b/project.properties index ce39f2d..9b84a6b 100644 --- a/project.properties +++ b/project.properties @@ -11,4 +11,4 @@ #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. -target=android-18 +target=android-16 diff --git a/src/com/example/test_gcm_client/MainActivity.java b/src/com/example/test_gcm_client/MainActivity.java index 5110e0b..e3b37c0 100644 --- a/src/com/example/test_gcm_client/MainActivity.java +++ b/src/com/example/test_gcm_client/MainActivity.java @@ -24,17 +24,17 @@ public class MainActivity extends Activity{ Button btnSendGcmMessage; /** - * ȭ + * 화면 설정 */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); - // ̽ GCM Ȯ + // 디바이스 GCM 사용 가능한지 확인 GCMRegistrar.checkDevice(this); - // Ŵ佺Ʈ ùٸ Ȯ + // 매니페스트 설정이 올바른지 확인 GCMRegistrar.checkManifest(this); - // + // 등록 registerToken(); btnSendGcmMessage = (Button)findViewById(R.id.button1); @@ -65,10 +65,10 @@ public void run() { /** - * GCM ̽ ū + * GCM에 디바이스 토큰 등록 */ private void registerToken() { - // registration ID̽ ū) ϰ ϵ GCM + // registration ID(디바이스 토큰) 취득하고 등록되지 않은 경우 GCM에 등록 final String regId = GCMRegistrar.getRegistrationId(this); if ("".equals(regId)) { GCMRegistrar.register(this, GCMIntentService.SENDER_ID); @@ -78,7 +78,7 @@ private void registerToken() { } /** - * GCM ̽ū + * GCM에 디바이스토큰 삭제 */ private void unregisterToken() { if (GCMRegistrar.isRegistered(this)) {