Android befehl ausführen

JobbeDeluxe

Mitglied
Hi,

Ich bin grad neu im java bereich, weil ich einfach für android was machen wollte.
Mein problem die lösungsansetzte von google werden nicht in meinem java editor für android akzeptiert.

Ich habe auf meine Handy "better terminal emulator pro" laufen. ich wollte eine einfaches Skript folge schreib. da aber .sh auf dem Handy nicht als ausführbare Datei geht und ich auch gerne eine variable da drin haben möchte wollte ich mal fragen ob mir jemand helfen kann.

Im Terminal führe ich einfach das aus

$sleep 3
$su
#kill `pgrep com.exemple.myapp`
#exit 0

($ ist für user und # ist für root, einfache linux befehle, das kann ich noch :D)

so und die "3" sollte nach Möglichkeit eine variable sein.
Jetzt habe ich mit Google und "Zahleneingabe" folgendes gefunden:

Java:
import java.io.*;
public class Hello
{ 
  public static void main (String argv[]) throws IOException
  { 
    String eing;
    BufferedReader eingabe = new BufferedReader(New InputStreamReader(System.in));
    System.out.print("Bitte Name eingeben:");
    eing = eingabe.readLine();
    System.out.println("Hello World! Hello " + eing);
  }
}

und als name hätte ich eine zahl genommen.
aber er weigert sich von vornherein.
Deswegen meine frage wie kann das machen das nach dem öffnen einfach eine Eingabe kommt wenn ich dort auf ok das als variable eingefügt wird und dann das Script abgerufen wird?
Ich schaffe es ja nicht mal den Konsolenbefehl an das handy zu senden.

Vielleicht hab ich ein Denkfehler oder ich weiss auch nicht. Für etwas Hilfestellung wäre ich sehr dankbar.

mir würde ja schon helfen wenn ich wüste wie ich meinen befehl ausführen kann. aber ich weiss nicht wie das geht.

Gruss Jobbe

Java ist schon eine sache für sich, aber dann noch android... doch swerer als ich dachte.

So ich bin etwas weiter:

Ich habe jetzt das meine befehle ausgefürt werden (fast zumindestens)

Java:
import java.io.IOException;
import android.app.Activity;
import android.os.Bundle;

public class MusicStopActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try { 	Runtime.getRuntime().exec("su");
        Runtime.getRuntime().exec("sleep 10");
        Runtime.getRuntime().exec("kill `pgrep com.exemple.myapp`");
        Runtime.getRuntime().exec("exit 0");
    } catch (IOException e) {
    }
      
    }   
}

ABER:
SU wird abgefragt und von mir auch gewärt.
aber danach passiert nichts mehr.
so als wenn die anderen befehle nicht als root ausgeführt werden.
aber exit 0 müsste ja noch kommen auch als user und müste das programm beenden, passiert aber auch nicht.
also hab ich dann mal so versucht:

Java:
import java.io.IOException;
import android.app.Activity;
import android.os.Bundle;

public class MusicStopActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try { 	Runtime.getRuntime().exec("su" + "sleep 10" + "kill `pgrep com.exemple.myapp`" + " exit 0");
    } catch (IOException e) {
    }
      
    }   
}

aber da wird nicht mal SU abgefragt. also garkein befehl wird abgefragt.

was mach ich falsch?

Gruss jobbe
 
Zuletzt bearbeitet:

Bolle52

Aktives Mitglied
bau mal in den catchblock folgendes ein

Java:
Log.e("myappName", e.getLocalizedMessage(), e);

und schau mal, ob eine exception kommt. leere catchblöcke sind eine totsünde ;)
 

JobbeDeluxe

Mitglied
Also es sieht jetzt so aus:
Java:
import java.io.IOException;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
 
public class MusicStopActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try {   Runtime.getRuntime().exec("su");
        Runtime.getRuntime().exec("sleep 10");
        Runtime.getRuntime().exec("kill `pgrep com.android.app`");
        Runtime.getRuntime().exec("exit 0");
    } catch (IOException e) {
    	Log.e("myappName", e.getLocalizedMessage(), e);
    }
      
    }   
}

