我们可以使用默认浏览器而不是WebView浏览器是否有默认浏览器的API ...
或者我们必须通过WebView强制创建我们自己的浏览器
我正在尝试检索Google帐户的密码,但出现安全异常。
我也已授予androidManifest.xmlaccount_manager,aunthenticator,get_account,管理帐户的权限。
android.accounts.Account[] googleAccount =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: googleAccount ) {
String pwd = AccountManager.get(mContext).getPassword(account);
AccountManager.get(mContext).setPassword(account, null);
}
Run Code Online (Sandbox Code Playgroud)