androiduser mobile wrote:
> Hi all,
> 
> I am facing a weird problem now, I have a piece of code which copies
> the files from assets folder to sdcard/downloads and is working well
> for me, but when other user is running this code in his system, he is
> getting " Parent directory does not exist" exception with
> file.createNewFile().
> We both are using the same android SDK. Can anyone suggest what makes
> it work differently in different systems?

Perhaps the other user does not have an /sdcard/downloads/ directory,
either because:

1. You did not create a downloads/ directory, or

2. The external storage is not at /sdcard and you used that string
literally rather than Environment.getExternalFileStorage(), or

3. The user does not have an SD card installed, or...

There are probably other possible causes, but those three come to mind.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to