Free Android app covering all aspects of addiction, including prevention and treatment

Swipe View Tutorial

Using Swipe Views to swop pages Swipe views allow you to change pages by swiping your finger across the screen. You create Swipe views by using a page viewer and an adapter. The adapter supplies the pages and the page viewer takes care of moving the pages on and off…

Tab navigation tutorial

Using Tab navigation in your apps Tab buttons are displayed in the Action Bar. You can also use images instead of buttons or even your own custom views. Tabs are designed to work with fragments. Use them to swop fragments in your activities. We’ll show you how to use Tabs…
Using fragments to rebuild your activities An activity is destroyed and recreated when a device’s configuration changes. Usually the activity’s lifecycle takes care of saving and restoring its state. Sometimes you may need to restore lots of data. This could take some time resulting in a bad user experience. Here’s…

Preference Settings

Preference Settings Preference Settings allow the user to select basic settings for an app. It’s a way of customising the app to suite the user. This tutorial will show you how you can create your own custom Preference Settings for your apps. We’ll be using fragments and Headers so this…
Contextual menus, action mode, Contextual Action Bars and other stuff! So what’s this all about? Well, it’s sort of about context menus but different. It’s all about using the contextual action mode. This lets the user do stuff with the items that they have selected. Enabling the contextual action mode,…