There is no //Media//Movies directory on Android. You probably want external storage:
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal On Tue, Jun 21, 2011 at 10:47 PM, Jiabin Qin <[email protected]> wrote: > How do I open a file on my Android tablet? > If my file is put in the Movies folder, can I open it in the following > way? > If not, how can I achieve this ? > > private FileInputStream mFilePtr; > mFilename = "//Media//Movies//RaceHorses_416x240_30.YUV"; > try{ > mFilePtr = new FileInputStream(mFilename); > > }catch (Exception e){//Catch exception if any > System.err.println("Error: " + e.getMessage()); > > > Thanks in advance! > Jiabin > Singapore > > -- > 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 Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- 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

