Tag: eclipse

Hide keypad in android while touching outside Edit Text Area

I know that the code for dismiss tyhe keypad in android is InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0); Can anyone suggest me a method to hide the keypad if we touch the area outside the text area other than the keypad in the screen.

Debugging Android Apps on Dell Venue 7 using Eclipse

I recently bought Dell Venue 7 tablet. I am planning to use that for testing and debugging android apps. Unfortunately the usb driver for that device does not exits. I checked the dell website and they say that the driver for that device is not hosted on their website. They haven’t provided information regarding where […]

Android Maven build gives trouble processing “javax/xml/namespace/QName.class”:

Following error is showing in Maven console everytime I do Project -> Clean. Only the jar file is built in the target folder, apk file is not getting built. Can anyone please help me to solve this issue? Regards, Sam. My development environment is; Eclipse Helios Android SDK API level 8 Eclipse ADT 10.0.1 Maven […]

Nexus 5 will not show in Eclipse

My new Nexus 5 will not show in Eclipse. I have tried every single solution on the internet for the last 3 hours. I have windows 8, not 8.1. I have a new HP Envy laptop. I am under a tight time-frame and need to get developing with this phone. Allow usb debugging is checked. […]

USB Debugging not working, adb ignores Nexus 7

For several weeks, I was able to connect my Nexus 7 2 to my computer running Windows 7, and Eclipse would recognize it, allowing me to run apps on it. The device also showed up when I ran the adb devices command. Every time I plugged the Nexus 7 into the computer, the tablet asked […]

How do I set the Java Doc for google drive api for android in Eclipse

I am using the google drive api for android in eclipse, how do I link the documentation so that when I hover over something, I can view the java doc for it.

JNI: From C code to Java and JNI

Background I am developing an application for android in eclipse and now I have a problem and I need your help. So I must Call function written in C from JAVA application. But on my way of writing code I have some Questions which you can see below. I am waiting for your answers and […]

cannot access memory at address 0X1 after setting up gdb and eclipse to debug shared library from Android Application

I have two Android Projects: one is a library and the other a regular application using this library. My aim is to debug the shared library from the android application. I followed this guide: http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/ And I commented out the the last line ##$GDBCLIENT -x `native_path $GDBSETUP` But the following line ##cp -f $GDBSETUP_INIT $GDBSETUP […]

How to overlay an image or view on top of a camera captured image

What I am doing is drawing an image from the camera on to a canvas, then convert a view containing an image into a bitmap and draw it on top of the canvas. Then the final bitmap gets saved to the external storage. the problem is the canvas appears to be sizing itself to the […]

Custom Android Views in Eclipse Visual Editor

In my applications, I often rely on custom build views, such as in the following example. <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:background=”@color/light_grey” android:layout_height=”match_parent” android:layout_width=”fill_parent” > <TextView style=”@style/CardTitle” android:id=”@+id/card_title” android:layout_height=”wrap_content” android:layout_width=”fill_parent” /> <com.whiterabbit.cards.ui.AspectRatioImageView android:id=”@+id/card_picture” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:adjustViewBounds=”true” android:layout_marginLeft=”30dip” android:layout_marginRight=”30dip” android:src=”@drawable/boss” /> <ListView android:id=”@+id/card_properties” android:layout_width=”fill_parent” android:layout_height=”wrap_content” /> The problem is, I don’t know how if it […]

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