My Android Apps

Solbrent - UV Indeks. Sjekk yr.no sin UV prognose. Pass på deg og dine i Sola!



Badetemperaturer for Oslo. Local water temperatures for Oslo.


A New and fresh way to experience your Google Reader stream

Concerts and events from Sentrum scene, Rockefeller & John dee in Oslo

A specialist app for break baking enthusiasts. 

GPS Locate your phone from anywhere. Find your phone, by making it ring, when it is muted by sending it SMS. 

Følg meg på Twitter
My employer

Inmeta blogs
Main | The Google Plus App for Android does not respect the background data setting »
Thursday
Nov032011

A couple of IntelliJ live templates for Android developers

IntelliJ is very good at making developers type less. When developing Android however; I find myself typing a couple of lines over and over. I have created a few Live templates to save some finger work.

This Live template creates a static TAG string than can be used for logging   

private static String TAG = $className$.class.getName();

 This Live tmplate creates a Toast.

Toast.makeText(this,"$TEXT$", Toast.LENGTH_LONG).show();

 Do you have any Live templates for Android that you want to share?

 

Reader Comments (2)

The A1c level is the gold standard in determination of chronic glycemic control in people with diabetes. It is important to keep the A1c level as low as possible to control risks associated with diabetes. As the final slide points out, According to Centers of Disease Control and Prevention:

columbia sportswear

December 4, 2011 | Unregistered Commentercolumbia sportswear

Om du toaster ofte, bør vel kanskje DRY si at du skal dra den ut i en util-klasse:


public static void toast(final Context ctx, String message) {
toast(ctx, message, Toast.LENGTH_LONG);
}

public static void toast(final Context ctx, String message, int length) {
Toast.makeText(ctx, message, length).show();
}

January 20, 2012 | Unregistered CommenterBjørn Erik

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>