android google play service

Actually i am new android user currently facing one problem from a while this is the link where u can see the code provided by google. its showing me red line on GoogleAuthUtil in eclipse. please help me out.

   private String[] getAccountNames() {
    AccountManager mAccountManager = AccountManager.get(this);
    Account[] accounts = mAccountManager.getAccountsByType(
    String[] names = new String[accounts.length];
    for (int i = 0; i < names.length; i++) {
        names[i] = accounts[i].name;
    return names;


You have to follow this tutorial to setup Google Play Services in your project.

After that, you can import GoogleAuthUtil normally.


its showing "Google.AuthUtil cannot be resolved" and its also giving error in import statement.. import; showing red line on "" nd error is "the import cannot be resolved"

Need Your Help

How can I delete fonts from my code, under Windows?

windows language-agnostic fonts installation

This article showed me how to install fonts from a script, but now I'm faced with the problem of removing them. How can I do that ? Any language is ok, I'll convert the info to what I need later.

How to perform a case and diacritic insensitive filter of an array of NSDictionaries (not NSString)?

iphone objective-c macos diacritics

I have an array of dictionaries. I would like to filter that array by seeing if the @"name" field of each dictionary contains a given string.