Monday, August 29, 2011

[android-developers] opening a specific file in a new activity

I have an indexed list activity that contains several files in my
assets directory. I know how to open a file and display the contents
in a WebView. I do this within the class once I start the activity.
I can hard-code the file name in this activity.

What I want to do is have the user select the file and have this file
opened. I don't know how to have the activity know what file name was
selected. how does one pass this information to the new activity? I
also need to be able to jump back to the list activity so the user can
select a different file.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment