I want to create an android app. When I click a row in the ListView
, it should go to a website.
In the ListView
I'll have my widgets such as TextView
, ImageView
etc...
For eg: "www.amazon.com"
I tried the following,
rowView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.EMPTY.parse("www.amazon.com"));
context.startActivity(i);
}
});
It successfully redirects to "www.amazon.com".
Here, how will the amazon people know that people are visiting their website using my app?