【问题标题】:How to change the android default browser default Home URL如何更改android默认浏览器默认主页URL
【发布时间】:2013-07-27 22:17:38
【问题描述】:

我正在开发一个需要类似功能的应用程序 - 当我安装该应用程序时,android 默认浏览器的主页将被替换为 http://myurl.com 。这意味着我需要更改 android 默认浏览器的配置。可能与更改 SharedPreference 的值有关,但我不知道该怎么做。

我知道 android 浏览器代码是开源的,但目前我对 android 默认浏览器源代码一无所知。当我的应用程序将首先安装时,我该怎么做?

【问题讨论】:

  • 我相当(尽管承认不是绝对)肯定这是不可能的,因为应用程序是沙盒的,因此您将无法访问浏览器的私有共享首选项。

标签: android sharedpreferences android-browser


【解决方案1】:

来自本·威廉姆斯

I'm fairly (although admittedly not absolutely) certain this isn't possible, 
because apps are sandboxed, so you won't be able to access the browser's
private sharedpreferences.

【讨论】:

    猜你喜欢
    • 2012-11-12
    • 2011-11-19
    • 2012-03-20
    • 2020-09-01
    • 1970-01-01
    • 2010-12-12
    • 2011-01-12
    • 2011-09-27
    • 2014-08-12
    相关资源
    最近更新 更多