android

Having tabs I want to draw a line on map and let it stay there all the time.

Hi. I'm having some difficulty with drawing a line on a map. I'm basically drawing it etc. but when I select other tab and then come back to the "map tab" the line disappears. How can I prevent that so the line stays there all the time? Please can someone help me to solve this? ...

Android Anonymous Delegate

Coming from a .NET C# background, new to Java.... How do I re-write this code to point the listener to a normal function? confirmButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { //Some Code Here; } }); ...

get all the numbers (telephone) of a contact? (in android 2.1).

guys, anybody has a code snippet where I can get all the numbers (telephone) of a contact? (in android 2.1). ...

how to handle onclick event of button inside popup window in android

In my application i have a button initially on the screen and in onclick of the button ,popup window should open. In the popup window i have an imagebutton , now on click of this button i want to start an activity. The popup window opens but i dont understand how to handle the onclick of the imagebtn inside popup window. In main.xml i...

Cant find the android keytool

Hi all I am trying to follow the Android mapping tutorial and got to this part where I had to get an API key http://code.google.com/android/add-ons/google-apis/mapkey.html#getdebugfingerprint I have found my debug.keystore but there does not appear to be a keytool application in the directory: C:\Documents and Settings\tward\.android>...

Application and service with one database

Hi. I have android application and service that runs in separate process. Application and service read and write to same database (and same table). What is the best way to work with database? How to prevent locks? ...

android Remote image Getting problem ?

dear friends, i am using following code to display remote image with next and previous buttons. clicking on next and previous buttons two or three times it does not show image next image. and bitmap of DisplayLiveImage is null. can any one check is this a buffer problem? or connection? ImageView img; int CurrentImageIndex; ...

GridView with horizontal scroll

I currently have a GridView scrolling vertically, and everything works fine. But now that I want to change my layout and have the gridview grow on its width instead of height as it grows bigger I am lost. I have tried to simply change the column width each time an item is added to the gridview. But no vertical scroll appears, even thoug...

XML error in android application

Hey guys, I added a new layout in the project and after adding it, I am getting error, even I deleted the layout file still error keep on coming, below is the screen shot for more explanation: Thanks ...

How can i put the thumbnail beside the list item in Android?

I have this Code to Capture a image and Display it back in ListView onclick of the listitem i can capture image and save to image View, but how can get onlthe left of the list item? public class ShootList extends ListActivity implements OnItemClickListener { String[] listItems = {"HeadShot", "BodyShot ", "ExtraShot", "...

How to save coordinates with Google Map?

Hey everyone. I'm currently developing an app which uses tabs and google map. What I want to do is to get the gps positions, say 3, and store them in sql db (which I'm already doing) and then display them on the map. I already created canvas, added to overlay but those points disappear when I'm changing tabs so I thought if there is a w...

Connect Android application to remote data

Sheesh talk about limited information! I'm trying to get my Android application to connect to an online database to access information. There's quite a bit of info including geotags and these are going to be mapped on my app. The developer site has the very informative piece of information: You can use the network (when it's availabl...

What i am doing wrong with Class Overview?

This code not work. Anyone can helpme? .java package rfmsoftware.util.test1; import android.app.Activity; import android.os.Bundle; public class test1 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...

Quick Search Box to filter adapter

Right now I have a list activity powered by a cursor adapter. I have a AutoCompleteTextView that allows the user to filter the list. Code looks like this: filterText = (AutoCompleteTextView) findViewById(R.id.search_box); filterText.setAdapter(mAdapter); filterText.setDropDownHeight(0); // hide the drop down, just filter the listActivit...

Listview's first item is always selected

I'm using a custom view to display items in a listview. For some reason every time the list is populated; the first item is shown as selected (ie; orange highlight). I've tried everything I can think about to solve it; any ideas? ...

Android listview - how to set Focus to listitem's child views?

Hi all, Is it possiable to give Focus on listitem chile views , what i need is i have an custom list view , i creating each row using linear layout with two views like button and textview, now i want to get that button click event and have to change the background color while focusing is it possiable? ...

Unlock Android Image fails to Show

Whenever the Android device locks and I unlock it, the image that was displayed in the ImageView disappears. What do I need to do to redisplay it or prevent this from happening. More: I have a view that displays video, images or text depending on the context and three subclasses that extend the parent view. On creation, I replace the di...

Displaying both text and icons in gridview.

Hi, I want to display the icons in grid view and also text heading for that icon just below it. can some one help me out. ...

Dynamic ExpandableListView

Can anyone tell me how I can Dynamically add groups & children to an ExpandableListView. The purpose is to create a type of task list that I can add new items/groups to. I can populate the view with pre-filled arrays but of course can't add to them to populate the list further. The other method i tried was using the SimpleExpandableLis...

No Android project type in Eclipse->File->New-Project

I am running CentOS 5.5 x86_64 with JDK 1.6, Eclipse Galileo, and the 0.9.7 ADT is installed; however, after installation, the Android project type is not available. I have checked in the installed packages list and it is installed. Anybody encounter this problem before? Could it be due to my use of the 64-bit java VM that is installed o...