Tag archives for Android - Page 18

How to use Shared Preferences in Android ?

Android provides several options for developers to save persistent application data. The solution you choose must depend on your specific needs. In this article, we are interested in Shared Preferences that let you to store private primitive data in key-value pairs. Entry Point of this solution is SharedPreferences class. It provides a general framework that allows you to save and…
Continue Reading
Articles

What are differences between px, dp and sp in Android ?

Today, a brief reminder about Android dimensions. When you create the UI layouts of your application, you're used to define dimensions with units like dp (density-independent pixels), dip or sp (scale-independent pixels). Other units supported are pt (points), px (pixels), mm (millimeters) and in (inches) where as this second kind of units is not recommended because not independent from devices…
Continue Reading
Android

Implement a Gesture Detector in Android

In modern applications, manage users’ gestures is an essential feature. It brings a better interactivity between your application and users. Implement a Gesture Detector to create a view flipper in Android is very simple and we’re going to make it quickly. Follow the guide. Android SDK provides a GestureDetector class available in package . GestureDetecture detects various gestures and events…
Continue Reading
Articles

How to monetize an Android application ?

For each developer, monetize an application is the big question that should be prepared during conception of an application. Indeed, it’s the best moment to take decision about business model for an application. Several models are possible : Paid model. Users pay one time for your application and after that it’s over. No more revenue. Subscription model. Users pay each…
Continue Reading