Tag Archive: Custom

Yes, that’s true. You can boot into any recovery of your choice on your Android phone by following this guide. No need to flash and replace the stock bootloader. Though I have tested this method on Nexus devices only but I am pretty sure that it’ll work on other phones as well. Custom recoveries give you a lot of options for performing some important tasks, like backup and restore your phone and wiping out caches.


  • An unlocked bootloader – It is just a command away on Nexus devices. Google will give you very useful links depending on your device type.
  • ADB with Fastboot – Check out this link: http://www.jailbreakeye.com/android/install-adb-fastboot
  • A custom recovery image – TWRP or CWM (check the Download recovery or Download touch recovery columns)


  1. Copy the downloaded recovery image (.img file) to the folder where you have placed your ADB and Fastboot.
  2. Launch terminal (or command prompt on Windows).
  3. Navigate to the directory where you have placed the ADB, Fastboot and .img file together.
  4. Shut down your phone and reboot into boot loader. For nexus devices, simply hold volume down + power to start up the phone.
  5. Connect your phone to your computer.
  6. On terminal (or command prompt) window, write fastboot boot <img file name>, e.g. fastboot boot twrp.img.
  7. Your phone will restart and will boot into the recovery mode.

That’s it. As simple as it can get!

Native dialogs in Android are boring! Open-mouthed smile if you are developing an app having some cool and customized theme then doing something about those dull dialogs is a must. They wouldn’t just compliment the overall look of your application. I faced this kinda scenario recently and while experimenting and trying different suggestions on forums, I finally got around it and made it to work!

First things first, as far as my experience went, AlertDialog is not going to help you here. It just don’t get rid of that black background that is there by default (talking about gingerbread dialogs here). No matter what you do, it’ll always show the black background from behind your image (if you have any). Anyways, to create a custom dialog, we need to create a layout first in a separate xml file. Here’s an example:


This is just a simple layout having a background image that has irregular borders. Now we just need to write a few lines of code in order to make it work:


Here, we are setting the background color to transparent in order to get rid of the default dialog background color. After that, we just need to assign the layout resource to the dialog and that gets the job done.

Notice the resultDlg.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); This will remove the dim effect that makes your parent layout a bit darker. You can also set some additional flags like adding a blurred effect to the background/host activity from which this dialog is invoked. To do this, simply use the addFlags function with FLAG_BLUR_BEHIND flag. Here’s the exact statement:


This will create a very nice blur effect which I find more neat than the original dim effect. And that ends this post here. Feel free to comment and ask questions, I’ll try to answer them as swiftly as I can.