Category: Java
Using the Loader pattern with SQLite on Android
In my Dutch Hangman game a random word is retrieved from a database containing about 100000 words. To provide a smooth user experience this needs to be done asynchronously. (Actually several asynchron... Read MoreGoogle Analytics SDK v4 with libGDX
Introduction Google discourages the use of the legacy Analytics SDK in new projects. Instead the want you to use Android Native Application Tracking as provided by Google Play Services. Some documenta... Read MoreAdMob with libGDX
Introduction As of August 1, 2014 Google requires you to implement the Play version of the Mobile ADS SDK in your app. They offer some documentation on how to do this in Android Studio. However, we us... Read MoreGoogle Play Game Services with libGDX
Introduction Android changes, libGDX changes and Google Play Services change really fast. In order to implement Google Play Services in a libGDX Android app I proceeded from the excellent tutorial by ... Read MoreAndroid game: Cave Fizzer
How deep can you penetrate our cave system? Meet the Fizzer in his exploration of the underground world. The concept will probably feel familiar: – Travel as far as you can. – Do not hit t... Read MoreRotate a Texture Animation in libGDX
Using an Animation instance is a common way to create an animated sprite in libGDX. To optimize rendering we apply Textures instead of Sprites. Rotating a Sprite is trivial (with setOrigin and rotate(... Read MoreAn indeterminate progress indicator on Android
Here’s the indeterminate progress indicator that we use in several apps during asynchronous operations. You may find it useful and we’ll refer to it in future posts. The trivial code check... Read MoreUsing the Holder pattern
In our discussion of Android ListViews we showed how to reduce inflation costs by using convertView to recycle our row Views. A further optimization would be to reduce the use of findViewById() by app... Read MoreStarting an Android Activity containing a MapView takes forever
When an android map activity is started it may take quite a while to be up and running. What is worse, it needs some time to load, which disrupts smooth user interaction when started from a list item,... Read MoreMobile solution combines competence, mobility and location
AptiMob immediately connects you with all available professionals in your network. Search for specific skills within the geographical area of your need and take in real-time results at a glance. Find,... Read MoreSliding Toggle Button on Android (1)
The sliding toggle widget is available on GitHub. Feel free to apply it at your convenience. A simple demo might be helpful to implement it in your own project. 1) Add SlidingToggleButton as a library... Read More- 2 of 3
- « Previous
- 1
- 2
- 3
- Next »