Autore Topic: log problema  (Letto 394 volte)

Offline pegaso993

  • Utente junior
  • **
  • Post: 84
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    note 2
  • Sistema operativo:
    android
log problema
« il: 01 Ottobre 2013, 20:59:06 CEST »
0
ragazzi quando avvio un app e si dovrebbe registrare ad un server

mi restituisce questi errori di log
10-01 20:32:42.720: E/AndroidRuntime(29848):    at android.os.Handler.dispatchMessage(Handler.java:99)
10-01 20:32:42.720: E/AndroidRuntime(29848):    at android.os.Looper.loop(Looper.java:137)
10-01 20:32:42.720: E/AndroidRuntime(29848):    at android.os.HandlerThread.run(HandlerThread.java:60)
10-01 20:32:49.350: E/ActivityThread(29848): Activity com.example.radio2.MainActivity has leaked IntentReceiver com.example.radio2.MainActivity$1@4268f6e8 that was originally registered here. Are you missing a call to unregisterReceiver()?
10-01 20:32:49.350: E/ActivityThread(29848): android.app.IntentReceiverLeaked: Activity com.example.radio2.MainActivity has leaked IntentReceiver com.example.radio2.MainActivity$1@4268f6e8 that was originally registered here. Are you missing a call to unregisterReceiver()?
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1274)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1261)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1255)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:372)
10-01 20:32:49.350: E/ActivityThread(29848):    at com.example.radio2.MainActivity.onCreate(MainActivity.java:68)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.Activity.performCreate(Activity.java:5206)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ActivityThread.access$600(ActivityThread.java:140)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.os.Handler.dispatchMessage(Handler.java:99)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.os.Looper.loop(Looper.java:137)
10-01 20:32:49.350: E/ActivityThread(29848):    at android.app.ActivityThread.main(ActivityThread.java:4898)
10-01 20:32:49.350: E/ActivityThread(29848):    at java.lang.reflect.Method.invokeNative(Native Method)
10-01 20:32:49.350: E/ActivityThread(29848):    at java.lang.reflect.Method.invoke(Method.java:511)
10-01 20:32:49.350: E/ActivityThread(29848):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
10-01 20:32:49.350: E/ActivityThread(29848):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
10-01 20:32:49.350: E/ActivityThread(29848):    at dalvik.system.NativeStart.main(Native Method)

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:log problema
« Risposta #1 il: 01 Ottobre 2013, 21:31:26 CEST »
0
Pare che il problema non sia all'avvio...

...perchè leggo direttamente da quello che hai postato:
Citazione
10-01 20:32:49.350: E/ActivityThread(29848): Activity com.example.radio2.MainActivity has leaked IntentReceiver com.example.radio2.MainActivity$1@4268f6e8 that was originally registered here. Are you missing a call to unregisterReceiver()?

Are you missing a call to unregisterReceiver()?
Ti sei ricordato di chiamare unregisterReceiver()?
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline pegaso993

  • Utente junior
  • **
  • Post: 84
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    note 2
  • Sistema operativo:
    android
Re:log problema
« Risposta #2 il: 02 Ottobre 2013, 00:10:00 CEST »
0
TUTTO SETTA GIUSTO SAREBBE
ORA RESTITUISCE QUESTO
10-02 00:08:05.740: E/AndroidRuntime(32064): FATAL EXCEPTION: IntentService[GCMIntentService-441530052276-1]
10-02 00:08:05.740: E/AndroidRuntime(32064): java.lang.NullPointerException: println needs a message
10-02 00:08:05.740: E/AndroidRuntime(32064):    at android.util.Log.println_native(Native Method)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at android.util.Log.d(Log.java:155)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at com.example.radio2.GCMIntentService.onRegistered(GCMIntentService.java:29)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at com.google.android.gcm.GCMBaseIntentService.handleRegistration(GCMBaseIntentService.java:296)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:197)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at android.os.Handler.dispatchMessage(Handler.java:99)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at android.os.Looper.loop(Looper.java:137)
10-02 00:08:05.740: E/AndroidRuntime(32064):    at android.os.HandlerThread.run(HandlerThread.java:60)