Authorizing Additional User Records in Android

May 18, 2012 at 1:43 AM
Edited May 18, 2012 at 2:04 AM

In the Android code how can a user be directed to HealthVault so that she can authorize additional HealthVault users. The following code returns the intent first time, but subsequent attempts to call the same code return null intent -

HealthVaultSettings settings = new HealthVaultFileSettings(context);
HealthVaultService service = HealthVaultService.getInstance();

Intent intent = service.connect(context);
//intent is non null only the first time service.connect is called
//After that intent is always null

if (intent != null)


May 19, 2012 at 2:16 AM
Edited May 19, 2012 at 2:17 AM

Hi ihs,

Does this method on ShellActivity work for you?

public static Intent createAppAuthIntent(Activity ctx, String appId) 

May 24, 2012 at 11:39 PM

Hi robmay

Yes, that worked. Thanks.