Android Apps auf Device

Generic1

Top Contributor
Hallo,

ich versuche gerade mein Andriod- App, welche ich mit Eclipse auf Ubuntu programmiert habe, auf mein Smartphone zu deployen, hab aber leider noch ein paar probleme:

generic1-albums-android-controller-device-picture144-bildschirmfoto-android-device-chooser.png


Ich habe alle 3 Punkte von:

Developing on a Device | Android Developers

durchgemacht, aber folgendes versteh ich schon nicht:

You can verify that your device is connected by executing adb devices from your SDK tools/ directory. If connected, you'll see the device name listed as a "device."

adb ist zwar vorhanden aber kann nicht ausgeführt werden, wenn ich das mache, bekomme ich folgendes:

Code:
mycomputer@ubuntu:~/android-sdk-linux_x86/tools$ adb
No command 'adb' found, did you mean:
 Command 'cdb' from package 'tinycdb' (main)
 Command 'gdb' from package 'gdb' (main)
 Command 'aub' from package 'aub' (universe)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'mdb' from package 'mono-debugger' (universe)
 Command 'arb' from package 'arb' (multiverse)
 Command 'tdb' from package 'tads2-dev' (multiverse)
 Command 'pdb' from package 'python' (main)
 Command 'jdb' from package 'openjdk-6-jdk' (main)
 Command 'jdb' from package 'sun-java6-jdk' (multiverse)
 Command 'ab' from package 'apache2-utils' (main)
adb: command not found


Und was mir auch nicht klar ist, was ist Gusty/Hardy oder Dapper -> wo bekomme ich her, was ich da verwenden soll?

Weiß jemand was ich da falsch mache?
lg
 

Geeeee

Bekanntes Mitglied
1. versuch mal im tools verzeichnis "./adb" auszuführen, geht das nicht nimmste "bash adb" oder stellst eben die Rechte der Skripte im Toolsverzeichnis auf ausführbar.
2. Gusty, Hardy oder Dapper sind Ubuntu-Versionen: 7.10, 8.04, 6.06
 

Generic1

Top Contributor
Danke, war schon mal eine sehr gute Hilfe, wenn ich jetzt das von dir ausführ, dann bekomm ich folgende Ausgaben:

Code:
root@ubuntu:~/android-sdk-linux_x86/tools# ./adb devices
List of devices attached 
????????????	no permissions

Was kann ich da machen?
lg
 

eRaaaa

Top Contributor
Danke, war schon mal eine sehr gute Hilfe, wenn ich jetzt das von dir ausführ, dann bekomm ich folgende Ausgaben:

Code:
root@ubuntu:~/android-sdk-linux_x86/tools# ./adb devices
List of devices attached 
????????????	no permissions

Was kann ich da machen?
lg

bei mir hilft:
Code:
adb kill-server
adb start-server (als root)
adb devices
 

Generic1

Top Contributor
Hallo,

besten Dank für die Hilfe, es funktioniert.
was mich noch interessieren würde: der Text wird jetzt am Smartphone angezeigt. kann ich die Applikation jetzt schon unabhängig starten und beenden, also gibt es irgendwo ein Icon für diese Application?
lg
 

eRaaaa

Top Contributor
Hast du schon eine apk-Datei? (wenn nicht kannst du diese mit Eclipse erstellen lassen export - android tools oder so) Dann kannst du diese mit
Code:
adb install pfad
installieren, und ja dann sollte es bei den Programmen auftauchen.
 

Generic1

Top Contributor
Hallo,

ich hab ein dummes Problem und zwar hab ich jetzt länger nichts mehr gemacht mit android und weiß jetzt nichtmehr, wie ich zum ersten Dialog gekommen bin unter Ubuntu.
Weiß das zufällig jemand?
lg
 

eRaaaa

Top Contributor
Hallo,

ich hab ein dummes Problem und zwar hab ich jetzt länger nichts mehr gemacht mit android und weiß jetzt nichtmehr, wie ich zum ersten Dialog gekommen bin unter Ubuntu.
Weiß das zufällig jemand?
lg

"ersten Dialog" - welchen meinst du? Meinst du: den Dialog aus deinem ersten Post? Das ist doch ein Eclipse-Dialog oder nicht? Solltest also dort suchen :)

edit: Jetzt weiß ichs wieder. Der kommt, wenn du in den "Run Configurations" deiner App bei dem Tab "Target" nicht den automatic Modus benutzt, sondern manuell!

Was genau möchtest du denn machen?
 
Zuletzt bearbeitet:

Generic1

Top Contributor
Super, danke, da hätt ich noch länger gebraucht bis das ich da draufgekommen wäre.

