Tag: onClick

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