How to send url to Intent in Android

This code will open the link in your Android browser. We suppose you have an Activity and you did the correct imports :


String url = "";
Intent intent = new Intent(Intent.ACTION_VIEW);


The necessary imports are:

import android.content.Intent;
import android.os.Bundle;


You like this content ? Share it with you entourage !

Leave a Reply

Your email address will not be published.