Skip to content

Commit

Permalink
document getPrimaryEmail method
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Jul 17, 2014
1 parent d68fb87 commit a0e973c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import java.util.regex.Pattern;

public class UserEmail {
/**
* Get primary account and return its name if it matches the email address pattern.
*
* @return primary account email address if it can be found or empty string else.
*/
public static String getPrimaryEmail(Context context) {
try {
AccountManager accountManager = AccountManager.get(context);
Expand Down

0 comments on commit a0e973c

Please sign in to comment.