Skip to content

Commit

Permalink
Fixed Project Properties
Browse files Browse the repository at this point in the history
Build path setting resolved
.project file added
  • Loading branch information
JayJayDee committed Oct 22, 2013
1 parent 7643643 commit 500be2a
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>LedController</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Binary file removed bin/classes.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/jarlist.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
Binary file removed bin/res/crunch/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/res/crunch/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/res/crunch/drawable-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/res/crunch/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/resources.ap_
Binary file not shown.
Binary file removed bin/test-gcm-client.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-18
target=android-16
14 changes: 7 additions & 7 deletions src/com/example/test_gcm_client/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -78,7 +78,7 @@ private void registerToken() {
}

/**
* GCM에 디바이스토큰 삭제
* GCM에 디바이스토큰 삭제
*/
private void unregisterToken() {
if (GCMRegistrar.isRegistered(this)) {
Expand Down

0 comments on commit 500be2a

Please sign in to comment.