Folgende Schritte ermöglichen die Simulation einer SD-Speicherkarte im Emulator:
Per Change Directory-Befehl ("cd pfad") in den SDK-Unterordner "tools" wechseln und dort folgenden Befehl ausführen:
- mksdcard "size"M "file"
- mksdcard 56M c: \\ temp \\ sd_card.img
-
Now, the only just created image file to the emulator will be made available (mount):
open the menu "Run Configurations" on in the Eclipse menu (Run> Run Configurations) -
-
echseln the tab "Target"W - In the "Additional Emulator Command Line Options, add the following statement:
- NOTE: Depending on the version must be manually at this point even-useaudio be added, which allows the audio processing.
the moment, the simulated memory card is still no content. To copy files to it will be again in the SDK \\ tools folder on the command line following command (in active Emulator): adb push "file" "destination"
-
-
adb push " c: \\ meine_musik \\ test.mp3 "/ sdcard
This will copy the specified file to the SD card image. can
now now in the IDE and the emulator through the path / sdcard/test.mp3 auf die Datei zugegriffen werden.
--us
wobei "size" der Platzhalter für die gewünschte SD-Card-Größe und "file" der Platzhalter für den gewünschten Pfad sind. Ein konkretes Beispiel könnte also so aussehen:
0 comments:
Post a Comment