Other applications cannot read files in your application's internal storage. Either create a ContentProvider to serve the file, or create it as world-readable.
On Mon, Nov 28, 2011 at 5:22 AM, Aris <[email protected]> wrote: > Hello, > i am reading a byte[] from a web service and saving the file in data/ > data/package/files with success. I can see the file in the emulator > ddms. but when i try to open the file from code > Uri path = Uri.fromFile(wordFile); > Intent intent = new Intent(Intent.ACTION_VIEW); > intent.setDataAndType(path, "application/msword"); > intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); > > i get an error permission denied. i cant seem to find a way to save > the file and open it with no errors. on android 2.1 this works like a > charm, but when using the same code in android 3.0 it doesn't. Any > clue why this happens? > > thanks in advance for the help.. > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

