Archive for the ‘Android’ Category

Trigger the boot completed event from the command line

~/Android/Sdk/platform-tools$ ./adb root
~/Android/Sdk/platform-tools$ ./adb shell am broadcast -a android.intent.action.BOOT_COMPLETED

Categories: Android

Android Game: Brick Tetris Puzzle

I’ve made a new android game.

Please help me download and rate for it.

Thank you so much.

These are some screenshots of the game.

Dowload at

Brick Tetris Puzzle


Brick Tetris Puzzle


Brick Tetris Puzzle


Categories: Android

Easy Math

Easy Math is an application for you play and learn with numbers.
You can play Easy Math in your free time.
Easy Math help train your brain, increase your ability to deal with numbers.
You can play Easy Math with your friends, try to get high score as possible as you can.
Solve simple operators to get more scores.
Hope you have fun with Easy Math.

Categories: Android

How to check version on google play

Firstly, you need to add this command in gradle file:

compile 'org.jsoup:jsoup:1.9.2'

And then add following code:
.userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/").referrer("")
Categories: Android

Save bitmap to location

FileOutputStream out = null;
try {
    out = new FileOutputStream(filename);
    bmp.compress(Bitmap.CompressFormat.PNG, 100, out); // bmp is your Bitmap instance
    // PNG is a lossless format, the compression factor (100) is ignored
} catch (Exception e) {
} finally {
    try {
        if (out != null) {
    } catch (IOException e) {
Categories: Android

How to get screen size on android?

DisplayMetrics displaymetrics = new DisplayMetrics();
int screenWidth = displaymetrics.widthPixels;
int screenHeight = displaymetrics.heightPixels;
Categories: Android


A color filter can be used with a Paint to modify the color of each pixel drawn with that paint. This is an abstract class that should never be used directly.

Subclasses of ColorFilter class

  • ColorMatrixColorFilter
  • LightingColorFilter
  • PorterDuffColorFilter


Categories: Android