Jetzt hab ich noch ein anderes Problem, wenn ich das Handy (Samsung i15800) mit dem Kabel an meinen Ubuntu Rechner anstecke und auch USB Debugging eingestellt habe, wird das gerät nirgends angezeigt, weder das ein Laufwerk für das Handy erscheint noch das in diesem Fenster oben das Handy aufscheint.

Weiß da jemand was es da haben kann bzw. wie ich in Ubuntu schaun kann, ob überhaupt ein Gerät erkannt wurde?
lg
 

Generic1

Top Contributor
Ist das ein anderes Handy als vorher?

Hallo,

nein, es ist das gleiche Handy, was mich aber auch stutzig macht ist, wenn ich das Handy über das USB- Kabel anstecke, dass sich am Computer überhaupt nichts rührt, es wird auch kein Laufwerk angelegt, wo ich z.B.: die Bilder der Camera runterziehen könnte.
Wisst Ihr da was es da haben kann? Ansonsten müsste ich in einen Shop wo ichs gekauft habe schaun, damit die sich das mal ansehen!?
 

eRaaaa

Top Contributor
Hallo,

nein, es ist das gleiche Handy, was mich aber auch stutzig macht ist, wenn ich das Handy über das USB- Kabel anstecke, dass sich am Computer überhaupt nichts rührt, es wird auch kein Laufwerk angelegt, wo ich z.B.: die Bilder der Camera runterziehen könnte.
Wisst Ihr da was es da haben kann? Ansonsten müsste ich in einen Shop wo ichs gekauft habe schaun, damit die sich das mal ansehen!?

Uff....mal einen anderen USB-Slot ausprobiert ? , wirkt manchmal wunder. Eig. müsste sich das Handy ja auch zu Wort melden und dich nach dem Verbindungstyp fragen. Boote auch mal das Handy neu!
 

Generic1

Top Contributor
Hallo,

also ich hab mein Andrid- Handy jetzt mal über das USB- Kabel mit einem Windows 7 Rechner verbunden und da wird das Handy in den Device Manager eingetragen als "Other devices -> nH" aber mit einem !. Wenn ich dann auf dieses Gerät klicke, dann steht in General "The driver for this device are not installed, There is no driver selected for the device information set or element". Dann steht noch
Location: Port_#0005.Hub_#0008

Ich hab das Handy auch schon ausgeschalten und wieder eingeschalten aber irgendwie mags nicht. Am Handy wird schon eine Meldung angezeigt, ob ich mich mit dem Computer verbinden will, wenn ich aber Verbinden klicke, dann passiert aber genau gar nichts.
Hat das schon mal jemand gehapt bzw. kann man das Smartphone wieder auf Werkseinstellung zurückstellen damit ichs dann nochmal probieren kann?

Im Device Manager:

generic1-albums-android-smartphone-picture149-otherdevices.png


Properties von Other Devices:

generic1-albums-android-smartphone-picture148-nhproperties.png


Ich bin mir ehrlich gesagt gar nicht mehr sicher, ob ich beim ersten mal verbinden des Handys mit dem Computer einen CD eingelegt habe um einen Driver zu installieren aber ich glaub nicth das ich das gemacht hab!?


lg
 
Zuletzt bearbeitet:

Generic1

