Tag: android

  • [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…

  • Testing Devices – Emulator Settings for each Android Density Bucket

    Recently I’ve needed to test on a vast range of devices, but we don’t have the physical devices available. I’m always wary of the emulators because they can’t show defects with the software that manufacturers/operators put on top of vanilla android. One thing the emulators are good for is testing the different pixel densities that…

  • List of Android Devices with pixel density buckets

    This is my attempt at collating what device runs at what pixel density. I realise there are millions of devices so this list will start small and hopefully I’ll update it often whenever I come across a new device. [code] Model | Android Version | Density Advent Vega | 2.2 | mdpi Amazon Fire TV…

  • [TUT] Switching Android build constants using Ant

    When you want to create two different builds/configurations for your development environment and your live build, it can be really annoying having to change all those constants; or you don’t have them as constants and you’ve got some horrible if else logic in your code. Here I’ll show you how to use Ant to swap…

  • [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] 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…

  • [TUT] Infinite Scrolling Gallery View

    This is just something I put together when trying to figure out the best way to display my images to the user. One thing I did find out is the Android Gallery View sucks! I won’t be using it again for further projects but it does the job at the moment. The issue with the…

  • [TUT] Simple InApp Billing / Payment (V2)

    *DEPRECATED Please see my new tutorial: Simple InApp Billing / Payment V3* ________________________ —> InAppPurchaseTUT Source Project Download InAppPurchaseTUT Source Project Download

  • Add source code links to Android APIs

    So I’ve just been taking it for granted that I can see the source code for the Android SDK by clicking ‘view source’ on the Android developer site. see below: Today I was using someone else’s machine and was completely confused when I couldn’t see that link. I was wondering, was it because I was…

  • [TUT] Rounded Corners Map View

    This tutorial is pretty self explanatory. Basically a nicer looking map view that has rounded corners. This is a custom view that draws a map view then draws rounded corners over the top. This works if your mapview goes to the edge of the screen I’ll be writing an update for MapViews that sit in…

  • [TUT] Sending a Tweet

    Implemented this myself so thought I would share. This isn’t the prettiest solution but it gives you all the facts and is nice an quick. I’ve kept it all in one Activity to try and give you the overview you can deal with the OO later yourself. Source file downloads are at the bottom of…