Thanks. I was able to get the file using adb pull and by looking at it, I realized I was assuming the file was ascii and was able to fix the problem.
On Jun 22, 7:48 pm, Geoff Stromberg <[email protected]> wrote: > As Dianne said, use "adb shell" to get a shell prompt on the emulator. Then: > > cd /data/data/com.your.package/files > > If I'm remembering things correctly, that directory should contain files > created from within your app. > > As for opening the userdata.img, I think that's a flash memory device image, > and isn't easily accessible. I remember seeing some steps for mounting it on > linux, but I don't recall where. > > On Mon, Jun 22, 2009 at 5:40 PM, Dianne Hackborn <[email protected]>wrote: > > > > > You can use "adb pull" and "adb push" to retrieve and send, respectively, > > files with the emulator. > > > You can use "adb shell" to get a command line shell in the Android system, > > allowing you to browse through the filesystem. > > > On Mon, Jun 22, 2009 at 5:36 PM, junker37 <[email protected]> wrote: > > >> Yeah, the file exists and I can read it in my code. However, I want > >> to verify it on my filesystem. The path is /data/data/example.app/ > >> files/4de67f137f7fa92bab63569f565c888 which obviously doesn't exist on > >> Windows. So, I'm assuming that the path is relative to the emulator > >> data root. > > >> I believe I found where the emulator data is stored. There's a file > >> userdata.img, however, I tried opening it with winimage, thinking it > >> was an img file, it was not. > > >> Does anyone know how to access the contents of userdata.img? > > >> On Jun 22, 5:37 pm, Marco Nelissen <[email protected]> wrote: > >> > On Mon, Jun 22, 2009 at 2:32 PM, junker37 <[email protected]> wrote: > > >> > > I'm wondering where files that are created while running in a > >> > > simulator are stored. > >> > > I'm running the 1.5 simulator on Windows Vista. > > >> > Nitpick: you're running the emulator, not the simulator. > > >> > The real reason I want to find the files is because I am downloading > > >> > > an png file and trying to create a bitmap via: Bitmap bitmap = > >> > > BitmapFactory.decodeFile(iconFile.getAbsolutePath()); > >> > > However, the bitmap is always null. > >> > > I am able to create a bitmap successfully if I have the file as a > >> > > resource. > > >> > Can you access the file otherwise? I.e. can you open and read the file > >> that > >> > exists at iconFile.getAbsolutePath() ? > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see and > > answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