Die reinfolge hintereinander geht nicht daher so.
aber es ist wie immer.

SU wird gefragt, danach nix mehr.

Ich werd bekloppt

Danke für deine unterstützung ich bin auch für ander lösungs wege dankebar also wenn das so nicht geht, das its ja nur ein versuch von mir. oder ist das in deinen augen so ok?

Gruss jobbe
 

Bolle52

Aktives Mitglied
weist du überhaupt, was try catch macht?

es wäre jetzt interessant, ob eine logausgabe bei logcat zu sehen ist.

du kannst es auch mal durchdebuggen, und schauen, wo was passiert.
 

JobbeDeluxe

Mitglied
nein weiss ich nicht ;)
Also wie gesagt ich habe nur einen Vordruck gefunden, diesen angepasst wi ich ihn brauche und versuche mich da so durch zu kämpfen, ich habe vielleicht 1 tag java befehle gelesen, aber ohne versuch versteht man da eh nur Bahnhof.
daher kann ich mir zwar denken was er macht aber wie weiss ich nicht. oder wo der log bleibt. wenn ich das auf dem Virtellen device ausführe schliesst das nach 1 sek wieder. under debugging modus kommt ein "wird geschlosse" meldung und wird garnicht gestartet.
Auf meinem device kommt SU und danach nix mehr.

daher weiss ich nicht wie ich den log auslesen kann. würde mir sehr helfen :D

Ich werd mich morgen nochmal ein bisschen mit den sachen auseinander setzen.

Gruss Jobbe
 

Bolle52

Aktives Mitglied
nein weiss ich nicht ;)
Also wie gesagt ich habe nur einen Vordruck gefunden, diesen angepasst wi ich ihn brauche und versuche mich da so durch zu kämpfen, ich habe vielleicht 1 tag java befehle gelesen, aber ohne versuch versteht man da eh nur Bahnhof.
daher kann ich mir zwar denken was er macht aber wie weiss ich nicht. oder wo der log bleibt. wenn ich das auf dem Virtellen device ausführe schliesst das nach 1 sek wieder. under debugging modus kommt ein "wird geschlosse" meldung und wird garnicht gestartet.
Auf meinem device kommt SU und danach nix mehr.

daher weiss ich nicht wie ich den log auslesen kann. würde mir sehr helfen :D

Ich werd mich morgen nochmal ein bisschen mit den sachen auseinander setzen.

Gruss Jobbe


waere durchaus hilfreich zu verstehen, was der code macht und was vor allem try catch macht. falls eine exception kommt, kann die einem schon zum ziel bringen, da man einen anhaltspunkt hat, wo der fehler ist. wenn du die logausgabe in logcat gefunden hast (falls es eine gibt), bitte posten.
 

JobbeDeluxe

Mitglied
Also, ich will einfach:
app starten, dieses gibt die befehle ein #1 post und gut.
ich weiss nicht wie das sonst geht. das habe ich so als vorgabe im netz gefunden und damit bin ich schon weiter als vorher.
ich hab jetzt ein logcat datei, aber da ist nur der fehler drin unbekanter befehl "exit, 0".
Ich poste ihn dir hier mal. ist mit E/myappName drin :D

