0

I need to change the default search engine from Google.com to some other for android programmatically, Or is it possible to change home page of default browser in android?

OR

Is it posible to get default browser's home page url programatically from my application

vipin
  • 2,851
  • 4
  • 18
  • 32

2 Answers2

1

Looks like there is no straight method.How about sending an intent to open a specific search engine using ACTION_VIEW.

String url = "http://www.yahoo.com";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);

Also check out this question: Android: change default Home Application. It may give some insight

Community
  • 1
  • 1
SKN
  • 520
  • 1
  • 5
  • 20
  • this is how you open browser from your application for a specific url.My question is how you can change Device in built Browser's home page programatically from your application – vipin Sep 25 '13 at 11:45
0

I am sorry, but I thing you will not be able to do so. Please go through this I think it might help you.

Community
  • 1
  • 1
Harish Godara
  • 2,388
  • 1
  • 14
  • 28