Top Contributor
Also ich bin mir jetzt sicher, dass ich keinen Treiber installiert habe, da in der Verpackung des Smartphines gar keine CD reinginge.
Weiß noch jemand was ich machen kann, um dem Computer das Smartphone bekannt zu machen?
lg
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
D Android Android Apps direkt vom Handy aus programmieren? Android & Cross-Platform Mobile Apps 2
S Voraussetzungen für Android-Apps Android & Cross-Platform Mobile Apps 7
Kr0e Verkauf von Android Apps Android & Cross-Platform Mobile Apps 17
J Apps für Android programmieren - Android Handy notwendig oder reicht Simulator? Android & Cross-Platform Mobile Apps 3
M Android Android 4 Apps abwärtskompatibel mit Android 2 Android & Cross-Platform Mobile Apps 1
J Benachrichtigung Freigabe ab Android 14 Android & Cross-Platform Mobile Apps 1
J Android Benachrichtigung zum Zeitpunkt ers Android & Cross-Platform Mobile Apps 15
J Das Beispiel von Android erzeugt Fehler Android & Cross-Platform Mobile Apps 8
J Zeitdifferenzen unter Android 7 (API < 26) berechnen Android & Cross-Platform Mobile Apps 4
W Netzwerk Verbindungen Java Android Android & Cross-Platform Mobile Apps 107
Z Android IntelliJ Android & Cross-Platform Mobile Apps 2
M Repository bei Room-Database in Android Studio (Java) Android & Cross-Platform Mobile Apps 2
Android App auf das eigene Handy bekommen Android & Cross-Platform Mobile Apps 3
Alex IV Android App erstellen Android & Cross-Platform Mobile Apps 3
OnDemand CrossPlatform Kotlin iOs/Android Datenverbrauch Android & Cross-Platform Mobile Apps 2
W In Android Studio Integer an andere activities übergeben Android & Cross-Platform Mobile Apps 2
wladp Android Studio Room Database Android & Cross-Platform Mobile Apps 1
N "Schöne" Datatable in Android und setzen von Parametern von Textview im Code Android & Cross-Platform Mobile Apps 5
N Android game programmieren Android & Cross-Platform Mobile Apps 5
T Android Studio: Einen Button in einer For Schleife verwenden Android & Cross-Platform Mobile Apps 2
K BLE Komunikation mit Android studio und esp32 Android & Cross-Platform Mobile Apps 5
G Android UDP Kommunikation Android & Cross-Platform Mobile Apps 1
M Paper DB wird in Android Studio nicht erkannt Android & Cross-Platform Mobile Apps 7
J Android zugrif auf Thread nach Handy drehen. Android & Cross-Platform Mobile Apps 10
T Android Android Augmented Faces in Java. Neue Landmarks erstellen Android & Cross-Platform Mobile Apps 1
K Android Android In-App-Purchase lädt nicht Android & Cross-Platform Mobile Apps 0
Besset Android http request an interne ip adresse funktioniert nicht Android & Cross-Platform Mobile Apps 8
J Is Android Development Head First Outdated? Android & Cross-Platform Mobile Apps 3
J Android Android Datenbankverbindung zum Raspberry Pi Android & Cross-Platform Mobile Apps 1
lolcore Android Studio -Download Documentation for Android SDK Android & Cross-Platform Mobile Apps 0
S Sinnvollste weg eine SQLite DB mit Android auslesen Android & Cross-Platform Mobile Apps 7
W Problem mit Android Studio Android & Cross-Platform Mobile Apps 0
W App Abo Android Android & Cross-Platform Mobile Apps 10
OSchriever Android Android MediaPlayer bei Anruf stoppen/pausieren Android & Cross-Platform Mobile Apps 2
OSchriever Auf onClick-Listener reagieren und Parameter übergeben (Android Studio) Android & Cross-Platform Mobile Apps 4
W removeNetwork Android App mit Spendenaktion fürs Tierheim! Android & Cross-Platform Mobile Apps 1
T Android R.string.test+i Problem Android & Cross-Platform Mobile Apps 2
P undefinierbarer Fehler Android Android & Cross-Platform Mobile Apps 8
T Android ArrayList sortieren mit 2 Werten ohne thencomparing , Wie? Android & Cross-Platform Mobile Apps 10
W Variable überschreiben (Android Studio) Android & Cross-Platform Mobile Apps 2
ruutaiokwu Android Selbst entwickelter SMTP-Client läuft auf PC, nicht aber auf Android Android & Cross-Platform Mobile Apps 9
ruutaiokwu Android Warum muss man bei Android Studio immer 2x auf "Run" klicken damit die App auf dem Gerät startet Android & Cross-Platform Mobile Apps 8
ruutaiokwu Android Wo das 'android.useAndroidX' property hinzufügen? Android & Cross-Platform Mobile Apps 8
ruutaiokwu Android In einem Android-“Spinner”-Element GLEICHZEITIG Bild (links) UND Text (rechts) anzeigen Android & Cross-Platform Mobile Apps 0
P Login und Registrierung Android Anzeige Android & Cross-Platform Mobile Apps 7
S Von JavaFx zu Android Android & Cross-Platform Mobile Apps 12
K Android to Pi | Websocket Problem Android & Cross-Platform Mobile Apps 3
ruutaiokwu Wie fügt man bei Android Studio .jar-Libraries zu einem Android-Java-Projekt hinzu? Android & Cross-Platform Mobile Apps 33
M Komponenten positionieren in Android Studio 3.6.3 Android & Cross-Platform Mobile Apps 1
M Android Studio - Property-Fenster einblenden Android & Cross-Platform Mobile Apps 1
M Android Studio - App auf dem Smartphone testen Android & Cross-Platform Mobile Apps 7
M Barrierefreie Appentwicklung für Android - Suche Codebeispiele Android & Cross-Platform Mobile Apps 8
M Android Studio - Configuration fehlt Android & Cross-Platform Mobile Apps 20
M Wo kann ich das Android SDK herunterladen / wie kann ich es installieren Android & Cross-Platform Mobile Apps 3
M Unsupported class file major version 57 - Fehlermeldung bei Android Studio Android & Cross-Platform Mobile Apps 27
ruutaiokwu Android Studio (SDK) ANDROID_SDK_ROOT-Variable? Android & Cross-Platform Mobile Apps 5
O Web API in Android (JAVA) einbinden Android & Cross-Platform Mobile Apps 3
J Android Studio macht seltsame Sachen Android & Cross-Platform Mobile Apps 2
J Android 9.1 aber android Studio findet API22 Android & Cross-Platform Mobile Apps 0
Dimax Web-Seite in native app convertieren mit Android Studio Android & Cross-Platform Mobile Apps 8
A Android Studio: while-Schleife beginnt nicht Android & Cross-Platform Mobile Apps 5
lolcore android studio: fehler bei laden des emulators Android & Cross-Platform Mobile Apps 10
J Android App - Browser öffnen und Text eingeben/Button click auslösen Android & Cross-Platform Mobile Apps 10
A Android-Studio: 2. Layout nach kurzer Zeit aufzeigen Android & Cross-Platform Mobile Apps 2
A jpg wird im Android Studio nicht akzeptiert Android & Cross-Platform Mobile Apps 3
J Android Studio - ArrayList - Selected Item ermitteln Android & Cross-Platform Mobile Apps 13
T Android SDK-Manager startet nicht in Eclipse Android & Cross-Platform Mobile Apps 5
T Bringen mir die Java-Basics irgendetwas für die Android-Programmierung Android & Cross-Platform Mobile Apps 4
J Was soll das bedeuten ? does not require android.permission.BIND_JOB_SERVICE permission Android & Cross-Platform Mobile Apps 7
A Android Studio: ImageView verpixelt Android & Cross-Platform Mobile Apps 2
J intend Service im Android Studio Android & Cross-Platform Mobile Apps 4
L Android Android Development eventuell mit Flutter Android & Cross-Platform Mobile Apps 1
S Android Layout - welchen Typ? Android & Cross-Platform Mobile Apps 3
T Fehler Android Studio: java.net.MalformedURLException: no protocol: http%3A%2F%2Fwww.mal ..... Android & Cross-Platform Mobile Apps 2
Arif Android Android Studio: Fehler beim Einbinden fremder Bibliothek? Android & Cross-Platform Mobile Apps 2
L Android Android Contacts DB auslesen Android & Cross-Platform Mobile Apps 1
A Android Studio - App mit Nearby Android & Cross-Platform Mobile Apps 1
L Android content URI Datei einlesen Android & Cross-Platform Mobile Apps 9
N Android Game Background Service Android & Cross-Platform Mobile Apps 11
Jackii Android Android Studio Error im Testlauf ohne zu programmieren Android & Cross-Platform Mobile Apps 9
B Android Probleme mit Android Studio Android & Cross-Platform Mobile Apps 6
Excess Android Service läuft nicht in Sandby weiter Android & Cross-Platform Mobile Apps 2
B Android Projekt für Android und IOS erstellen? Android & Cross-Platform Mobile Apps 5
J App funktioniert auf Android 5, auf 6 nicht Android & Cross-Platform Mobile Apps 2
J Android Snake Android & Cross-Platform Mobile Apps 15
J Android TaschenRechner Android & Cross-Platform Mobile Apps 22
I Das Problem mit der Tastatur... android:windowSoftInputMode="adjustPan" Android & Cross-Platform Mobile Apps 1
E Wie erhalte ich Zugriff auf das Microfon? (Android Studio) Android & Cross-Platform Mobile Apps 9
C Android Programmierung speziell oder einfach Java Buch kaufen? Android & Cross-Platform Mobile Apps 3
B Android Kein Zugriff auf Telefonspeicher (Android 6) Android & Cross-Platform Mobile Apps 1
T Android Equalizer für Android Android & Cross-Platform Mobile Apps 3
L Android Android Studio - Exportierte APK funktioniert nicht Android & Cross-Platform Mobile Apps 6
L Android Methode funktioniert nicht unter Android Android & Cross-Platform Mobile Apps 3
A Beginnen mit Serverkommunikatsion in Android Studio Android & Cross-Platform Mobile Apps 6
E Android Studio Android & Cross-Platform Mobile Apps 15
L Android Android Studio Setup killt Explorer Android & Cross-Platform Mobile Apps 3
K Android Videos rendern Android & Cross-Platform Mobile Apps 1
J Variable in strings.xml (Android Studio) Android & Cross-Platform Mobile Apps 0
B Android Android Studio lässt PC abstürzen Android & Cross-Platform Mobile Apps 3
B Android App Fehler Android & Cross-Platform Mobile Apps 21

Ähnliche Java Themen

Neue Themen


Oben