This article will explain how to dynamically load a class on Android, how it differs from desktop Java, and how to prepare files for dynamic loading.
Lars Hamrén
2012-01-05
2011-12-21
Android: Using dynamically loaded classes for fast loading of data
In an aeronautical application I need to load airport data, such as name, location and altitude. There are about 40000 airports
in the database, but not all need to be loaded at the same time. Small aeroplanes, like the ones targeted by my application, need only
a few thousand. The rest are outside their reach.
Even with this limited number, loading the data from file turned out to be time-consuming. This article discusses the problem encountered, and how I used dynamically loaded classes to achieve a reasonable performance.
Even with this limited number, loading the data from file turned out to be time-consuming. This article discusses the problem encountered, and how I used dynamically loaded classes to achieve a reasonable performance.
Subscribe to:
Posts (Atom)