在什么情况下可以帐号被删除? [英] Under what circumstances may an Account be deleted?

查看:148
本文介绍了在什么情况下可以帐号被删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序帐户断电时到设备(如电源线被删除,无电池),其他账户删除(例如,Dropbox的,谷歌,LinkedIn)保持不变。

My App Account is deleted when power is lost to the device (if the power cable is removed, no battery), other Accounts (example, Dropbox, Google, LinkedIn) remain intact.

我以前多次使用的帐户,都没有这个问题。我的工作包括编码不是主流的特定设备。一个Android机顶盒的电视盒。固件是基于在Android 4.1。

I have used Accounts many times before, and have not had this issue. My work involves coding for a specific device that is not mainstream. An Android set-top TV box. The firmware is based from Android 4.1.

我有一个帐户的典型模式。

I have a typical pattern for an Account.

使用 AccountAuthenticatorActivity 创建。身份验证与 AbstractAccountAuthenticator 。我有一对夫妇的 AbstractThreadedSyncAdapter 秒。

Creating using an AccountAuthenticatorActivity. Authenticated with AbstractAccountAuthenticator. I have a couple of AbstractThreadedSyncAdapters.

我的主要问题上,就是不同的方法可以注册一个帐号被删除。可这些方式通过重写<一个被停止href=\"http://developer.android.com/reference/android/accounts/AbstractAccountAuthenticator.html#getAccountRemovalAllowed%28android.accounts.AccountAuthenticatorResponse,%20android.accounts.Account%29\"相对=nofollow> getAccountRemovalAllowed (我把$ C $中C至记录此功能,当它通过断电删除它永远不会被调用)?我怎么能阻止我的帐户上断电被删除?

My main question(s), is what different ways can an account be deleted. Can these ways be stopped by overriding getAccountRemovalAllowed (I put code in to log this function, it never gets called when it is removed through power-off)? How can I stop my Account being deleted on power-off?

我意识到这可能更多的是与设备上的固件问题,是非标准。但是,如果它的固件问题,我希望没有Apps帐户和坚持。

I realise this may be more a problem with the firmware on the device, being non-standard. However, if it were a problem with the firmware, I would expect none of the Apps Accounts to persist.

推荐答案

好像这个特定的问题是由固件引起的。

It seems like this particular problem is caused by the firmware.

在SD卡中的应用prefers安装。 SD卡装载在引导过程的后期,因此未加载该应用的帐户。

The App prefers installation on the SD Card. The SD Card was loaded late in the boot process and so the Account for the App was not loaded.

这篇关于在什么情况下可以帐号被删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