I've got a certain formatted text file that I want to have a special reader for. I can open it fine in HTMLViewer, but since it isn't really HTML, the formatting makes it difficult to read. So, I've created an activity to read it. I tested the reading part by loading an example onto the sdcard, opening it in the activity and formatting the results like I wanted and this worked fine.
But, what I really want is when I get an email with this file type, I hit "Preview" for the attachment, it gives me a list of preview types (HTMLViewer is always there and now my activity is there), then my activity opens it and displays as it did above when reading a file. The problem is that I can't figure out how to open the file in java. When I log the intent it looks like: 04-08 21:24:42.760: INFO/LogLister(30942): intent = Intent { action=android.intent.action.VIEW data=content://gmail-ls/messages/ bill%40dork.com/367/attachments/0.1/BEST/false type=text/plain flags=0x3000001 comp={com.dork.android/com.dork.android.LogLister} } I feel certain that somewhere in the data part is the path that I should use as file in new FileReader(new File(file)) but, I can't seem to home in on it. Does anybody know what it would be? --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---