Java:
D/alogcat ( 2346): stopped
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 74
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
D/AudioHardwareALSA(   93): Calling setDevice from write @..1875.
V/AudioPolicyManager(   93): releaseOutput() 1
D/alogcat ( 2346): starting ...
I/AudioHardwareALSA(   93): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
V/AudioHardwareALSA(   93): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA(   93): Using 2 channels for PLAYBACK.
I/AudioHardwareALSA(   93): DEFAULT_SAMPLE_RATE is 44100, mDefaults->sampleRate is 44100
D/AudioHardwareALSA(   93): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA(   93): Buffer size: 4096
D/AudioHardwareALSA(   93): Latency: 92879
W/AudioFlinger(   93): write blocked for 79 msecs, 30 delayed writes, thread 0x2fee8
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 74
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
D/InputReader(  525): Input event: value=1
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/InputDispatcher(  525): Delivering key to current input target: action: 0, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/InputReader(  525): Input event: value=0
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/InputDispatcher(  525): Delivering key to current input target: action: 1, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b7a990 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b7a990 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 75
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
V/AudioPolicyManager(   93): releaseOutput() 1
V/alogcat ( 2346): save instance
V/alogcat ( 2346): paused
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 75
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
I/ActivityManager(  525): Displayed org.jtb.alogcat/.PrefsActivity: +428ms
D/alogcat ( 2346): stopping ...
D/alogcat ( 2346): stopped
D/AudioHardwareALSA(   93): Inside AudioStreamOutALSA::standby
V/AudioHardwareALSA(   93): ALSAStreamOps::close()
I/AudioHardwareALSA(   93): Output standby called!!. Turn off PCM device.
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 76
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
D/AudioHardwareALSA(   93): Calling setDevice from write @..1875.
V/AudioPolicyManager(   93): releaseOutput() 1
I/AudioHardwareALSA(   93): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
V/AudioHardwareALSA(   93): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA(   93): Using 2 channels for PLAYBACK.
I/AudioHardwareALSA(   93): DEFAULT_SAMPLE_RATE is 44100, mDefaults->sampleRate is 44100
D/AudioHardwareALSA(   93): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA(   93): Buffer size: 4096
D/AudioHardwareALSA(   93): Latency: 92879
W/AudioFlinger(   93): write blocked for 78 msecs, 31 delayed writes, thread 0x2fee8
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 837K, 56% free 3688K/8199K, external 2383K/2390K, paused 60ms
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 76
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b5bb38 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b5bb38 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 77
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
V/AudioPolicyManager(   93): releaseOutput() 1
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 77
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 83K, 56% free 3626K/8199K, external 2518K/2534K, paused 28ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 14K, 56% free 3638K/8199K, external 2895K/2987K, paused 25ms
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
D/AudioHardwareALSA(   93): Inside AudioStreamOutALSA::standby
V/AudioHardwareALSA(   93): ALSAStreamOps::close()
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
I/AudioHardwareALSA(   93): Output standby called!!. Turn off PCM device.
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
D/InputReader(  525): Input event: value=1
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/ScreenCaptureAction(  525): updateBackKeyPressed(), pressed = true
I/InputDispatcher(  525): Delivering key to current input target: action: 0, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
D/alogcat ( 2346): stopping ...
D/alogcat ( 2346): canceling periodic saves
V/alogcat ( 2346): started
V/alogcat ( 2346): resumed
I/InputDispatcher(  525): Delivering key to current input target: action: 1, channel '40b50360 org.jtb.alogcat/org.jtb.alogcat.PrefsActivity (server)'
D/alogcat ( 2346): starting ...
D/InputReader(  525): Input event: value=0
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = true
I/ScreenCaptureAction(  525): updateBackKeyPressed(), pressed = false
I/InputDispatcher(  525): Delivering key to current input target: action: 1, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 166K, 56% free 3677K/8199K, external 2556K/2578K, paused 44ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 110K, 57% free 3568K/8199K, external 2542K/2593K, paused 26ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 26K, 57% free 3569K/8199K, external 2759K/2823K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 27K, 57% free 3570K/8199K, external 2992K/3010K, paused 23ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 27K, 57% free 3569K/8199K, external 3067K/3113K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 27K, 57% free 3570K/8199K, external 3108K/3155K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 27K, 57% free 3570K/8199K, external 3183K/3207K, paused 26ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 27K, 57% free 3570K/8199K, external 3149K/3165K, paused 25ms
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 55K, 57% free 3575K/8199K, external 3108K/3165K, paused 29ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 37K, 57% free 3575K/8199K, external 3183K/3249K, paused 24ms
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 33K, 57% free 3576K/8199K, external 3284K/3291K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 30K, 57% free 3576K/8199K, external 3025K/3123K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 40K, 57% free 3577K/8199K, external 3025K/3113K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 34K, 57% free 3577K/8199K, external 3052K/3062K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 37K, 57% free 3577K/8199K, external 3037K/3104K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 33K, 57% free 3577K/8199K, external 2984K/3043K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 2K, 57% free 3576K/8199K, external 3067K/3104K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 34K, 57% free 3577K/8199K, external 3074K/3113K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 33K, 57% free 3578K/8199K, external 2999K/3029K, paused 26ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 36K, 57% free 3579K/8199K, external 3059K/3113K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 38K, 57% free 3580K/8199K, external 3209K/3282K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 6K, 57% free 3578K/8199K, external 3175K/3249K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 34K, 57% free 3581K/8199K, external 3134K/3155K, paused 25ms
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 33K, 57% free 3580K/8199K, external 3025K/3062K, paused 26ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 36K, 57% free 3583K/8199K, external 3134K/3155K, paused 26ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 10K, 57% free 3578K/8199K, external 2984K/3020K, paused 24ms
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 33K, 57% free 3581K/8199K, external 3134K/3155K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 2K, 57% free 3581K/8199K, external 3093K/3104K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 30K, 57% free 3582K/8199K, external 3093K/3104K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 44K, 57% free 3583K/8199K, external 3202K/3282K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 38K, 57% free 3583K/8199K, external 3202K/3249K, paused 23ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 39K, 57% free 3585K/8199K, external 3202K/3282K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 6K, 57% free 3583K/8199K, external 3202K/3230K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 32K, 57% free 3583K/8199K, external 3010K/3020K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 35K, 57% free 3582K/8199K, external 3052K/3104K, paused 26ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 2K, 57% free 3581K/8199K, external 3202K/3240K, paused 25ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 42K, 57% free 3583K/8199K, external 3093K/3113K, paused 24ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 38K, 57% free 3582K/8199K, external 3277K/3291K, paused 33ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 39K, 57% free 3584K/8199K, external 3202K/3249K, paused 29ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 9K, 57% free 3582K/8199K, external 3044K/3104K, paused 32ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 40K, 57% free 3583K/8199K, external 3179K/3230K, paused 32ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 43K, 57% free 3585K/8199K, external 3295K/3324K, paused 32ms
D/dalvikvm( 2346): GC_EXTERNAL_ALLOC freed 41K, 57% free 3584K/8199K, external 3262K/3324K, paused 34ms
D/InputReader(  525): Input event: value=1
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
V/WindowManager(  525): isSystemKeyEventRequested() is called keyCode = 3 componentName = ComponentInfo{org.jtb.alogcat/org.jtb.alogcat.LogActivity}
V/WindowManager(  525):   in isSystemKeyEventRequested() return value is false
V/WindowManager(  525): in interceptKeyBeforeDispatching() KEYCODE_HOME isSystemKeyEventRequested() is false
D/InputReader(  525): Input event: value=0
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
V/alogcat ( 2346): save instance
V/alogcat ( 2346): paused
I/Launcher(  653): onResume(). mIsNewIntent : true
E/        (  653): onResume() check 0
E/        (  653): onResume() check 1
E/Launcher(  653): setWindowTranslucent()
E/        (  653): onResume() check 2, mRestoring : false
E/        (  653): onResume() check 3
E/        (  653): onResume() check 4
E/        (  653): onResume() check 5
I/Launcher(  653): onResume() ended
I/Launcher(  653): onWindowFocusChanged(true)
D/Launcher(  653): It's live wallpaper. suggestDesiredDimensions() with SPAN 2
E/Launcher(  653): setWindowTranslucent()
D/dalvikvm(  636): GC_EXPLICIT freed 8K, 71% free 2871K/9799K, external 3096K/4596K, paused 100ms
D/alogcat ( 2346): stopping ...
D/alogcat ( 2346): stopped
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 78
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
D/AudioHardwareALSA(   93): Calling setDevice from write @..1875.
V/AudioPolicyManager(   93): releaseOutput() 1
I/AudioHardwareALSA(   93): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
V/AudioHardwareALSA(   93): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA(   93): Using 2 channels for PLAYBACK.
I/AudioHardwareALSA(   93): DEFAULT_SAMPLE_RATE is 44100, mDefaults->sampleRate is 44100
D/AudioHardwareALSA(   93): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA(   93): Buffer size: 4096
D/AudioHardwareALSA(   93): Latency: 92879
W/AudioFlinger(   93): write blocked for 80 msecs, 32 delayed writes, thread 0x2fee8
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 78
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 79
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
V/AudioPolicyManager(   93): releaseOutput() 1
D/SamsungUtils(  653): acquireDVFSlock  arg0 : 0     arg1 : 1000
I/power   (  525): acquire_dvfs_lock level=0 
I/power   (  525): acquire_dvfs_lock level=0, duration=1000, val=1000 
I/Launcher(  653): onPause()
I/Launcher(  653): onWindowFocusChanged(false)
D/Launcher(  653): It's live wallpaper. suggestDesiredDimensions() with SPAN 2
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 79
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
D/InputReader(  525): Input event: value=1
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/ScreenCaptureAction(  525): updateBackKeyPressed(), pressed = true
I/InputDispatcher(  525): Delivering key to current input target: action: 0, channel '40a24930 com.deluxe.musicstop/com.deluxe.musicstop.MusicStopActivity (server)'
D/InputReader(  525): Input event: value=0
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = true
I/ScreenCaptureAction(  525): updateBackKeyPressed(), pressed = false
I/InputDispatcher(  525): Delivering key to current input target: action: 1, channel '40a24930 com.deluxe.musicstop/com.deluxe.musicstop.MusicStopActivity (server)'
I/Launcher(  653): onResume(). mIsNewIntent : false
E/        (  653): onResume() check 0
E/        (  653): onResume() check 1
E/Launcher(  653): setWindowTranslucent()
muste ihn kürzen, war zu lang... der rest im nächten post

