[android-developers] How can we give path..?

2011-01-07 Thread Abhilash baddam
Hi, I can be able to display all images from Sdcard in emulator,there i have given the path like this *File images = new File(/sdcard/); *then it's showing all images from SDcard. Now i want to check the same application on mobile...there i have given path like this *File images = new

Re: [android-developers] How can we give path..?

2011-01-07 Thread Mark Murphy
On Fri, Jan 7, 2011 at 9:45 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote:      I can be able to display all images from Sdcard in emulator,there i have given the path like this File images = new File(/sdcard/); then it's showing all images from SDcard. Do not do this. /sdcard

Re: [android-developers] How can we give path..?

2011-01-07 Thread Abhilash baddam
Hi Mark, can i give path like this... *File images = Environment.getExternalStorageDirectory(); * On Fri, Jan 7, 2011 at 8:18 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jan 7, 2011 at 9:45 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: I can be

Re: [android-developers] How can we give path..?

2011-01-07 Thread Mark Murphy
If that is where your images are, yes. On Fri, Jan 7, 2011 at 10:11 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi Mark,            can i give path like this... File images = Environment.getExternalStorageDirectory(); On Fri, Jan 7, 2011 at 8:18 PM, Mark Murphy