android-authenticator

Android : AccountPicker set Light Theme

*爱你&永不变心* 提交于 2019-12-04 03:52:47
Is it possible to set the theme of picker dialog ? import com.google.android.gms.common.AccountPicker; .... String[] accountTypes = new String[]{"com.google"}; Intent intent = AccountPicker.newChooseAccountIntent(null, null, accountTypes, false, null, null, null, null); activity.startActivityForResult(intent, REQUEST_CODE_PICK_ACCOUNT); My base app theme is android:Theme.Light but that dialog is dark. Thanks. If you wish to change the theme of the dialog, you should change the newChooseAccountIntent to zza and add two integer arguments. The first one is for overriding the theme and setting it

AccountManager does not add custom account in Android N preview

ぃ、小莉子 提交于 2019-12-04 00:42:40
I have implemented a sync adapter in my app which requires an account to be added in the device account settings. I followed the same approach given in the Android docs. It works fine till Marshmallow and I can see my account listed in the device accounts. But in Android N preview, account does not add to the device accounts. AccountManager's addAccountExplicitly() method always returns false. Has anyone faced this problem? Not sure if this is the same issue, but there's an issue with AccountManager on the current version of the Android N image. Basically, if you: Add an account to

create custom account android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 07:56:04
Whats the simplest way to create a custom account on Android? So far I've read the documentation: Creating a Custom Account Type but it certainly didn't help a lot (too vague info). I tried reading the example from LastFm but certainly they did things a bit too much elaborated wich I quite didn't understand well since I'm just an Android begginer with the accounts. I know its not as simple as calling: final Account account = new Account(mUsername, your_account_type); mAccountManager.addAccountExplicitly(account, mPassword, null); because this would trow an exception. So far I understood that I

How do I resolve the authentication message that keeps popping up in a webview?

折月煮酒 提交于 2019-11-29 13:01:17
I have a webview with authentication, in which the authentication message keeps popping up for the webview fragment when called.The authentication popup is the fault code 410 (already signed in: sign in/cancel) message, How do I pass my cookies for the session id to be maintained? Any clues? thanks! P.S: Please explain programmatically with respect to my code wherever possible as it's hard to understand when you explain without code. Here is my code for the given fragment: public class WebViewFragment extends Fragment implements OnClickListener , MainActivity.BackPressListener<Fragment> {

How do I resolve the authentication message that keeps popping up in a webview?

送分小仙女□ 提交于 2019-11-28 06:38:27
问题 I have a webview with authentication, in which the authentication message keeps popping up for the webview fragment when called.The authentication popup is the fault code 410 (already signed in: sign in/cancel) message, How do I pass my cookies for the session id to be maintained? Any clues? thanks! P.S: Please explain programmatically with respect to my code wherever possible as it's hard to understand when you explain without code. Here is my code for the given fragment: public class

How to maintain session in android?

折月煮酒 提交于 2019-11-27 03:25:57
Can anybody tell me how to maintain session for a user login. For example when the user sign- in to an application they have to be signed in unless the user logouts or uninstall the application similar to gmail in android. Bhanu Sharma Make one class for your SharedPreferences public class Session { private SharedPreferences prefs; public Session(Context cntx) { // TODO Auto-generated constructor stub prefs = PreferenceManager.getDefaultSharedPreferences(cntx); } public void setusename(String usename) { prefs.edit().putString("usename", usename).commit(); } public String getusename() { String

How to maintain session in android?

两盒软妹~` 提交于 2019-11-26 10:25:41
问题 Can anybody tell me how to maintain session for a user login. For example when the user sign- in to an application they have to be signed in unless the user logouts or uninstall the application similar to gmail in android. 回答1: Make one class for your SharedPreferences public class Session { private SharedPreferences prefs; public Session(Context cntx) { // TODO Auto-generated constructor stub prefs = PreferenceManager.getDefaultSharedPreferences(cntx); } public void setusename(String usename