Search This Blog

Friday, 31 January 2014

Starting Developing application with android Studio is fun or Pain !

Android launched new android development environment  few months ago, is known as android studio based on Intelli J IDEA. This development tool is in early stage of preview. You can make android application using this tool too.

What android studio right away offer -

  •         Gradle-based build support.
  •         Android-specific refactoring and quick fixes.
  •         Lint tools to catch performance, usability, version compatibility and other problems.
  •         ProGuard and app-signing capabilities.
  •         Template-based wizards to create common Android designs and components.
  •         A rich layout editor that allows you to drag-and-drop UI components, preview layouts on  multiple screen configurations, and much more.
  •         Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine as server-side components.
See android developer guide installing and setup environment. Android Studio is a promising tool which will going to be more stable and useful in coming release. I just goes through google and find out benefits and constraint of Intelli J IDEA, Android studio

Benefits 


  •   All benefit which you read in first heading, will get you right away
  •  You can import your existing android project inside android studio
  •   Look modern compare to eclipse, more responsive  and integrated plugin like ADB and sdk Manager.

 

Should we go for it?

 

Yes go for it and learn it, but do not use fully as its in early stage of development and little unstable. With few more release you can directly start development. There is no place in which android studio lack compare to eclipse

 

See some screenshot of android studio while creating an new project


Home Android Studio

First Project Screen


Wednesday, 29 January 2014

Super User Android : How to do changes in system app in rooted device

If you rooted your device than you have complete control on how it looks and works. You can modify setting look and feel, you can remove setting option completely. In rooted device you got access to system app which control whole android device.

This concept run around that every application (i.e Settings, Contact etc) has one apk installed in one specific directory called /system/app. What we need to do just grab the source code for which we want to modify and create your own apk and finally replace it with existing system apk. After rebooting device your new changes will reflect on android device.

Lets do it in steps. I did it for Setting.apk. I grab the source code of Setting application from Git Hub directory. and i did some change and then replace it.

Step 1) Grab source code of application in which you want to change. Make changes and prepare one APK.

Step 2)  Now we need to install APK into system directory
  
  • Connect device with ADB command and push apk to  SD card
            $ adb push  /Setting.apk  /sdcard/  
  • Enter into shell
            $ adb shell
  • Now switch to super user
             $ su
  • Grab write permission to push apk
             $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
  • push your apk to root
             $ cat /sdcard/Setting.apk > /system/app/Setting.apk
  • Remount /system partition back to READ-ONLY and reboot device
             $ mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
             $ exit


Done !! you had changes in to android o.s configuration. Leave your comments


 
Android News and source code