In windows text files are displayed with notepad icon. When we double click the particular file it open’s the notepad and displays the file.
Like that I need to open the file from the download folder in android. I have used the intent-filter for register my ics file’s mime type. When I select the file in the download folder it just opens my application only. At that time I need to open / read the selected file. How to do this? I am new to android Can anyone help me?
In windows text files are displayed with notepad icon. When we double click the
Share
You can determine the
Intentyour activity was fired with by callinggetIntent(), and you can access the data for that Intent (in this case, likely a URI), by callinggetIntent().getData(). Also, the action is likelyACTION_VIEW, but you probably know this already if you’ve set up your<intent-filter>properly.