Can anyone pls respond?

On Fri, Mar 12, 2010 at 3:20 PM, sukumar bhashyam <
bhashyam.suku...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to