android

Android Eclipse ADT device configuration for EVO 4G 4.3" layout

I'm trying to create an ADT layout configuration to match an EVO 4G screen, with its 800x480 resolution and 4.3" screen. The emulator I created by just specifying WVGA800 in the SDK Manager seems to match my physical EVO device perfectly. However, when I try to create a Layout device config (the one you select when you edit an XML view)...

Reading RSS feed, end of reader before end of data.

I'm coding this in Java for an Android device. I'd just like to read all of the data in the RSS feed and then I have a parser ready to act on the data. The trouble I'm getting is that only a small portion of the data is ever being read by my code. It then says the end of the reader has been reached and proceeds to return the partial data...

How to overlay a button programmically?

What I would like to accomplish is to, at runtime, place a button in the middle of the screen, as the very top layer, overlaying anything below it. (It's not big, so it will not completely cover the screen, just whatever happens to be below it.) I looked at creating a custom dialog, however that blocks all other user input. I want all...

Onclicklistener acts weird after scrolling in ScrollView

Hi everyone: I have many ImageViews set with OnClickListeners. They extend beyond the screen, contained in a ScrollView. When scrolling down and clicking an ImageView that was previously beyond the screen, onClick(View view) does not seem to execute until the second click. It behaves normally otherwise. My Activity implements OnClickLi...

Develop mp3 player on Android platform

Hi all, I am just getting into android development, can anyone guide me how to develop an mp3 player on android platform? any suggestion is greatly appreciated. ...

How can I get a signed access token from facebook using OAuth 2.0?

I want to identify the an android native app user on my web service. I don't want to include a secret in my java, as that would be trivial to find. Using the javascript sdk on the website, the token is signed and I can verify it with the shared secret on the server, but the android sdk just gets a token. I had hoped that I could pass th...

display soft keyboard with alternate keyset on screen while hardware keyboard is open

Is it possible to make it so when the hardware keyboard is open and an input field is selected to display an on screen keyboard made up of non standard characters? I've looked extensively at everything I could find about writing a custom IME but am still unclear as to whether this is possible on the platform. If I write a service could...

Android: Custom ListView OnItemClickListener Weird Issues

I have a ListView that I'm populating with dummy strings right now. It is currently holding 10 items, but the view itself is only large enough to show 5. So the list has to scroll of course. I've built the list using the following code: ListView: <RelativeLayout android:id="@+id/catList" android:layout_width="wrap_content" ...

Loading PreferenceScreen from JAVA

How can we fill PreferenceScreen dynamically (from JAVA). I have one string array. I want all items to be displayed in second preference screen with checkbox. Currently I am having CheckBoxPreferencetags for each item in string array in preferences.xml. Any thoughts on how to do this. ...

Why is my scheduleAtFixedRate being ignored in my code..??

Greg Here is my New code based on your suggestions. It did not work. I got a bunch of "Just sent a text message with coords" in a row. So it still is not sleeping for 15 seconds. package com.droid.service; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Timer; import java.util.TimerTask; import android...

How can I Share My answers to all

Hi, I am new to this stackoverflow.I have one doubt If I have some answer mean how can i share that to everyone . Regards, Lakshmanan ...

Android: I need a button that kills anything played by the MediaPlayer

Hi, I have an app that plays several different audio files on a loop, via several different buttons. I want to program a single button that will stop the MediaPlayer, regardless of what audio file is currently being played. Any help with this would be greatly appreciated. ...

putStringArray() using String 2-Dimensional array (String[][] )

Hi, I want to pass a 2-D String Array to another activity. My S2-D String Array (String[][]) is 'selected_list'. code is : Bundle list_bundle=new Bundle(); list_bundle.putStringArray("lists",selected_list); Intent list_Intent = new Intent(v.getContext(), view_selected_items.class); startActivityForR...

How to Use Customized fonts on Canvas(3 Questions included inside)

1) How to Use Customized fonts on Canvas 2) i have customized view (PIECHART DRAWN ON CANVAS) on left side of the screen and list view on right of the screen. when ever i touched on the canvas list view values has to be changed. is it possible. my listview is in Activity A class.And view is in B class. 3) i have piechart with n ...

How to set Custom EditTextField properties in android?

Hi to all.I am new to android .can any one solve the following problem? I just create the class like below .I need to know how to set property for the Edit text field public class CustomEditText extends EditText{ public CustomEditText(Context context) { super(context); // TODO Auto-generated constructor stub } } Note: I mean...

xml parsing in android

i am new to android. I want example how to parse xml file in android.could anybody provide me a program ...

Drop shadow in imageview in android

How to set a Drop Shadow around a image view in Android. Please give me proper code. Thanx.. ...

Android catch keys

I'm new to android programming, and I was wondering if there was an event or something for any virtual keyboard input. I was also wondering if there is an event for when you try to send a text message, or maybe a way to send a text message. I want to use 2.2. thanks. After doing some reading it looks like this isn't possible. What I wan...

Insert Text with tilde in Sqlite3 on Android.

Hello. I'm trying to insert on Sqlite3 texts like 'descripción', and I'm geting on a shell conected to emulator with adb, strange caracters instead of 'ó'. I'm using the following data to insert: item.description = "Descripción del juego 1"; And I'm geting: Descripci|-n del juego 1 I've also tried this: item.description = new St...

Download button does not work please help

Ok so I have my app 90% built everything works but my download button. I have been stuck on this for days now so if anyone could help a guy out with something that will work for this. my files are .pkg and I feed the filename from a xml file and here is my buttons code but I dont know what I am doing wrong here. It just does nothing upon...