> Thanks for the quick response. I am actually running the AAL from my
> own app. The app is not copy-protected on the market even it is a paid
> app so my dev phone can see my app on the market. However I don't
> think it should matter because I didn't purchase my own app but
> installed it from the USB connection. So I can only explain it as my
> dev phone is not authorized to access
https://android.clients.google.com/market/api/ApiRequest.
> Not quite sure though.
> -yingwen
> On Jun 22, 2:07 pm, David Keyes <keyes...@gmail.com> wrote:
> > This could likely be the result of you having a dev phone. If the app is
> > "copy protected", dev phones can't download. The general rule of thumb is
> > that if the phone that you are testing AAL on can "see" and purchase the app
> > in the market using the Android market app on your phone, then AAL should
> > work.
> > Dave
> > On Tue, Jun 22, 2010 at 5:02 PM, yingwen <yingwent...@gmail.com> wrote:
> > > Hi Dave, thanks for the AAL. It is a great idea.
> > > I was just started to try it but got this exception. My phone has
> > > internet access. It is a dev phone though. Any idea?
> > > 06-22 13:58:09.279: ERROR/LicenseManagerImpl(4607): Error Validating
> > > Purchase
> > > com.keyes.license.LicenseException:
> > > com.keyes.license.LicenseException: 400 - HTTP Response: Bad Request
> > > at
> > > com.keyes.license.LicenseManagerImpl.executeRawHttpQuery(LicenseManagerImpl .java:
> > > 202)
> > > at
> > > com.keyes.license.LicenseManagerImpl.validatePurchaseAgainstAppStore(Licens eManagerImpl.java:
> > > 279)
> > > at com.keyes.license.LicenseManagerImpl.access
> > > $1000(LicenseManagerImpl.java:77)
> > > at com.keyes.license.LicenseManagerImpl
> > > $ValidateWithMarketAsyncTask.doInBackground(LicenseManagerImpl.java:
> > > 813)
> > > at com.keyes.license.LicenseManagerImpl
> > > $ValidateWithMarketAsyncTask.doInBackground(LicenseManagerImpl.java:
> > > 759)
> > > at android.os.AsyncTask$2.call(AsyncTask.java:185)
> > > at java.util.concurrent.FutureTask
> > > $Sync.innerRun(FutureTask.java:305)
> > > at java.util.concurrent.FutureTask.run(FutureTask.java:137)
> > > at
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
> > > 1068)
> > > at java.util.concurrent.ThreadPoolExecutor
> > > $Worker.run(ThreadPoolExecutor.java:561)
> > > at java.lang.Thread.run(Thread.java:1096)
> > > Caused by: com.keyes.license.LicenseException: 400 - HTTP
> > > Response: Bad Request
> > > at
> > > com.keyes.license.LicenseManagerImpl.executeRawHttpQuery(LicenseManagerImpl .java:
> > > 176)
> > > ... 10 more
> > > The code is
> > > LicenseManager lLicMgr = new LicenseManager();
> > > lLicMgr.setValidationPolicy(2 /* max failures */,
> > > LicenseManager.FAILURE_BEHAVIOR_INVITE |
> > > LicenseManager.FAILURE_BEHAVIOR_NAG,
> > > 15000 /* time to display nag */);
> > > lLicMgr.checkLicense(this /* reference to your activity */,
> > > true, new CheckLicenseCallback() {...} /* a simple callback*/ );