Popular Posts

May 6, 2012

Open website from your apps(Android)


              private final static String WEBSITE = "http://itsjubayer.blogspot.com";


               final Intent visit = new Intent(Intent.ACTION_VIEW);
                visit.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                visit.setData(android.net.Uri.parse(WEBSITE));
               
                // Use a thread so that the menu is responsive when clicked
                new Thread(new Runnable() {
                    public void run() {
                        startActivity(visit);
                    }
                }).start();

                return true;

No comments:

Post a Comment