question

bersto avatar image
bersto asked

Context.getClassLoader() modified by Amazon Store?

Hello, We have an app that is distributed in various ways, including Amazon App Store. It's a plain Android app (no Google Ads, no Amazon SDK, etc.) and contains ical4j which requires the following code line to work: Thread.currentThread().setContextClassLoader(context.getClassLoader()); This is because ical4j uses the current thread's context class loader to load resources (timezone definitions etc). It works fine when pushing the .apk directly to the device, and it works with Google Play and Samsung Store. It's also noteworthy that the app declares two processes in its manifest, " " and " :sync" which runs 3 sync adapters. The context class loader only needs to be set for the :sync process. Only when distributed via Amazon Store, the same .apk produces an error (when run the questionable code) which can be traced back to the call above. It seems like the process definitions or context class loader is somehow modified by Amazon Store. Is that possible? Is there any documentation on this?
amazon appstore
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

bersto avatar image
bersto answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.