Autore Topic: errore log  (Letto 559 volte)

Offline pegaso993

  • Utente junior
  • **
  • Post: 84
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    note 2
  • Sistema operativo:
    android
errore log
« il: 01 Novembre 2013, 13:44:16 CET »
0
ciao ragazzi la mia app se impostata su android inferiore a 4.3 da questo errore

11-01 12:41:51.555: E/AndroidRuntime(750): FATAL EXCEPTION: main
11-01 12:41:51.555: E/AndroidRuntime(750): java.lang.StackOverflowError
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.widget.TextView.setText(TextView.java:3420)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.widget.TextView.setText(TextView.java:3405)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.widget.TextView.setText(TextView.java:3380)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.widget.ActionBarView.setTitleImpl(ActionBarView.java:525)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.widget.ActionBarView.setTitle(ActionBarView.java:507)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.app.ActionBarImpl.setTitle(ActionBarImpl.java:383)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.refreshTitleAndIcon(MainActivity.java:144)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:194)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net.fred.feedex.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:195)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.onCreatePanelMenu(Activity.java:2476)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:393)
11-01 12:41:51.555: E/AndroidRuntime(750):    at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:747)
11-01 12:41:51.555: E/AndroidRuntime(750):    at android.app.Activity.invalidateOptionsMenu(Activity.java:2595)
11-01 12:41:51.555: E/AndroidRuntime(750):    at net

Offline giuseppesorce

  • Utente junior
  • **
  • Post: 92
  • Respect: +6
    • Google+
    • warpmobile_it
    • Mostra profilo
  • Dispositivo Android:
    Nexus 6,Nexus 5,Nexus 4, Galaxy Nexus, Nexus s, Nexus One,Htc Wildfire S, Nexus 7... etc
  • Sistema operativo:
    Ubuntu 14.04
Re:errore log
« Risposta #1 il: 02 Novembre 2013, 07:36:42 CET »
0
Si ma quando ti succede questo errore? Cosa lanci? Ti succede appena lanci l' applicazione o un' Activity in particolare
The code is joy and passion but it has a high degree of suffering

Offline Nicola_D

  • Utente storico
  • *****
  • Post: 2479
  • SBAGLIATO!
  • Respect: +323
    • Github
    • Google+
    • nicoladorigatti
    • Mostra profilo
  • Dispositivo Android:
    Nexus 6p, Nexus 4, Nexus S, Nexus 7(2012)
  • Sistema operativo:
    Windows 7
Re:errore log
« Risposta #2 il: 02 Novembre 2013, 12:35:14 CET »
0
Quanto è lungo il testo che imposti alla tv?

Inviato dal mio Nexus 4 utilizzando Tapatalk

IMPORTANTE:NON RISPONDO A PROBLEMI VIA MESSAGGIO PRIVATO
LOGCAT: Non sai cos'è? -> Android Debug Bridge | Android Developers
               Dov'è in Eclipse? -> Window -> Open Prospective -> DDMS e guarda in basso!
[Obbligatorio] Logcat, questo sconosciuto! (Gruppo AndDev.it LOGTFO) - Android Developers Italia

Offline RogoMantiK

  • Utente junior
  • **
  • Post: 61
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Xperia Neo
Re:errore log
« Risposta #3 il: 05 Novembre 2013, 22:00:23 CET »
0
controlla come fai il menu opzioni alle righe
MainActivity.java:144
MainActivity.java:194
MainActivity.java:195

Il problema sembra stare nella action bar menu. il menu ha troppi elementi o i titoli sono troppo lunghi?
L'errore si verifica quando premi il bottone menu del telefono o della actionbar o sempre?