I've got an e-mail with the tester to look up what version of the Market app he has on the device in question.
There should be a Google account on the device, but I get the same result whether I filter by account type or not. Since the app is using in-app billing, I believe it will require a google account. On Mar 2, 3:29 pm, Mark Murphy <[email protected]> wrote: > Does that device have the Android Market on it from the factory? I > know early ARCHOS tablets didn't, but I don't know if that one does. > If it does not, are you sure there's supposed to be a com.google > account? > > > > > > > > > > On Fri, Mar 2, 2012 at 5:22 PM, Peter <[email protected]> wrote: > > Hi all, > > > I currently have an app I'm beta testing and one of the test users has > > an Archos 101 tablet. I'm implementing an in-app store and one of the > > things I need is the account name they're using. I have logic to > > handle if they've got multiple accounts, but I seem to be getting only > > a null result from this code: > > > public String[] getAccountList(Activity activity) { > > int numAccounts= 0; > > AccountManager accountManager = > > AccountManager.get(activity); > > Account[] accounts = > > accountManager.getAccountsByType("com.google"); > > numAccounts= accounts.length; > > if (numAccounts< 1) { > > return null; > > } > > String[] accountList = new String[numAccounts]; > > int i = 0; > > for (Account account : accounts) { > > accountList[i] = account.name; > > i++; > > } > > return accountList; > > } > > > The accountManager.getAccountsByType() method keeps returning no > > results (same goes for getAccounts), so it just returns null. Is there > > a step I'm missing to allow my app to get account information on 2.2.x > > devices? The code works fine on a Toshiba Thrive (AT100) and the in- > > app store functions as I expect. > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

