i have a activity with Media Player playing stream audio and one image linked to a Website. If i click on the link, the audio stream stop because left the activity. How i can to open the browser and don't leave the activity?. Thanks a lot. Piero.
...
img.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.setData(Uri.parse("http://testsite.com"));
startActivity(intent);
}
});
Aucun commentaire:
Enregistrer un commentaire