Facing the same problem. Did you find any solution for this?

On Friday, 12 March 2010 15:20:17 UTC+5:30, sukumar wrote:
>
> hi,
>
> I'm trying to create a sync account which should not be deleted by user ( 
> On selecting RemoveAccounts from Accounts settngs). 
>
> For that, I overriden getAccountRemovalAllowed() function. From the java 
> docs (@ 
> http://developer.android.com/reference/android/accounts/AbstractAccountAuthenticator.html)
>  it says we can return a bundle with any of the below keys.
>
>    - 
> KEY_INTENT<http://../../../reference/android/accounts/AccountManager.html#KEY_INTENT>,
>  
>    or 
>    - 
> KEY_BOOLEAN_RESULT<http://../../../reference/android/accounts/AccountManager.html#KEY_BOOLEAN_RESULT>,
>  
>    true if the removal of the account is allowed, false otherwise 
>    - 
> KEY_ERROR_CODE<http://../../../reference/android/accounts/AccountManager.html#KEY_ERROR_CODE>and
>  
>    
> KEY_ERROR_MESSAGE<http://../../../reference/android/accounts/AccountManager.html#KEY_ERROR_MESSAGE>to
>  indicate an error 
>
> The problem I'm seeing is, it always shows the same Dialog on selecting 
> "Remove account" even if I return any key bundle ( KEY_INTENT, 
> BOOLEAN,ERROR_CODE). 
>
> I wanted to shown my own custom activity with the reason for not deleting. 
> I'm creating the Intent of my custom activity and returning it in Bundle 
> from getAccountRemovalAllowed() api. Instead launching my custom activity, 
> Its showing a Dialog with text "This account is required by some 
> applications, You can only........"
>
> Please let me know, If I missed something?. Thanks.
>
> Regards,
> Sukumar. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to