get Browser Intent - Android android.content

Android examples for android.content:Intent

Description

get Browser Intent

Demo Code

import android.content.Intent;
import android.net.Uri;

public class Main{


    public static Intent getBrowserIntent(String url) {
        Intent result = new Intent(Intent.ACTION_VIEW);
        result.setData(Uri.parse(url));//  w  w w . j  a v a 2 s .  c  o  m
        return result;
    }

}

Related Tutorials