How to display a group of pictures?

by yves...@gmail.com » Thu, 07 May 2009 10:06:06 GMT


Sponsored Links
 I want to pick only 5 pictures (there are more than 20 in the same
folder) to be displayed in a slideshow. I can use Intent.Action_View
and then use setDataAndType with one uri, and it worked. But how to
add 5 pictures into it?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

You might try just using java.io.File, which works well for me:

File file = new File("/whatever/path/to/file.txt");
try {
  InputStream in = new FileInputStream(file);

  ...
}
catch(Exception ex)
{
  ...
}

I've noticed in the documentation that openFileInput() is supposed to
be what you use, but I haven't determined if the above is not okay,
and if not, why not. I'm doing this in several places, and it has
never caused a problem.

On Dec 10, 9:41am, "Chandrakar Aravind-rqj386" <[EMAIL PROTECTED]>




--~--~---------~--~----~------------~-------~--~----~

2. Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

Hi,

 

I am trying to read non-local txt file, but I am getting error: 

 

      java.lang.IllegalArgumentException: File /data/testing.txt
contains a path separator

 

Any one has any idea?

 

My code is like that:

      FileInputStream orifile = openFileInput("/data//samplefile.txt");

      BufferedReader bufReader = new BufferedReader(new
FileReader(orifile.getFD())); 

I am able to read local file (created on my package).

Arvind


--~--~---------~--~----~------------~-------~--~----~

3. How to build a project that base on SDK with Ant "build.xml", on Android source-codes?

4. MapActivity Problem --Debugs but won't launch from signed apk.

5. WindowManager$BadTokenException: Unable to add window -- token null is not for an application

6. ExpandableListAdapter Crash

7. Anyone else seeing problems with the browser & Google Sites?