A attenzi0ne Member Licensed User Longtime User Feb 16, 2013 #1 Hello guys I am trying to invoke the "ADD_ACCOUNT" intent inorder to add a google account but I get the following error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.ADD_ACCOUNT flg=0x20000 } Click to expand... and this is my code: Code: Copy Dim DoAction As Intent DoAction.Initialize("android.settings.ADD_ACCOUNT", "") StartActivity(DoAction) Return what is the proper way of doing this?
Hello guys I am trying to invoke the "ADD_ACCOUNT" intent inorder to add a google account but I get the following error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.ADD_ACCOUNT flg=0x20000 } Click to expand... and this is my code: Code: Copy Dim DoAction As Intent DoAction.Initialize("android.settings.ADD_ACCOUNT", "") StartActivity(DoAction) Return what is the proper way of doing this?
NJDude Expert Licensed User Longtime User Feb 16, 2013 #2 You could do something like this: Code: Copy Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.settings/.accounts.AddAccountSettings") StartActivity(i) Upvote 0
You could do something like this: Code: Copy Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.settings/.accounts.AddAccountSettings") StartActivity(i)
A attenzi0ne Member Licensed User Longtime User Feb 16, 2013 #3 thanks for your reply i got the following error, do i need to declare anything in the manifest? android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.accounts.AddAccountSettings}; have you declared this activity in your AndroidManifest.xml? Click to expand... Upvote 0
thanks for your reply i got the following error, do i need to declare anything in the manifest? android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.accounts.AddAccountSettings}; have you declared this activity in your AndroidManifest.xml? Click to expand...
NJDude Expert Licensed User Longtime User Feb 16, 2013 #4 The code I posted applies to SDK 17, on older versions it might be different, but the process will be the same, just a different intent name; check the unfiltered logs to get the correct one. Upvote 0
The code I posted applies to SDK 17, on older versions it might be different, but the process will be the same, just a different intent name; check the unfiltered logs to get the correct one.
A attenzi0ne Member Licensed User Longtime User Feb 17, 2013 #5 Thanks for all your help I checked the logs and found that what I needed is: com.google.android.gsf/.login.AccountIntroActivity Click to expand... I am using API 10 in case anyone is interested Upvote 0
Thanks for all your help I checked the logs and found that what I needed is: com.google.android.gsf/.login.AccountIntroActivity Click to expand... I am using API 10 in case anyone is interested