android

Display a message inside Android Edit Text Field

Hai, I have an Android Program with one text field. I need to display a message inside that textfield when it loads on an emulator. When the user clicks inside that textbox that message should dispappear. For Ex: Please enter name Can any one post some sample code over here... ...

how to put action to open applications on Grid icon menu.

Hey guyz, I have designed a main menu in android, but now I have no idea how to open that application when I click some specific icon for that application. Any help or hint will be appreciateable. Thanks alot. ...

about databases in android

i am new in android database.i downloaded sqlite database browser. can u give me the steps how to use already generated database in android sdk with eclips. give me proper structure where to store database in eclips folder structure ...

Android emulator fails to start when using scale (Win7 x64)

My configuration is this: Windows 7 x64 Eclipse Helios x64 JDK x64 Android SDK r06 When I try to start an emulator from Eclipse (Android SDK setup application) with the scale parameter it just fails. Second Command Prompt screen (which I think is actually a Java app) shows some exception but it closes itself right after. This is very...

Face recognition library in android

Hi All, I there any Face recognition sdk/library available that one can use in to android ? whenever i search on google i just came across Recognizr , so does anyone has any idea about sdk or something like that which helps the developer in developing face recognition application ...

Android Animation Problem

Suppose i have one image. i have set it invisible in my XML attribute. and i m doing translate animation upon this image. when i click on play animation button then it is visible on screen then it translate. i dont want to make it visible until it reach to its desired translate location. how can i do that?? ...

TextView on Horizontal ScrollView in android?

Hi Folks, Can you tell me when we select an item in GalleryView its comes to the center of the screen how to restrict it? I want to just be there where i click that item. How? Simple words, I wanna horizontal Listview. How? Thanks ...

ImageButton in Android

Can anybody tell me how to resize the imageButton to fit the image exactly..This is the code that i tried, but the image is placed at the position that i am locating using android:scaleType but i can't able to reduce the size of imageButton, pls help me out in rectifying this issue...The code that i tried is ... <ImageButton> android:i...

Android - query if a sync account is checked for syncing

How can I query if a sync account is checked for syncing or not? ...

bug in android 2.1 xml drawables?

Looking at the following image, the button on the left is android 2.1, the one on the right is 2.2: As you can see the corners on the left image are not being applied correctly, but they look perfect in 2.2. The xml I'm using is here: <layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:right="0di...

problem displaying image after capturing through camera?

I am using following code to capture image through camera and then displaying it. The problem , I am facing is when i take picture and press done button it does not display that taken image in my activity. It just shows blank image field. Any one guide me what mistake am i doing? might be path related issue but I am not sure. protect...

Android Activities and Views

When developing an Android app, is there a rule of thumb for when you should stop changing layouts and instead switch to a new activity? What factors might influence the decision? ...

Android : how to delete account from database which are displayed under "accounts and sync" from my own application.

It may be wrong place to log my query, but its urgent. can anyone please help me how to delete google accounts from "accounts and sync". I'm trying to call this line my app: AccountManagerService.getSingleton().onServiceChanged(null,true); whereas onServiceChanged() method is defined in AccountManagerService.java. ====================...

I get error in "ddms]Can't bind to local 8600 for debugger"...Why?

I get error in "ddms]Can't bind to local 8600 for debugger"...Why? ...

Android: Taking Screenshot of current screen with device

When one wants to publish his App on the Android Market he can upload up to two screenshots of his app. I would like to take these screenshots with my current device (Motorola Droid) that I'm using to test the application. There are some Apps on the Android Market that allow you to take screenshots, but you have to root your phone, whic...

Android: Proper way to reuse my app's activities?

What's the proper way for other people to reuse my Activities? Should they hard code the intent actions in their app or is it customary to provide them with a jar file enumerating my app's intent actions? Is there a less tightly-coupled way to lookup the intent actions? ...

Action Listener on Image View

hey guyz how to apply action listener on Image view Plz help. thanks alot. ...

GoogleMaps MapView crashes onTap in Android !?

I'm currently writing an app displaying a MapView showing a google map. i used the "hello map view" tutorial from http://developer.android.com/resources/tutorials/views/hello-mapview.html and this works so far: the map is displayed, centered and zoomed correctly, even the OverlayItems i added are displayed correctly. But when i click on...

setContentView - strange behavior if not using R.id.?

In my onCreate method for the first loaded Activity I have: super.onCreate(savedInstanceState); final int splash = R.layout.splash; setContentView(splash); This causes the app to crash. But if I use: super.onCreate(savedInstanceState); setContentView(R.layout.splash); everything is fine. What gives? The only reason I am experimen...

Android VideoView problem

I am a beginner developer in android, I have a problem with playing video, It works with black screen I am using eclipse Galileo 3.5 with android 1.6 when I use android 2.2 it won't work at all !! Here is the code : import android.app.Activity; import android.graphics.PixelFormat; import android.media.MediaPlayer; import android.net.Ur...