Ich poste hn mal in java damit der überblick bleibt

Ich habe logcat gestartet und dann mein program habe ca 15 sek gewatet und dan wieder in logcat und pause.

Gruss jobbe
 

JobbeDeluxe

Mitglied
Java:
E/        (  653): onResume() check 2, mRestoring : false
E/        (  653): onResume() check 3
E/        (  653): onResume() check 4
E/        (  653): onResume() check 5
I/Launcher(  653): onResume() ended
I/Launcher(  653): onWindowFocusChanged(true)
D/Launcher(  653): It's live wallpaper. suggestDesiredDimensions() with SPAN 2
E/Launcher(  653): setWindowTranslucent()
W/IInputConnectionWrapper( 2358): showStatusIcon on inactive InputConnection
D/dalvikvm(  636): GC_EXPLICIT freed 8K, 71% free 2871K/9799K, external 3096K/4596K, paused 43ms
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 80
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
V/AudioPolicyManager(   93): releaseOutput() 1
D/SamsungUtils(  653): acquireDVFSlock  arg0 : 0     arg1 : 1000
I/power   (  525): acquire_dvfs_lock level=0 
I/power   (  525): acquire_dvfs_lock level=0, duration=1000, val=1000 
I/Launcher(  653): onPause()
I/Launcher(  653): onWindowFocusChanged(false)
D/Launcher(  653): It's live wallpaper. suggestDesiredDimensions() with SPAN 2
E/su      ( 2408): sudb - Opening database
E/su      ( 2408): sudb - Database opened
E/su      ( 2408): sudb - Database closed
D/su      ( 2408): 10130 com.deluxe.musicstop executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/Su.ResultService( 1549): onStartCommand()
D/Su.ResultService( 1549): onStart()
D/Su.ResultService( 1549): onHandleIntent()
D/Su.ResultService( 1549): ensurePrefs()
E/myappName( 2358): Error running exec(). Command: [exit, 0] Working Directory: null Environment: null
E/myappName( 2358): java.io.IOException: Error running exec(). Command: [exit, 0] Working Directory: null Environment: null
E/myappName( 2358): 	at java.lang.ProcessManager.exec(ProcessManager.java:224)
E/myappName( 2358): 	at java.lang.Runtime.exec(Runtime.java:189)
E/myappName( 2358): 	at java.lang.Runtime.exec(Runtime.java:275)
E/myappName( 2358): 	at java.lang.Runtime.exec(Runtime.java:210)
E/myappName( 2358): 	at com.deluxe.musicstop.MusicStopActivity.onCreate(MusicStopActivity.java:17)
E/myappName( 2358): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/myappName( 2358): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
E/myappName( 2358): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
E/myappName( 2358): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/myappName( 2358): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
E/myappName( 2358): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/myappName( 2358): 	at android.os.Looper.loop(Looper.java:130)
E/myappName( 2358): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
E/myappName( 2358): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/myappName( 2358): 	at java.lang.reflect.Method.invoke(Method.java:507)
E/myappName( 2358): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
E/myappName( 2358): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
E/myappName( 2358): 	at dalvik.system.NativeStart.main(Native Method)
E/myappName( 2358): Caused by: java.io.IOException: No such file or directory
E/myappName( 2358): 	at java.lang.ProcessManager.exec(Native Method)
E/myappName( 2358): 	at java.lang.ProcessManager.exec(ProcessManager.java:222)
E/myappName( 2358): 	... 17 more
D/Su.ResultService( 1549): loading prefs
D/Su.ResultService( 1549): Found in database
D/Su.ResultService( 1549): appId = 18
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 80
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
D/Su.ResultService( 1549): ensurePrefs()
D/Su.ResultService( 1549): recycle()
D/Su.ResultService( 1549): ensurePrefs()
D/Su.ResultService( 1549): onDestroy()
I/ActivityManager(  525): Displayed com.deluxe.musicstop/.MusicStopActivity: +342ms
D/AudioHardwareALSA(   93): Inside AudioStreamOutALSA::standby
V/AudioHardwareALSA(   93): ALSAStreamOps::close()
I/AudioHardwareALSA(   93): Output standby called!!. Turn off PCM device.
D/dalvikvm( 2346): GC_EXPLICIT freed 313K, 56% free 3608K/8199K, external 2178K/2720K, paused 77ms
D/dalvikvm( 1549): GC_EXPLICIT freed 49K, 49% free 2886K/5575K, external 1651K/2108K, paused 50ms
D/InputReader(  525): Input event: value=1
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/ScreenCaptureAction(  525): updateBackKeyPressed(), pressed = true
I/InputDispatcher(  525): Delivering key to current input target: action: 0, channel '409fe168 com.deluxe.musicstop/com.deluxe.musicstop.MusicStopActivity (server)'
D/InputReader(  525): Input event: value=0
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = true
I/ScreenCaptureAction(  525): updateBackKeyPressed(), pressed = false
I/InputDispatcher(  525): Delivering key to current input target: action: 1, channel '409fe168 com.deluxe.musicstop/com.deluxe.musicstop.MusicStopActivity (server)'
I/Launcher(  653): onResume(). mIsNewIntent : false
E/        (  653): onResume() check 0
E/        (  653): onResume() check 1
E/Launcher(  653): setWindowTranslucent()
E/        (  653): onResume() check 2, mRestoring : false
E/        (  653): onResume() check 3
E/        (  653): onResume() check 4
E/        (  653): onResume() check 5
I/Launcher(  653): onResume() ended
I/Launcher(  653): onWindowFocusChanged(true)
D/Launcher(  653): It's live wallpaper. suggestDesiredDimensions() with SPAN 2
E/Launcher(  653): setWindowTranslucent()
W/IInputConnectionWrapper( 2358): showStatusIcon on inactive InputConnection
D/dalvikvm(  636): GC_EXPLICIT freed 8K, 71% free 2871K/9799K, external 3096K/4596K, paused 41ms
D/dalvikvm(  525): GC_CONCURRENT freed 1787K, 36% free 7601K/11847K, external 4917K/6140K, paused 5ms+8ms
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
D/skia    (  653): purging 193K from font cache [28 entries]
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40a77218 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher (server)'
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '40901eb8 com.daylightclock.android.license.MapLiveWallpaper (server)'
V/AudioPolicyManager(   93): startOutput() output 1, stream 1, session 81
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager(   93): getNewDevice() selected device 2
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 2 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 2 or null device for output 1
D/AudioHardwareALSA(   93): Calling setDevice from write @..1875.
V/AudioPolicyManager(   93): releaseOutput() 1
D/SamsungUtils(  653): acquireDVFSlock  arg0 : 0     arg1 : 1000
I/power   (  525): acquire_dvfs_lock level=0 
I/power   (  525): acquire_dvfs_lock level=0, duration=1000, val=1000 
I/Launcher(  653): onPause()
D/alogcat ( 2346): stopping ...
I/Launcher(  653): onWindowFocusChanged(false)
D/alogcat ( 2346): canceling periodic saves
D/alogcat ( 2346): starting ...
V/alogcat ( 2346): started
V/alogcat ( 2346): resumed
I/AudioHardwareALSA(   93): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
V/AudioHardwareALSA(   93): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA(   93): Using 2 channels for PLAYBACK.
I/AudioHardwareALSA(   93): DEFAULT_SAMPLE_RATE is 44100, mDefaults->sampleRate is 44100
D/AudioHardwareALSA(   93): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA(   93): Buffer size: 4096
D/AudioHardwareALSA(   93): Latency: 92879
W/AudioFlinger(   93): write blocked for 77 msecs, 33 delayed writes, thread 0x2fee8
D/Launcher(  653): It's live wallpaper. suggestDesiredDimensions() with SPAN 2
V/AudioPolicyManager(   93): stopOutput() output 1, stream 1, session 81
V/AudioPolicyManager(   93): getNewDevice() selected device 0
V/AudioPolicyManager(   93): setOutputDevice() output 1 device 0 delayMs 0 force 0
V/AudioPolicyManager(   93): setOutputDevice() setting same device 0 or null device for output 1
D/InputReader(  525): Input event: value=1
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/InputDispatcher(  525): Delivering key to current input target: action: 0, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/InputReader(  525): Input event: value=0
I/ScreenCaptureAction(  525): isBackKeyPressed(), return value = false
I/InputDispatcher(  525): Delivering key to current input target: action: 1, channel '40b137e8 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 0
I/InputDispatcher(  525): Delivering touch to current input target: action: 0, channel '408f4800 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
I/InputReader(  525): dispatchTouch::touch event's action is 1
I/InputDispatcher(  525): Delivering touch to current input target: action: 1, channel '408f4800 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'

