How to change the default Android browser's homepage within an app?

后端 未结 6 1104
刺人心
刺人心 2020-12-11 10:07

Within my app, is it possible to programatically change the Android browser\'s homepage url? If so, how can I accomplish this?

For example, if you run this popular

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 10:31

    I hava a opinion: Maybe you can read the source code of Browser and find the code like this:

    SharedPreferences prefs = mContext.getSharedPreferences(RECOVERY_PREFERENCES, Context.MODE_PRIVATE);
    

    and get the SharedPreferences of Browser,then find the place to set homepage, change it. Is that possible?

提交回复
热议问题