Category: Tutorial

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

  • [TUT] Array List of countries for arrays.xml

    Just created these two matching pair array’s of countries and county codes thought I would share them with everyone since I couldn’t find them myself. Could use the full names for a spinner selection and the short hand for database storage / look up / sending to a server. Or anything else! The Countries list,…

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

  • [TUT] Button to open web browser

    Someone requested this so here goes: If you want to send someone to a website when they press a button in your activity: MainActivity class: [java] package com.blundell.twitterlink; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Main extends Activity { /** Called when the activity is first created. */…

  • [TUT] ImageView with Loading Spinner

    Hi guys, read a post where someone wanted to load a url image in an ImageView and show a loading spinner whilst this was happening. So I thought it would be a fun exercise for me to do. I originally posted this here: AndDev but have now migrated to my own blog. Ok so i’ve implemented a…

  • [TUT] ListView with a Footer Item

    Just figured this one out myself. If you want a ListView with a button / edittext or other view item below the ListView that stays at the bottom of the screen while the view still scroll’s:   <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”https://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:padding=”10dip” > <LinearLayout android:id=”@+id/bottom_view” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_alignParentBottom=”true”> <!–Put whatever view…