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.
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 […]
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 […]
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. […]
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 […]
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.
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 […]
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 […]
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 […]
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 […]