Code example for AccountManager

Methods: getUserData

0
	} 
 
	public String getAuthToken(final String service, final int uid,
			final String packageName, final String packageSignature,
			final Account account) {
		return accountManager.getUserData(account,
				getAuthTokenStore(service, uid, packageName, packageSignature));
	} 
 
	public String getFirstPackageSignatureDigest(final String packageName) {
		try { 
			final PackageInfo info = packageManager.getPackageInfo(packageName,
					PackageManager.GET_SIGNATURES);
			if (info != null && info.signatures != null
					&& info.signatures.length > 0) {
				for (final Signature sig : info.signatures) {
					final String digest = signatureDigest(sig);
					if (digest != null) {
						return digest;
					} 
				}