Monday, September 27, 2010

[android-developers] Android licensing implementation is slow - specifically the AESObfuscator

I'm starting to implement the new Android licensing stuff into my
app. I implemented it pretty much straight from the
ServerManagedPolicy example, and it does seem to work.

However, it takes many seconds to complete every time I start the app,
which is unacceptable. When I step through the code, the
AESObfuscator generates a secret key, and that's the call that is
slowing everything down.

// This line takes way too long
SecretKey secret = new SecretKeySpec(tmp.getEncoded(), "AES");

Is this to be expected? Am I doing something wrong??

Thanks!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate