Hi, I am migrating from Symbian to Android. For symbian based nokia mobile phones, the support for accelerometer sensing using java is by the Mobile Sensor API (JSR 256) which is provided in the technical specifications of every nokia mobile phone that supports it.
However, for Android based "HTC Desire" mobile phone, I am not sure whet...
Hello, i am sorry to ask again since i asked something similar to this earlier, but am in serious need of help here. situation is this, i have an Arraylist with values of strings, which i have converted to an array i want to query a "NAME" column in my sqlite database and return rows that have the string values in the name column.
e.g ...
I've got a DialogPreference which implements a simple TimePicker.OnTimeChangedListener (see below). Setting the time by clicking the +/- buttons works great. But I don't know how to save the state of the timepicker when the user typed in the time directly into the textfield. It could be sufficient to access to the current textfield value...
So an android browser or a webview works fine with urls like this - abc.com/xyz.txt
However, if your URL looks like this - abc.com/xyz.php and what's sent to the browser in the headers is - Content-Disposition: attachment; filename="xyz.txt", then the Android browsers and web view seems to get terribly confused.
It looks like it saves ...
I'm guessing this is very simple, but for some reason I am unable to figure it out. So, how do you pick a random integer out of two numbers. I want to randomly pick an integer out of 1 and 2.
...
I'm calling a custom dialog thusly
CustomDialog dialog = new CustomDialog(this);
dialog.setCancelable(true);
dialog.show();
Now, if I have a bunch of buttons in the dialog, how do I return the user's choice when I dismiss() the dialog?
...
I have a list of data which I am showing in linearlayout. I am not using ListView as I dont want scrollbar, I want all my data visible at once. I am already processing using AsyncTask but now I want to fetch the images also. I want 1st AsynTask to complete its task and call another AsyncTask to load the images, but when I trying to call ...
I'm trying to write a graphical effect where a circle moves around an image smudging the image as it goes (like the way the smudge tool in Gimp or Photoshop would work). The basic algorithm I'm using is:
the circle moves from position A to position B on the bitmap
copy a circle of pixels from position A into a temporary bitmap
draw thi...
Is there a way to get this behavior in android? Views which tile horizontally until they run out of space, and then flow to the next line.
...
Some background. I currently have a class that is instantiated multiple times and inside the class resides a Bitmap member variable that is set using BitmapFactory.decodeResource on instantiation. At any time I may need to apply a matrix to the bitmap and it's currently done via:
public void applyMatrix(Matrix matrix) {
mBitmap = Bi...
I have an ArrayList() that I want to display as a Spinner. Problem is, I need to display something other than the File.toString(). I would like to set the Spinner's view text to the file name (formatted), not the full file path returned by File.toString(), so I believe this rules out just using ArrayAdapter? Thanks!
...
Hi,
I try to get the correct speed in updates for the function onLocationChanged, this is my class:
public class LocationService extends Service implements LocationListener {
Putting the minTime on 6000 does not help, it wil keep updating constantly, what am i doing wrong?
public void requestLocationUpdates (String provider, long mi...
Hi I am trying to login salesforce through a webservice on Android platform. But I am facing some problems. I am getting a "Socket Exception:Operation timed out" error. I am using the Ksoap2 soap cient ported for Android and WSDL details are from the Partner WSDL of my developer account at Salesforce.I have anabled the "api access".Also,...
Hi,
I am developed application with google map in android 2.2 version using eclipse in ubuntu machine.In that case I can get the google map as well as the location perfectly.
But now i have to run that same apps in Xp machine,there also am having android 2.2 .The apps run properly but the google map not displayed ,only white screen w...
my issue is this:
i need the phone to create a MediaPlayer object called smp when:
it sees that it's been shaken, it confirms that smp isn't already created, it sees that a button called hilt isChecked.
when it satisfies these conditions, it should create the player, play a sound, and destroy the player. the problem i have is that i...
dear friends,
i want to get android camera gallery folder path to save images in that
in different mobile phones it is different for example in galaxy it is
/sdcard/DCIM/camera/image.jpg
and in other phones for example
/sdcard/media/images/image.jpg
hot get path up to gallery folder dynamically?
any help would be appreciated.
...
I am using Http get and post methods for Http Connection
I just wanted to ask that what all exception can occur in using them.
I know list may be too long but can someone tell me the general and frequent exceptions that occur and must be handled?
my code is :
public class httpconnection
{
HttpClient client=new DefaultHttpClient...
Similar to how you may have different sets of layouts for different physical screen sizes, is it possible to have different Manifest files? As a use case, I would like to not define an Activity for certain devices.
...
"java.lang.RuntimeException: Unable to start activity ComponentInfo : android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.LinearLayout"
I am getting this error can anyone help me?
...
I can't seem to find a simple example of how to make a button that is on a widget launch an external activity. I'm well aware of how to do this with a button in a normal activity. But it seems that things are a little different when down through a widget.
I'm trying to make a button on my widget open up the official Facebook App. From w...