Tag: android

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