Category: Tutorial

  • [TUT] Backup & Restore SharedPreferences to the cloud

    This tutorial will show you how you can backup and restore your users sharedpreferences into the cloud. This allows for your app to remember it’s settings in between device installs. This is based on the reference from Google here. In this example we have a simple activity that takes user input and displays it on…

  • [TUT] Using Annotations for Android XML onClick visibility

    In this tutorial I’ll show you how to create a basic Annotation. The idea being you can use this to highlight the entry points into your code. (These entry points coming from XML onClick declarations in your layout files). I did this originally for myself, I was finding it hard when looking through my Activity…

  • [TUT] HTML in an Email Intent

    Recently I’ve had to write an Android Application that can send some of its data via email. It’s easy to send the data but I wanted to style the email using CSS. After trying every possible scenario here’s my results. You can add < b >, < i > and other small styling tags but…

  • [TUT] Generic One Option Dialog Fragment (with data)

    In this tutorial I’ll show you how to create a dialog fragment that can be used for general purpose dialogs where you want to show the user a message and just have one option for them to acknowledge the message. The unique thing about this tutoral is you can add an object to your dialog…

  • [TUT] Change alias passwords of your Android Keystore

    I recently gave one of my applications to another developer to work on. They where to upload updates to Google Play and therefore needed the keystore to sign the application. Now me being naive to start with my keystore had an alias that was specific to me and not the app, it also had a…

  • [TUT] Show YouTube Feed for a Users Videos in a ListView ( XML )

    Hi guys, this is a Tutorial Request to show a list of videos that a user has uploaded to their youtube channel using atom XML. YouTube has some great API‘s for using the data from their website and you can retrieve this data in a few formats including XML and JSON. This tutorial will retrieve…

  • [TUT] SplashScreen with Progress Bar

    Recently had a request for a splash screen that can be used to inform the user that you are downloading some resources that are needed for your app to load. When your app first starts you might want to download a database from the internet, unzip some compressed files in your assets directory or do…

  • [TUT] Click item in a ListView to show YouTube Video

    Following on from the popular ‘Show YouTube Feed for a Users Videos in a ListView’ someone requested that when you click on one of the individual videos in the list that it links off to the YouTube video. This in itself this is quite simple, but getting the architecture right and having the data you…

  • [TUT] Add Your App to the Android ‘do something’ Menu (using Intent Filters)

    This request is to be able to add your application to the context menus of the android system. When the android system or another application wants to do a specific task, it will broadcast an intent saying “can anyone do this for me“. Here I’ll show you how you can grab this request so your…

  • [TUT] Show YouTube Feed for a Users Videos in a ListView ( JSON )

    Hi guys, this is a Tutorial Request to show a list of videos that a user has uploaded to their youtube channel. YouTube has some great API‘s for using the data from their website and you can retrieve this data in a few formats including XML and JSON. This tutorial will retrieve the data using…

  • [TUT] Set a notification for a user chosen time

    Here we will set a notification to be popped up at a specific time in the future that the user has chosen. We will follow on from the Basic Date Picker Tutorial to use this Date Picker to allow the user to set a reminder. It is a quite interesting scenario and this is just…

  • [TUT] Basic Date Picker

    I was just looking on the Android Developer site and the only tutorial they had to show a DatePicker was within a dialog. I didn’t want my datepicker in a dialog, I wanted it embedded into my activity. However I already knew there was a DatePicker XML view that I could use, so I was…

  • [TUT] Preloaded images set as phone wallpaper

    This is the first request that I’ve done! This tutorial will show you how to display some images within your application from the resources folder, you can browse through these images and choose to set one as your phones wallpaper. Tutorial will go like this: Create XML layout to let you browse your images Create…

  • [TUT] Sliding Drawer Activity – Animate an Activity

    This tutorial is to show you how you can have a new activity animated to slide into view just like the Android Sliding Drawer. The tutorial show’s the animation coming in from the left and leaving from the left, but you can easily change this to animate from the left, right, up, down, you can…