android

Get the address from the contacts.

can someone help me with the following code to get the address stored from the contact?? THANK YOU! // Extract the address. String where = ContactsContract.ContactMethods.PERSON_ID + " == " + id + " AND " + ContactsContract.ContactMethods.KIND + " == " + ContactsContract.KIND_POSTAL; ...

Android : Handle OAuth callback using intent-filter

I am building an Android application that requires OAuth. I have all the OAuth functionality working except for handling the callback from Yahoo. I have the following in my AndroidManifest.xml : <intent-filter> <action android:name="android.intent.action.VIEW"></action> <category android:name="android.intent.category.DEFAU...

why xml parsing in android

why do we need xml parsing in android and which one is really better (SAX,DOM.PULL) ...

What are different ways to develop application in android?

Hi Can anybody help me to know , in how many ways we can develop application for Android platform.The only one way that i know is through Java.Somewhere i read that other than Java like Python , Rails and Native C are also used to develop android application.Please help me if anybody knows it, in terms of how these languages are used to...

How to use Android GradientDrawable

I try to use the GradientDrawable to set a gradient to some backgrounds and buttons. Sadly the documentation is not very detailed. What are the main attributes to configure the gradient? I understand start and endcolor but some of the other attributes could need some explanation. At the moment I used images as the background for the ...

Thread loses Message after wait() and notify()

Hey Guys! I have a problem handling messages in a Thread. My run-method looks like this public void run() { Looper.prepareLooper(); parserHandler = new Handler { public void handleMessage(Message msg) { Log.i("","id from message: "+msg.getData.getString("id")); // handle message this....

How to get the time on the point that you click on the clock?

For instance, when you click the clock on the screen, there will pop up a notification/dialog which displays the exact time point. Anyone can tell me how to achieve this function? Thanks in advance! Maybe I should explain the "exact time point" . For example, there is a big analog clock on the screen. When you click around the dial, it...

How to make a screen contains google MapView and ListView?

Hi guys. I don't know how to create an custom Activity extending MapActivity and ListActivity ? I am trying screen that contains of google map and list view. How to make it ? Thanks in advance. ...

Problem when downloading a file

Hi, Here's the problem I'm facing : I try to download a file from a tomcat server using the following snipet of code try { BufferedInputStream getit = new BufferedInputStream(new URL("http://192.168.2.180:8080/android.apk").openStream()); FileOutputStream saveit = new FileOutputStream(path); BufferedOutputStream bout = new B...

how can i change my default browser in android emulator

how can i change my default web browser in android emulator.Can somebody help me out with steps to be followed.. Thank u in advance ...

Auto-size zoom on Google Maps in java? (depending android screen resolution)

Hey guys, i've got 2 GeoPoints given to show them on the map with markers... so far so good... how can I get the optimum zoom level for the MapController in order to focus the middle of both points, but also have them on the map. The whole thing should work at different screen resolutions. Sorry for asking that silly question, I know...

starting with android

I am considering to start writing apps for android. Could some-one post list with all tools needed to start coding. My programming skills by language are C# - excellent Java - moderate c/c++ - beginner I have heard something about Mono for android, whats the status of it? is it any good? Also it would be helpful to hear how Java ...

How can i make a dynamic flipping screen(like that of iPhone) in Android

I am parsing data through the web service. I want the flipping horizontally rather than vertically. Here is a tutorial where ViewFlipper is used but it is for static data. ...

Classcastexception occurs randomly

Hi, I've an application in the market and many users have reported that the app is crashing a lot randomly. I'm trying to fix this but cannot fully understand the logs. Here's a extract from the log, 04-16 13:16:32.407 E/AndroidRuntime( 9237): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maya.mobile.chiki/com...

HTML in string resource?

I know I can put escaped HTML tags in string resources. However, looking at the source code for the Contacts application I can see that they have a way of not having to encode the HTML. Quote from the Contacts application strings.xml: <string name="contactsSyncPlug"><font fgcolor="#ffffffff">Sync your Google contacts!</font> \nAfter sy...

Question about passing data using intents

Hi everyone, I'm trying to modify the Notepad tutorial (the Notepadv3 solution) to take in a value into the NoteEdit class, given to by the Notepadv3 class. I've successfully used .putExtra in the OnListItemClick method to place the value into the NoteEdit class, but I'm struggling to do this for the createNote method; I'm getting a for...

Mapview getLatitudeSpan and getLongitudeSpan not working

Hi! Sometimes when trying to get the Latitude span or Longitude span of a mapview with getLatitudeSpan() and getLongitudeSpan() I get 0 and 360*1E6 respectively. This doesn't happen always but it is a problem, has anybody got this problem? Any workarounds? I tried using getProjection() too but I get the same problem. Here is the piece of...

Keystore and Aliases - is there a use to multiple aliases?

When exporting a signed Android application using Eclipse, is there a purpose to using multiple aliases? According to the official guide about signing, it's recommended that you sign all applications with the same certificate to allow your applications to share data, code and be updated in modular fashion. Assuming that "alias", "key" an...

How to add Editext and Button to Efficent Adapter which has a Icon and text

Hi, I want to create a layout in such a way that on top edittext and button should be there in one row. The search text I enter in editext and click on search button. Then I want to display a custom list view where each row contains image and text.(As per the API demos example list14 I have tried). But when I run the application, butto...

android scroll down

I have text area and and down to that "ok" and "cancel" button. when i click on text area keyboard appear and focus on the text area and buttons get hide behind the keyboard. i want when text area get focus scroll a little bit and also display the bottom buttons while text area id selected. ...