Rollback using repo command?

How can I do a rollback when I use the repo command? I made some changes in some files and now I want to rollback to the source that was downloaded when I used the repo sync command. I haven’t committed the changes.

Android – access local host from browser without internet connection

I’ve installed local web server on my android tablet. But when all connections are off, every time I access the local site from built in browser (or Chrome), I get annoying popup message about “no internet connection” or something about sim card… is there any way to avoid that?

Android 9-Patch Background Image Initial PNG Size?

I’m looking at making a 9-Patch background image for my application and I’m wondering what size should I make the initial PNG in Photoshop before I convert it to a 9-Patch Image? Thanks Aaron

0 byte file appears when Capturing screen by screencap

I’m having trouble with capturing the screen of un-rooted phone. I’ve tried the command at my computer: adb shell /system/bin/screencap -p /sdcard/out.png and this worked well. However, whenever I try to use this command at my application like this : @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String[] str ={“/system/bin/screencap”,”-p”,”/sdcard/out.png”}; try { Process ps […]

Android drawing rectangle timer with animation

I’m trying to have an animation drawing stroke rectangle: Any kickstart for this issue will be helpful. Using Views,Canvas anything. Thanks

HTML5 does not work in WebView

I am creating a hybrid application by using android and offline html5 pages in android asset. is not working in Android Webview. Please help

Android browser and backface-visibility problems

I’m having trouble implementing a 3d transform (specifically a Y axis rotation) in Androids webkit browser. My implementation is similar to this example: A div is flipped through -webkit-transform: rotateY( 180deg ); but it seems that -webkit-backface-visibility: hidden; does not have any effect, as the backside of the div is always visible. Here is […]

App UI operations (setting alpha, setting margins, etc.) very slow on 4.4.4 compared to 4.0.3

I have a seekbar that changes the alpha of an ImageView. This works very smooth on an old HTC Desire 200 with android 4.0.3. I tried to run the same code on a Motorola Moto G 2014 that has android 4.4.4. The Motorola phone is 3 times more powerfull than the HTC, but when I […]

Getting error “Root access rejected” in android application

I am getting an error while running this code and the error is ” Root access rejected [] : Error running exec(). Command: [su] Working Directory: null Environment: null” try { suProcess = Runtime.getRuntime().exec(“su”); DataOutputStream os = new DataOutputStream(suProcess.getOutputStream()); DataInputStream osRes = new DataInputStream(suProcess.getInputStream()); if (null != os && null != osRes) { // Getting […]

Live Wallpaper Preview Thumbnail Size

What’s the width and height of the live wallpaper preview thumbnail in pixels? It’s definitely larger than 72×72, that I know.

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.