android-authenticator

i am getting error when trying to add phone authentication in my android app project

只愿长相守 提交于 2020-06-17 15:47:49
问题 I am trying to add phone no. authentication in my new video app( I already have Facebook and Google authentication in my app) and they are working well. I need to save and parse user data in the server and in local as well. I do not know much about phone number authentication, please help me to fix the issue in phone no. authentication. As I already said Facebook and google authentication working perfectly and user data from these is also saving in local and server as well. Please make phone

Use screen lock in my app

夙愿已清 提交于 2020-04-07 18:14:38
问题 Is it possible to use the default security settings, which user has set to the phone, as a locking or login mechanism for my app too? I mean like when we reset the phone, it asks for phone password or pattern. Is it possible the same way that I can use the default android password or pattern set by user to login to my app? My goal is to bypass the developing effort and use some standard way of authentication without making user to remember another new password. NOTE: I'm aware that I can lock

AccountAuthenticatorActivity for AppCompat

老子叫甜甜 提交于 2020-02-28 08:42:12
问题 I'm making an authenticator following the tutorial: http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ The login Activity requires to extend AccountAuthenticatorActivity , the issue starts here: AccountAuthenticatorActivity extends the regular Activity and not AppCompatActivity . Using the regular Activity in AppCompat results in a Activity without ActionBar . I want to use AccountAuthenticatorActivity AND having an ActionBar . 回答1: The key is AppCompatDelegate , my code

AccountAuthenticatorActivity and fragments

a 夏天 提交于 2020-01-22 10:29:48
问题 Is there are way to use fragments with the AccountAuthenticatorActivity when I'm using the Support Package? AccountAuthenitactorActivity does not subclass the FragmentActivity class and therefore I'm not sure how to use fragments with it when I'm using the Support package. 回答1: No, but the AccountAuthenticatorActivity is just a helper class that does some basic plumbing on the AccountAuthenticatorResponse - you're not required to subclass it. Just borrow (from here, for instance - the code

Custom authentication: how to get custom user data values?

ε祈祈猫儿з 提交于 2020-01-06 19:56:33
问题 I have custom authenticator. And put account information like it shown below: final AccountManager am = AccountManager.get(AuthActivity.this); final Bundle result = new Bundle(); final Bundle userData = new Bundle(); userData.putString(KEY_NAME, mName); userData.putString(KEY_EMAIL, mEmail); Account account = new Account(mLogin, vcs.getAccountType()); if (am.addAccountExplicitly(account, null, userData)) { result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); result.putString

Android 4.0 SSL Authentication

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 05:27:17
问题 I'm trying to build an RSS feed reader that needs to do some client side SSL authentication. I've got, or at least think I have, the certificate. However I now cannot figure out how to setup a ssl tunnel to send the certificate to the server to authenticate. Here is what I have so far: public class Authenticator extends Activity { PrivateKey privateKey = null; String SavedAlias = ""; private static final String TAG = "AUTHENTICATOR.CLASS"; final HttpParams httpParams = new BasicHttpParams();

Re initate Sync adapter in android

岁酱吖の 提交于 2019-12-25 02:57:34
问题 I'm able to successfully create Sync adapter in my phone, but i'm not able to handle a particular scenario. My task sync app, requires the tasks permission to fetch tasks or it applicable for getting permission for any service from Google server. this scenario occurs for the first time, if the user moves to Google account without launching the application. 1) Go to Settings --> Accounts and sync --> Choose a Google account, 2) there the tasks sync content provider will be present. 3) Once i

Android: read preferences set in authenticator xml

旧城冷巷雨未停 提交于 2019-12-22 04:34:05
问题 I want to read in my code preferences I have set via the authenticator xml file. I found Can't access preferences set in account-authenticator in Android and How can access preferences set in account-authenticator in Android one is completely unanswered and the other says I need to create my own activity. This really sounds odd since that would mean that the preferences I can configure via xml are useless because I never can read them again. That cannot be. Does someone know more about it? If

Dirty flag not getting set to “1” on contact update

拟墨画扇 提交于 2019-12-18 09:29:45
问题 I am working on a project in which I want to detect the changes in the Contacts. So I have created Account with Account manager and trying to find the changes in the contact list using DIRTY flag. But the DIRTY flag not getting set for my app account_type when contact updated. however DIRTY flag of another account_type(com.google) is getting set. Help me This is how I am inserting contacts with my account and account_type. public static void addContact(Context context,MyContact contact){

Android - How to protect or delete an account when application is uninstalled?

左心房为你撑大大i 提交于 2019-12-13 15:43:06
问题 Following Udinic's blog shows us how to create our own authenticator and manage our own accounts. The problem is that if two applications try to manage the same account type, only the account authenticator of the first application will be used (and only the first application can access certain methods of the AccountManager). However, if the first application is uninstalled, then the second application's account authenticator takes its place and the second application has full access to the