On Mon, Apr 1, 2013 at 6:14 PM, Paul Johnson <[email protected]>wrote:
> available
i have to get the answer off my old hd, so while do that, bear with me.
this function (java) has worked in every version of android from 2.0-4.0+
for me.
public static String getAccountName(String type,Context _context) {
Account[] accounts = AccountManager.get(_context).getAccountsByType(
type);
if (accounts.length > 0) {
return accounts[0].name;
} else {
return null;
}
}
public class AccountType {
public static final String GOOGLE = "com.google";
public static final String TWITTER = "com.twitter.android.auth.login";
public static final String LINKEDIN = "com.linkedin.android";
public static final String FACEBOOK = "com.facebook.auth.login";
}
try type Google to get their email addy with the phone. Also, by using this
code you agree not to use it in any satori project, as I only provide it
(and it is my code) or i will file in injunction against any app you put
out.
also seeing that you once said I "grossly misrepresented my skills" and
this is the nth time I've fixed your problems, perhaps you could apologize
for that.
--
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.
-Wozniak
- if my programming advice has helped you, feel free to donate to :
<https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
<https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
<https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid