android - my logcat displays stuff continuosly -
i tried implement gcm client in android , display registration id on logcat.but logcat continuosly display stuff other intend display.
package in.myreceiver.gcm; import android.content.broadcastreceiver; import android.content.context; import android.content.intent; import android.util.log; public class seriousbroadcastreceiver extends broadcastreceiver{ @override public void onreceive(context context, intent intent) { try{ string action=intent.getaction(); if(action.equals("com.google.android.c2dm.intent.registration")) { string registrationid=intent.getstringextra("registration_id"); log.i("uo",registrationid); string error=intent.getstringextra("error"); string unregistered=intent.getstringextra("unregistered"); } else if(action.equals("com.google.android.c2dm.intent.receive")) { string data1=intent.getstringextra("data1"); string data2=intent.getstringextra("data2"); } } finally{} }
}
search tag "uo"... logcat showing logs device (os , on)
Comments
Post a Comment