I'm currently developing an mp3 player, android app. I'm almost done and preparing some testing. So I need to push some mp3 files directly to sdcard (using adb in command line, it easier). I can push any mp3 files except for the mp3 files that having non-english filename.
Example: テスト.mp3, 漢字.mp3
And I also tried to create folder via DDMS' File Explorer with folder name in Japanese but wasn't able to do it.
is there any way to push those mp3 to emulator's sd card or create Japanese folder?
I'm working on the following environment.
Windows 7 Home 64-bit (Japanese OS).
Eclipse as IDE.
Android SDK API 16.
SDK Tool Rev21
Thanks in advance.
I haven't tried but take a look at this program:
https://github.com/knhnnh/adbpushex
It appears to copy the files over with temporary non-multibyte names first and then rename to their original Japanese names once on the device. Even if this program does not work with the emulator you might be able to get some ideas about how you would get multibyte file names onto your emulator (ex: name then in ASCII first and then somehow rename them from the emulator itself).
Related
I have an Android Emulator I'm trying to use to debug an app I'm developing.
I know in Android Studio they have the Device File Explorer which is helpful but I may not know the exact subfolder where the file I'm looking for lives:
Is there a way either in the Device File Explorer or another tool that can search the file system of an Android Emulator by file name? (My computer's OS is Windows.)
From my Delphi app on Windows 10, I want to be able to transfer an android .apk file to the 'Internal Shared Storage\Download' folder on a USB attached Android Device.
It's actually a Datalogic Memor 1, but could be anything.
The Android device has file transfer enabled, and I can browse to the Download folder using Windows File Explorer and copy the file manually this way, but I can't find a way to do it from code.
When using TFile.Copy I always get 'The specified path was not found' but I don't know what path name I should be using and I suspect this is the wrong way to do it anyway.
I have looked into ADB but the device must be in debug mode for this to work so this is not an option.
It seems to me that this should be a fairly common thing to want to do.
How does the Window File Explorer do it?
Any suggestions please?
I am using Android Studio to emulate a basic android 4.3 device. Using the Android Device Monitor - file explorer function I am looking through the emulated file system and not all of the folders which I know exist are being shown. For instance under an installed application (on my rooted test device using a file explorer, I know folders exist in a particular location), but when I check on the emulation, I cnt see these folders.
Does the emulator not offer complete access to the file system?
another example is that the downloads folder has an image in it, but on the emulator, the file path shows the downloads folder to be empty - or it wont show me the content.
Is there away round this?
Thanks
I am trying to paste an sqlite database containing language details for testing in an AVD emulator. The application into which it is to be tested is mysword4android-3.5.1.apk, which I have installed into the emulator, and it is running. The test database is to be placed in a file "...mnt\sdcard\mysword" - what I can't figure out and find is:
Where in my laptop is this "...mnt\sdcard\mysword" located - all I get are png images or xml files when I search for it on my laptop.
How to place this sqlite database into the location/file so that the app can access it and show it
The makers of the app have simply said to copy and paste this database into the data path where other language databases are located; and this location is "...mnt\sdcard\mysword"
P.S. I have no idea about writing program code. I am using a Windows7 laptop and the AVD emulator is running Android 4.2. If the copy-paste can work that is all I can do.
The file is contained in an emulated SD card in the emulator and therefore not directly visible in the file system on your laptop. Use the tools provided with the Android development kit to move files between the laptop and the emulator file systems.
In particular, the adb pull and adb push commands will be helpful.
Sometimes, while I run a development version of an app, I want to export the database so I can copy it over to a desktop, view the database there and ensure it is being edited correctly.
Normally I will call Environment.getExternalStorageDirectory() and copy the database there. However, Jellybean on the Galaxy Nexus threw me for a loop--I could not see the file via MTP! (Mac OS X File Transfer). If I use Wifi File Explorer to browse the files on the device, then I see the database file.
After doing some research, I'm guessing this is due to Jellybean's simulated user-specific external storage. That would be why it tells me it's writing to /storage/emulated/0/ instead of /sdcard for example.
Is there a way to tell Android "write this file to where it is world-readable (including MTP) instead of only making it available to apps run under the same user"?
I had the same problem. I couldn't see a txt file I'd written in the 'Download' folder with 'Android File Transfer'. The only solution I've found is to write an extra .txt file in the same folder where you write your file, then open that folder in an app like 'Astro File Manager' and delete the extra file. Now open 'Android File Transfer', close it, and open it again. Your desired file should appear now.
I use /storage/emulated/0/Download/ as path but it should work in any other folder.
I know it's not the perfect solution but for now it's all I have.
Hope this will work for you too!