As an update to others who run into this problem, oddly enough, the long delay seems to only happen when I debug the app. If I run it without debugging, the whole license check (including creating the AESObfuscator object) take only a couple of seconds.
On Oct 28, 12:12 pm, John Gaby <[email protected]> wrote: > On a real device (Motorola Droid) it is faster but it still takes > about 8-10 seconds which is way to long to have to wait every time the > program starts. I have gotten around the problem by putting the > license check (including the call to AESObfuscator) in a separate > thread (note that the network connect part already ran in a separate > thread, it was the creating of the Obfuscator that was taking all the > time in the main thread) > > Thanks > > On Oct 28, 10:21 am, MB <[email protected]> wrote: > > > Android emulator is superrrslow. After a while and some complaining, > > you will get used to the slowness. > > There are quite a few discussions on this group as to why it isslow > > compared to iphone/other emulators. > > > I bet on a real device it would be at least 10x faster. Still, you > > should do license check in a separate thread since it involves network > > connectivity. > > > On Oct 27, 9:45 pm,JohnGaby<[email protected]> wrote: > > > > I am trying to implement the Market License Checker, and am following > > > the sample application. I am using the AESObfuscator class, but find > > > that it takes a VERY long time (23 seconds on the emulator) to > > > instantiate, which greatly delays the startup of my application. Is > > > this normal, or am I doing something wrong? If it is normal, can I > > > put the license check in a separate thread, or does it need to run in > > > the main thread? > > > > 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

