android

Android Sync Adapter

Hi. I try to understand the android sync logic. What I don't understand is this file http://developer.android.com/resources/samples/SampleSyncAdapter/res/xml/syncadapter.html OK... now I've read a lot about it and it says is the authority of a content provider it should be a string or a reference to a resource. OK... but... What exact...

How to change progress bar fore color?

Hi, I want to change progress bar default(yellow) color to green color.Please help me Regards Mona ...

No marketplace application on the Android emulator

I've got the Android SDK downloaded, got a AVD booted and running, but haven't been able to find the Marketplace application. Do the images available through the SDK utility not include a marketplace app? If not, is there somewhere I can get it? ...

Android - Custom AlertDialog Color

So I see we can have alertdialogs with gray and white (when setinverse...) background colors. To learn why I checked themes.xml of the sdk, checking it I was led to drawables and there I realized the alertdialog background is not done programatically but via some images. And these images guarantee that there are two gray(or white when i...

comparing string values

I want to compare 2 strings. My first value is in 'list[0][0]' variable and the second value is in item[0]. But when I am comparing the 2 strings using 'if' statement, I don't get the answer. if(selected_list[0][0]==items[0]) { // some code } it is not working. But when I am hard-coded these values, it is working fine. if("banana"=="ban...

Recomendations for books / other resources to learn android real time game dev?

Hi, I would like to create my first real time game for the android platform. I am searching for good resources to get started from, I have little knowledge about game development (just the basic ideas) and would appreciate any helpful websites or books you could recommend. Thanks, Jason ...

Any way to run a background thread behind multiple Activity and show alert when done?

My application is using a REST based webservice to show multiple activity. To enable the user offline browsing, I am storing the REST data into local SQLiteDatabase with AsyncTask (with some dialogue to wait). However, it takes a long time to load the db (10 mins) and its just bad experience for the user. So I was wondering if there is a...

android programming for creating animations

i hav displayed the text in a textview.........i want to do animations like rotate etc.......how to do it? which classes are used for it?i want a example program for it? ...

add and remove views in android dynamically?

Hi. How do i add and remove views such has textviews from an android app like how you can on the original stock android contacts screen where you press a small icon on the right side of a field and it will either add or delete a field which consists of a textview and a editTextView from what i can see. Any examples on how to achieve th...

Map Search NumberFormat Exception in android platform 2.2

Friend's I implemented map with search option in my application,when i run the application in HTC,SonyEricson it's working well,but when i make the search in Motorola Droid 2.2,i'm getting numberformat exception, here my code for search option findViewById(R.id.map_search).setOnClickListener( new OnClickListener() { publ...

Authorization problem (HttpConnection) on android!!

"Basic YWRtaW46YW RtaW4=" is right code for my address.I check on j2me project. And on android my getbase64 method returns "Basic YWRtaW46YW RtaW4=" its true. and ı use it on: httpConnection.setRequestProperty("Authorization",getBase64Encode()); ==> "Basic "+Base64.Decode(name:pass); Finally responce code is 401 any idea??? ...

Disribute program with scripts in android

I'm confused how the the android scripting enviornment is supposed to work. Is there a relatively easy way to include python scripts that I run from my java code without making the users download any new applications or anything? Or am I completely misunderstanding how ASE works? ...

click event for webview

can anybody tell how to implement click view in android give example ...

Where to place main game loop in android game

Hi, everyone! I am trying to write some skeleton for a game on android, using OpenGL. I would like to know, where should I place my main game loop code? So far, my best candidate is Renderer.onDrawFrame(...) method, which seems to be called per-frame, so the code looks like this: void onDrawFrame(GL10 gl) { preLoopActions(); ...

how to add webview in listview in android

Hi can anybody tell how to add webview in list view in android Thanks ...

How To Zoom ImageView in Android

Hi, I have an ImageView declared in main.XML . I want it to be Zoomed . How can this be done in Android? Thanks in Advance ...

Image share from android to facebook?

How i can share a image from from my app to facebook in android? ...

sms manager in android

i am assigned a project in which i have i have to use send sms from android sdk automatically. can anybody help me in this concern.. ...

Android Simple MediaPlayer problem

Hi All! Can someone please point to me what is wrong with my code? try{ MediaPlayer p = new MediaPlayer(); p.setDataSource(getCacheDir() + "/temp.mp3"); p.prepare(); p.start(); }catch(Exception e){} MediaPlayer p catches Exception whenever it calls prepare(). File temp.mp3 is already inside the cache folder and it is not corrupt or ...

Media player on android

Hi all, I want to set volume control to my audio streaming project in android .how to do this ...