Looking in the analytics source after you've called trackEvent(), I suspect
that error is coming out when it is using a database transaction to insert
the event into the database. Once inserted, it calls endTransaction as well
as setTransactionSuccessful. Both of these do this check:
if (!mLock.isHeldByCurrentThread()) {
throw new IllegalStateException("no transaction pending");
}
So it could be worth checking to see if you are tracking the event from a
thread that has ended, or calling dispatch from a different thread...?
HTH.
--
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