finalAccounta=accountManager.getAccountByName(nameArray[position-1]);// Subtract 1 because apparently android counts the header view as part of the adapter.
finalAccounta=accountManager.getAccountByName(nameArray[position -1]);// Subtract 1 because apparently android counts the header view as part of the adapter.