Cogitas Blog:
Google Android, machine learning,
natural language processing
and Java programming.


For Devs Info
Tips and code for app, website and server developers.

Linkify your Android TextView

Filed under: google android — Tags: , , — January 5, 2011

Android features a text utility called Linkify, which, well, linkifies your text. That is, you can turn any word or groups of words or letters into a link – not only a link for your browser, though you can do that of course, but a link for your application to interpret as it wishes.
(more…)

onClick tip for Android views

Filed under: google android — Tags: , , , , — December 3, 2010

If the code below for handling your Android clicks looks familiar

findViewById(R.id.myButton).setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
/**do stuff**/
}
});

it’s time to introduce you to android:onClick attribute.
(more…)