Everybody Loves Vibrating Toasts

I came across an interesting idea on stackoverflow.com for Toast notifications on Android.

It’s a simple class that extends Toast. We will modify the constructor to vibrate your device when this new Toast is displayed on screen. Below is the ~5 lined class:

public class VibratingToast extends Toast {
public VibratingToast(Context context, CharSequence text, int duration) {
super(context);

((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)).vibrate(300);

super.makeText(context, text, duration).show();
}
}

Continue reading

RESTclient for Blackberry

Recently, I’ve ventured out into the Blackberry app development space and found that some documentation is lacking for developers to create awesome applications for that platform. After searching around Google, Stack Overflow, and RIM’s developer zone, I came to the conclusion that there isn’t any good examples of how to implement a REST client effectively in a Blackberry Java-based environment.

REST clients are a mobile app developers best friend. They allow developers to make lightweight network calls to useful APIs such as the Graph API, Twitter’s API, and Google’s family of APIs including Maps, Google+, and Youtube. I came across a great example, RESTclient for Android by Tyler Smith, and used this implementation to create a foundation for a Blackberry REST client.

Continue reading