try{GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);
final String regId = GCMRegistrar.getRegistrationId(this);
if("".equals(regId)|| regId==null){
GCMRegistrar.register(this, senderID);
Log.v("", "@@##"+regId);}
else
Log.v("", "@@##"+regId);
} catch(Exception e){Toast.makeText(this, "aaa", Toast.LENGTH_SHORT).show();}
메인액티비티 onCreate메서드 내에 위치시켜 놨는데요, 에러가 나면서 중지가 뜹니다.
try catch로 묶었더니. aaa라는 Toast가 뜨구요. 왜 에러가 나는지 모르겠습니다.
e.printStackTrace()를 써서 다시 올립니다. 근데 이거 맞나여?
영어도 약해서... 감사합니다.