der rest

ab 38 ist mein app mit fehlern drauf... ich hoffe das hilft jetzt mehr als ich ;)

Gruss Jobbe
 

Bolle52

Aktives Mitglied
mit dem von dir geposteten stacktrace, sollte man was anfangen können. ich schau heute abend mal, ob ich den fehler finde
 

JobbeDeluxe

Mitglied
Danke für deine Hilfe ich denke ich weiss wo das grundlegende Problem ist. Und zwar wird jeder Befehl in einem eigenen Prozess gestartet, und nicht wie von mir gewollthintereinander. daher wird su auch abgefragt aber dann wird ein neuer mit kill gemacht aber dem fehlt natürlich die su rechte.
der Exil 0macht dann den Fehler im log.

Gruss Jobbe
 

JobbeDeluxe

Mitglied
So es geht jetzt:

Java:
package com.deluxe.musicstop;

import java.io.IOException;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
 
public class MusicStopActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    
       try {   Runtime.getRuntime().exec("sh /sdcard/music.sh");
    } catch (IOException e) {
    	Log.e("MusicStop", e.getLocalizedMessage(), e);
    }
      
    }   
}
und in der music.sh ist das drinne:

#!system/bin/sh
su -c 'sleep 10 && killall -9 com.android.app'

Damit geht das das genau so wie ich will, auch wenn ich eine .sh datei dafür brauche....

vielleicht kann man die ja mit einbauen damit sie gleich im app ist? dann könnte man vielleicht auch eine variable aus der zahl machen.

Und wenn ich jetzt noch eine befehl hätte das sich das app nach dem abarbeiten des befehls selber schliest wäre ich schonmal sehr glücklich.

EDIT:
OK auch erledigt:
Java:
System.exit( 0 );
einfach unten eingefügt und es geht auch gleich aus und macht trozdem was es soll

Gruss jobbe
 
Zuletzt bearbeitet:

Ähnliche Java Themen

Neue Themen


Oben