I am queuing up a bunch of runnables into a thread via a Handler.post(). I would like the ability to send a note to that thread that it should pause.
By pause I mean, finish the runnable or message you are currently working on, but don't go to the next message or runnable in your message queue until I tell you to continue.
...
Hi,
i've got a class
public class Preferences extends PreferenceActivity implements OnSharedPreferenceChangeListener
out of this i try to call a method from an other class, this method contains:
mFoo.setTextColor(getResources().getColor(R.color.orange))
But it doesnt work, it tells me, getResources isnt static... how can i change?
...
I've been looking at examples of CursorAdapter implementations to make sure I'm doing everything right.
One thing I've noticed that I'm not doing is calling changeCursor(null) on my CursorAdapter in the Activity's onStop() handler.
mAdapter.changeCursor(null);
What is the purpose of this? I'm willing to do it if there's a good reaso...
I'm attempting to override an Android View class to tweak the functionality just slightly. But I need to modify a field that does not have a setter method. I've placed the subclass in a package called android.widget. Why can't I access any of the package-private member fields? I notice that the compiler says they "cannot be resolved,...
I am to start writing my first Android application starting next week here at work. I am curious about the video and results of it found here: http://www.youtube.com/watch?v=It8xPqkKxis
The submitter indicates that c++/c# runs faster than Java on the Android platform though this was on Android 1.5.
At any rate, can anyone confirm that ...
I have a form with several Views on it, the last one is a Spinner that is bound to an adapter to get it's data from a Web Server via a POST request, at the end I append an additional entry for "Other...". If this option is selected on the spinner, a new EditText View at the bottom where the user enters a custom value, I've managed to get...
Hi,
I am developing my first Android App. I have an application already running on emulator (Eclipse + Android dev. tools) on Ubuntu 10.04 LTS - the Lucid Lynx - released in April 2010. I have already tryied the steps provided on Android Developers Portal on this link, but whenever I try to list my already connected device using ./adb d...
Hi, I was putting the finishing touches on my app today. I created a layout-large main.xml, and a drawable-hdpi for a few of my app's images. That was all working fine, on both the WVGA and HVGA emulators. Then I added a "Help" button, with no associated code, into my menu-key menu. That was also working. I can't remember changing anythi...
I have a listView of contacts that I got from the Android ContactManager sample. This list is showing up fine, but I can't figure out how to get info from the selected item, like "name" and "phone number".
I can get the selected position, but the result of the mContactList.getItemAtPosition(position) is a ContentResolver$CursorWrapperI...
I created a separate project and activity that downloads an image from a URL, converts it to a Bitmap, and then uses a FileOutputStream to save that file to the SD card. When in the separate project and free-standing activity, this worked fine, and I could see that the image is stored on the SD card.
public class PictureDownload extends...
I cannot see the imeoptions like done and like on HTC devices while same code works fine with Motorola.
Here is the code
<TableRow>
<EditText android:hint="Name"
android:id="@+id/name"
android:background="@drawable/chegg_topcorner_rounded"
android:layout_width = "50dp"
andr...
I want to use addIntentOptions to drive my menus when ever possible. This seems the cleanest way to provide them. Rather than explicitly detailing activities, simply ask for a menu listing all the activities which are available for my data item.
So I'm trying to put together a context menu for a ListView. It works great. Only problem is...
Does anybody know where I can find documentation on the asterisk? It appears to override the protection of 'private' variables in subclass android.R.drawable.
...
I have a class Scores.java I need to know whats the correct way to create these. I get "The constructor Scores is not defined. Do I have to extend off everything in Android??
package com.threeuglymen.android.stuff;
import android.app.Application;
import android.app.Service;
import android.content.Context;
import android.content.Intent;...
First of all I'm new to Anroid. So it might be a very simple question but I couldn't find the answer by myself.
I have two Activity, I'm filling the first one with the user names and the other data I receive from the remote request and the second one is being used to display the details of the selected user.
So in some way I need to as...
i get the data from the Internet and show in the listview,i want to make it come true that when i slide the screen with my finger and if the listview is to slide to the bottom ,i will get more data from the Internet and update the adapter of the listview.But how can i monitor the listview to slide to the bottom,there seems no functions ...
How to connect android phone to wifi network setup on macbook pro?
...
Hi friends,
I have a situation here. I want to put turn by turn navigation using mapview in my android app, just like google maps provides us. I was not able to find any kind of turning info in th kml file returned by google, so I wonder is it possible or not ??
Thanks in advance.
...
any good recommendation of a physical android device for testing purpose?
I am looking for a device like iPod touch in Apple camp that help iOS developer to test their stuff. I know there is Nexus One, but that thing is pretty expensive and i don't really care about the phone stuff, but something that can let developers test accelerome...
I have searched alot on this but could not find anything on google or stack overflow.
...