I have an application in which I have added a menu.
Clicking on this menu opens up a website.
There is a list of links(zip files) available on this website.
Clicking on a particular link should result in that zip file to be downloaded to the assets folder of my application.
I am able to load the website.
Code for this:
String url = "http://almondmendoza.com/android-applications/";
Intent k = new Intent(Intent.ACTION_VIEW);
k.setData(Uri.parse(url));
startActivity(k);
I am referring to the example given on this website
What I am curious to know is whether it is possible to perform an action on click of a particular link available on the website. If it is possible then how can I accomplish this task?
Use WebView to load webpage, you can recognize URL using following code