android

Data still not able to be showed in Listview

I cant be able to show my data into a listview using this code which Ive found on a particular website. I am able to show all the images in listview but the data are not there! Someone please help! db = new DBAdapter(this); toptext = (TextView) findViewById (R.id.toptext); bottomtext = (TextView) findViewById...

SUPL INIT message handling

Hello All, The SUPL INIT message comes in the form of WAP PUSH or SMS message. How do I differentiate the normal WAP message and the SUPL INIT? Who should take care of this differentiation? Does Android framework provide support for this? Is this already implemented in the framework? Can anyone explain where the messages are different...

Content-Length header already present

I am using the Apache HttpClient (4.1) included in Android to execute a HttpPut. I have verified that I only have 1 content-length header. However, every time I send the request, I get a protocol exception about the Content-Length header already specified. HttpClient client = new DefaultHttpClient(); putMethod = new HttpPut(url + enco...

can an image be manipulated using canvas

Is it possible to manipulate images using canvas? How do we get the image onto the canvas? @Override protected void onDraw(Canvas canvas) { Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); Bitmap mBitmap = bitmap.copy(bitmap.getConfig(), true); canvas = new Canvas(mBitmap); Matrix matrix = ne...

Problem In Key Capture

I am developing an application that has to capture the key events both in foreground and in background. I used the following code. But am unable to capture the keys in background. package com.sri.KeyCap; import android.app.Activity; import android.content.Intent; import android.os.IBinder; import android.view.KeyEvent; import android.wi...

Is it possble to detect an endless loop?

I wrote a thread application which runs an infinite loop. The problem is since its defined as a thread the loop is not holding and process hostage but does use up a lot of my processing power hence reducing my battery life. Now I know this is not how normally programs a written but considering the fact that rouge applications may be buil...

which mobile platforms supports SQLite Database

As i am being an Android developer, and android is supporting SQLite database, i would like to know that which are the other mobile platforms supports the SQLite Database so that i can make SQLite database common and can place it at one place, and thereafter i can make database transaction from different mobile platforms. ...

Desktop Icon link

Hi, I would like to know if there is an option of setting an auto icon link of my application in the user's desktop, after installing it? The only way I know to do it, is that the user could drag it manually to his desktop from the applications list. Is there any way of doing it automaticlly for the user(withouth his touch) ? Thanks, ...

Updating your facebook status ?

My application intends to update the facebook status to the area in which my cellphone is. How do i go about it ? From where should i start & in what direction should i proceed ? (I am able to get the GPS locations. Only cant figure out of linking my application to facebook. ) ...

Android Video Streaming

I need HTTP/RTSP Video Streaming with Android. Any Ideas ? Is that possible to go with JMF with Android ? Any Working examples ? Already tried with http://davanum.wordpress.com/2007/12/29/android-videomusic-player-sample-from-local-disk-as-well-as-remote-urls/ Its not working with my case. Are there any specific types of videos that A...

How to set the application as a default one ????

I download a ics file (Outlook Calendar File) from a mail attachment in my application. Another application also downloads the ics file. I need to set my application as the default application to open the ics files (from my program). Is there any possibility to know our application is the default application or not from our program? If...

When do I need inflaters?

I'm reading the book 'Hello, Android'. In the Sudoku example, it uses a options menu. It needs a MenuInflater that we use to read the menu definition from XML and turns it into a real view. To use button, textview, or many other views, I don't need to inflate them. My question is, in what situations, I need inflaters? Why doesn't Androi...

I get an error during database insertion

when im going to insert the the data in database i found the following errors please give me solution 07-26 12:24:38.275: ERROR/Zygote(32): setreuid() failed. errno: 2 07-26 12:24:45.445: ERROR/Zygote(32): setreuid() failed. errno: 17 07-26 12:24:46.705: ERROR/BatteryService(58): usbOnlinePath not found 07-26 12:24:46.705: ERROR/Battery...

TextView Marquee not working

I have tried to use marquee and its not working here is my code, please let me know where im going wrong <TextView android:text="lunch 20.00 | Dinner 60.00 | Travel 60.00 | Doctor 5000.00 | lunch 20.00 | Dinner 60.00 | Travel 60.00 | Doctor 5000.00" android:id="@+id/TextView02" android:layout_width="200dip" android:layout_he...

Retain only one copy of an activity on the stack when called from non-activity

How can I make sure I only retain one copy of an activity on the stack when called from non-activity? When called from an activity I can just add the FLAG_ACTIVITY_REORDER_TO_FRONT flag to the Intent, but how can I do this from e.g. a widget or a notification? ...

I got an error during activity start

07-26 13:32:38.705: ERROR/Zygote(32): setreuid() failed. errno: 2 07-26 13:32:46.206: ERROR/Zygote(32): setreuid() failed. errno: 17 07-26 13:32:47.526: ERROR/BatteryService(58): usbOnlinePath not found 07-26 13:32:47.526: ERROR/BatteryService(58): batteryVoltagePath not found 07-26 13:32:47.526: ERROR/BatteryService(58): batteryTemperat...

Turn off GPS icon when LocationListener is sleeping

Hello I am struggling a bit with the LocationListener in Android. I want to make an app that will get the current GPS location, and then afterwards sleep for a long time. A day or more. In this period of time i want the GPS notification icon to not show. What i have now, is in the onLocationChanged a Thread.sleep(x) but this will keep ...

ANDROID: How do you create an android servlet.

I need to know about servlet simulation. Which programe or software should I install? ...

Onscreen keyboard covers up EditText on QVGA800 skin(resolution) in android 1.5

In android 1.5 sdk, with QVGA800 skin(resolution), I added 8 EditText in LinearLayout. When 8th EditText box is tapped, the onscreen appears. However, layout doesnt move up enough, I mean, it moves up however it still covers EditText box which is being typed. How to solve this ? Main Class : package com.i; import android.app.Activity;...

Android activity and service communication

My application builds from 2 activities and one service. The main activity is list of data (extends ListActivity). The second activity is a simple progress bar. The service responsibility is to retrieve the data from the server. Once the user launches the application the service creates a new thread and send request to the server, since...