android

How to make my form scrollable in android

I am new to android ,and i have drawn a pie chart and when i see it vertically ,its ok,and when i change the view to horizontally i just get the first half of the chart and i want to scroll it down,how to do it. ...

GPS is on, yet LocationManager returns null

The GPS on my Android phone is on, supported by the fact that : location_manager.isProviderEnabled(LocationManager.GPS_PROVIDER) returns true. Yet, the following line : Location location = location_manager.getLastKnownLocation(LocationManager.GPS_PROVIDER) ; returns null. What could be the reason ? Thanks. ...

How to design layouts in android?

i am new to android ,i dont have idea of layouts,where to refer? basic of layout desigining,and how to make the form scrollable ,such things etc Regards Rakesh shankar.P ...

connecting PHP webservices with Android

Hello, I am developing the android application. which is going to update the content from android to the web(php webservice). Can anyone give me the sample code for my reference. ...

Gestures and color drawing

I am detecting gestures on one of my activities - I am using it to navigate through photos. Every time I am doing a gesture, yellow line is being drawn on the screen. Is there any way to set GestureColor as transparent? ...

Add number to contact on Android 2.0

Im trying to add a phone number to an already existing contact on a Droid-phone. Doing it at the same time as I create a contact is trivial, as the backreference I supply simply is 0 when creating a ContentProviderOperation. But trying to find the backreference through querying for a display name like this does not work: Cursor rawConta...

Android: Intent.ACTION_SEND with EXTRA_STREAM doesn't attach any image when choosing Gmail app on htc Hero.

On the Emulator with a default mail-app all works fine. But I have no attach when I'am receiving a mail which I've sent from my Hero using a Gmail app. The default Mail app on the hero works fine. How can I make this code works with Gmail app on Hero? You can see the code below. private void startSendIntent() { Bitmap bitm...

Android - setResultData(null) doesn't properly block call on hero?

Following on from my Question Here i have found what the problem is but cant seem to fix it. What appears to be happening is that my Application launches, the user can then press a button to start a background service and the Activity disappears. The user then makes a call and from here my applications dialog screen appears. In the int...

how to get mobile number only in mobile device only

this android aplication get mobile number to get the device only ...

No internet on Android emulator - why and how to fix?

Hello I am trying to use internet with the Android emulator, but with no success. Any ideas? ...

android default encoding

What is the default encoding of android system ? ...

how to insert date value in android?

hey, i am working on data manipulation using sqlite. how can i insert the datetime value in sqlite i implemented the below code in my app. it works, DateFormat formatter = new SimpleDateFormat("dd MMM yyyy hh:mm:ss"); String temp=property.getFirstChild().getNodeValue(); Date s=formatter.parse(temp.substring(5, temp.length()-5)); Str...

Bluetooth -> service discovery failed

Hello, I'm writing an application which is able to communicate with my PC. I have used the Bluetooth functionalities of the SDK 2.1. I can find devices, get their MAC address, create a RFCOMM socket, but when I start the connection, I get the following error message : Service discovery failed. 1)Is it because of the UUID which is no...

error opening main.xml file

hi all, I am staring to learn android, I have done everything as mentioned in the guide, and I tried the hello android example. but I just can´t open the main.xml file to edit, it give me this error: Could not initialize class java.awt.Font. I am on linus kde. I don´t what I should do, and please avoid any solutions that use 'sudo'...

Android How do i overwrite the filter for my ArrayAdapter?

Hey guys my first post here... Im trying to write a custom filter to filter the arraylist in my arrayadapter such that my listview is filtered when i click on the button. For instance when i click on my button public void onClick(View arg0) { String abc = "abc"; m_adapter.getFilter().filter(abc); } How...

how to change state of any overlayItem on googlemap?

I am able to display multiple overlayItems on Googlemap, now I want to change icon of any specific overlayItem (to show it is currently selected event). I want to do it through navigation buttons (next, previous) as on Google maps. I am using StateListDrawable to display icons for OverlayItems. Icon file is <?xml version="1.0" encodi...

How does the Facebook for Android app's home screen widget work?

Actually this question applies to any widget that requires data from a remote server. The answer would be pure speculation, but how do you think the widget gets its data? For those that don't know, the widget shows a history of your friends' latest status updates. Some answers that I can think of: The widget polls the API directly T...

Getting AlbumArt Exception in playing audio in default music player on droid

I am downloading an audio from server and inserting it in media gallery. I get the uri of the audio and starts the default audio player with this uri. When the player starts it throws throws exception. ERROR/AndroidRuntime(564): Uncaught handler: thread album art worker exiting due to uncaught exception ERROR/AndroidRuntime(564): java.l...

How can I detect user pressing HOME key in my activity?

Hi, Can you please tell me how can my activity detect user pressing HOME key? Thank you. ...

android xml to file

The javax.xml.transform package is not included in the Android SDK, so how to write a dom doc to a file? ...