Activity beenden

Generic1

Top Contributor
Hallo,

ich habe in meiner Application 2 Activities zwischen denen ich hin und herschalten kann.
In der Activity1 hab ich auch einen Exit- Button mit dem ich die Application beenden möchte.
Das klappt so weit ganz gut - wenn ich auf den Exit- Button klicke, dann wird die Applikation beendet, wenn ich diese Anwendung dann wieder starten möchte, dann erscheint aber am Emulator- Display:

Code:
Application is not installed on your phone.

meine Exit- Methode schaut so aus:

Java:
	public void onClickExitApplication(final View view) {
		super.finish();
		}

Was mach ich da falsch?
Vielen Dank.
lg
 

eRaaaa

Top Contributor
Zwei Fragen:

1.) besteht das Problem noch? Wenn ja, wieso ist es als "Erledigt" markiert, wenn du das Problem lösen konntest, wäre es gut, wenn du für alle Anderen deinen Lösungsweg beschreiben könntest, dann kann man mit dem Thread auch etwas anfangen ;)

(sollte das Problem noch bestehen: )
2.) "wenn ich diese Anwendung dann wieder starten möchte" <-- was genau meinst du jetzt damit? Wirklich nur die Applikation? Also per Anwendungen/Menü-Eintrag im Emulator? Oder meinst du, wenn du den Emulator erneut startest?
Was sagt denn die Debug-Ausgabe/LogCat?
 
Zuletzt bearbeitet von einem Moderator:

Generic1

Top Contributor
Ich habe meine Android App immer mit einem Doppelklick gestartet bekam aber manchmal die Fehlermeldung von oben. Ich hab dann einfach den App- Link gelöscht und einen neuen auf den Desktop gegeben, Dann ist es wieder gegangen.
lg
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
A Beenden einer 2ten Activity Android & Cross-Platform Mobile Apps 3
W JSONARRAY per Intent an andere Activity übergeben und umwandeln ggbf. Android & Cross-Platform Mobile Apps 1
M Activity einer anderen App mit result Android & Cross-Platform Mobile Apps 2
CT9288 Methode von Fragment durch Activity rufen scheitert Android & Cross-Platform Mobile Apps 7
ruutaiokwu Android Daten von "Activity A" nach "Activity B" umleiten? Android & Cross-Platform Mobile Apps 13
L Android Lockscreen-Sperrmuster activity verwenden Android & Cross-Platform Mobile Apps 1
J Android App stürzt ab wenn neue activity gestartet Android & Cross-Platform Mobile Apps 6
D Android Activity wechseln per Button Android & Cross-Platform Mobile Apps 3
P Android Android-App Crash - Unable to start activity ComponentInfo Android & Cross-Platform Mobile Apps 2
S Neue Activity lässt sich nicht starten Android & Cross-Platform Mobile Apps 28
B Android Activity nach gedrückte Returntaste weiterlaufen lassen Android & Cross-Platform Mobile Apps 2
J Probleme mit ViewPager und Activity Android & Cross-Platform Mobile Apps 1
B Android In einem View der ersten Activity zweite anzeigen Android & Cross-Platform Mobile Apps 2
G Accelerometer ohne Activity Android & Cross-Platform Mobile Apps 8
J Android BroadcastHandler extends BroadcastReceiver; auf Activity zugreifen? Android & Cross-Platform Mobile Apps 5
K Android Übergeordnete Activity herausfinden? Android & Cross-Platform Mobile Apps 7
W Android Designfrage / Layout / Activity / Fragments Android & Cross-Platform Mobile Apps 2
B Login Activity Android & Cross-Platform Mobile Apps 1
M Android Suche Activity/View Namen Android & Cross-Platform Mobile Apps 1
K Unbekannte Menge von Daten (Strings oder Ints) an Activity übergeben Android & Cross-Platform Mobile Apps 0
M Fehler ohne Sinn? java.lang.RuntimeException: Unable to start activity ComponentInfo Android & Cross-Platform Mobile Apps 11
S Android Eclipse erstellt keine main Activity Android & Cross-Platform Mobile Apps 4
B java.lang.RuntimeException: Unable to start activity ComponentInfo Android & Cross-Platform Mobile Apps 2
K Android Activity for result aus Dialog Android & Cross-Platform Mobile Apps 1
S Android "Weiches wechseln" zwischen Views in einer Activity Android & Cross-Platform Mobile Apps 3
D Android Activity mit mehreren Views "spliten" Android & Cross-Platform Mobile Apps 10
G Activity-Wechsel bitte ohne Notification Android & Cross-Platform Mobile Apps 6
G eine Methode einer anderen Activity aufrufen Android & Cross-Platform Mobile Apps 9
D Android Neue Activity im TabWidget laden Android & Cross-Platform Mobile Apps 8
S Android In Service überprüfen ob eine Activity gebunden ist? Android & Cross-Platform Mobile Apps 6
T Android Activity finished testen Android & Cross-Platform Mobile Apps 5
T Activity / Application fundamentals Android & Cross-Platform Mobile Apps 4
M Activity wechseln aus List View mit Android & Cross-Platform Mobile Apps 2
G extends Activity für Berechnungen? Android & Cross-Platform Mobile Apps 7
G Daten von einer Activity zur nächsten übergeben Android & Cross-Platform Mobile Apps 6
G selbes Menü auf jeder Activity Android & Cross-Platform Mobile Apps 4
C Activity ohne Aktion starten Android & Cross-Platform Mobile Apps 8
C Android Kommunikation zwischen Service und Activity Android & Cross-Platform Mobile Apps 8
Maxim6394 [ Android ] Activity ändern Android & Cross-Platform Mobile Apps 9
A Activity Intent 'source not found' Android & Cross-Platform Mobile Apps 4
A Android Activity Variablen-Initialisierung Android & Cross-Platform Mobile Apps 8
W Standard Gallery Activity? Android & Cross-Platform Mobile Apps 22
schlingel Android: Overlay in Activity Android & Cross-Platform Mobile Apps 3
B Android App aus dem Speicher richtig beenden? Android & Cross-Platform Mobile Apps 6
schlingel Android Warum man Apps beenden sollte bzw. es nicht tun sollte Android & Cross-Platform Mobile Apps 4
P Android Warum kann man App's nicht beenden? Android & Cross-Platform Mobile Apps 16
J Android Emulator Beenden Android & Cross-Platform Mobile Apps 4
A Midlet bei Fehler elegant beenden mit Fehlermeldung Android & Cross-Platform Mobile Apps 4

Ähnliche Java Themen

Neue Themen


Oben