android

OAuth secrets in mobile apps

When using the OAuth protocol, you need a secret string obtained from the service you want to delegate to. If you are doing this in a web app, you can simply store the secret in your data base or on the file system, but what is the best way to handle it in a mobile app (or a desktop app for that matter)? Storing the string in the app is...

android 101 - listview inheritance question

I have a ListView in my extended ListActivity class. And then I have the following code to detect my click on the list protected void onListItemClick(ListView l, View v, int position, long id) { Log.i("", ""+l.getSelectedItem().toString()); } I want to get the data string associated to my click. When I run the code, I get an er...

Android + WS-* services ?

How to create an Android application with WS-* services connections? Where to get information for beginners - it should contain video tutorials and explanation what types of bindings are not supported. ...

Using some kind of "external ID" for a View

Hi everyone, i wrote a View class based on ViewSwitcher and now I want to write helper classes for the view like known form the ListView: ListAdapter, ListActivity and so on.. Regarding the activity class I ran into a problem. The ListActivity forces you to add a ListView to your activity with a fixed id: @id/android:list. In my base a...

Droid - won't rotate image captured from camera? (Camera.Parameters)

Hi, Posted this on the android dev forum, wondering if anyone here has seen this. I'm using this camera code to ask the camera to rotate the captured image data: Camera.Parameters params = camera.getParameters(); params.set("rotation", 90); camera.setParameters(params); this seems to work on all phones, except the Droid. Has anyone ...

How to add two possible keys in one keyboard button

Hi, I've been trying to create my own android keyboard following this guide and looking at the latinIME souce code. While reading the kbd_qwerty.xml file I noticed the different tags used and explained here. I was expecting to see certain tag to reproduce what BetterKeyboard application does. They draw more than one key on each button. ...

API Tools location on Android 2.0 emulator?

I'm not sure if I'm simply something obvious (probably), but the API tools icon in the "manage applications" section of the phone isn't there. I do see a Dev Tools icon on the main page, but that doesn't appear to have the same stuff in it. Anyone know where I can find this section in Android 2.0? ...

how to pass data from current Activity to paused Activity ?

hi guys. I wanna know how to pass data from current Activity to paused Activity ? Please advice. Thanks in advance. ...

Is it possible to use the Google App Engine as a backend database for Android applications?

I would like to write a client application for Android that uses the Google App Engine as a database backend. My Android client would connect to the App Engine to save information, then it would connect later for reports. Is it possible to use the App Engine as a backend like this? ...

Handling Exception in a MediaFile app

I'm developing a media file app that is meant to play sounds stored in my raw folder. There are about 32 sounds in all. And this is what i'm doing on the click of each button: Button btnGrowUp = (Button) this.findViewById(R.id.GrowUp); btnGrowUp.setOnClickListener(btnGrowUpListener); private OnClickListener btnGrowUpListener = new OnCl...

How can I customize the header layout of a dialog

Hi, In android, is it possible to customize the header layout (the icon + a text) layout of a dialog? Or I can just set the string value of the title text? Thank you. ...

Installing Android SDK

I installed android eclipse galileo, and also downloaded android SDK. while installing ADT, I chose Help->install new software->Add I enter android and the location as https://dl-ssl.google.com/android/eclipse/ but I don't see any package names etc in the available software dialog (I am supposed to see 'developer tools', correct?). I t...

LatinIME dictionary

I want to add Czech dictionary to LatinIME (it is only missing part, UI and keyboard are already here). I found source of LatinIME in source of android itself. There is a sample.xml file which show correct structure for creating dictionaries, but there is a point I got stuck. What do I have to do next? ...

android SensorEventListener problem

Hi, I am trying to create an application which reads data from digital compass. I tried to reuse the code from the book Professional Android Application Development but the IDE displayed a note The type SensorListener is deprecated I guess it is because the code from the book is written for the earlier SDK version so I tried to us...

Web access to android application - price and category

Hi, I am trying to collect information about Android apps. I am trying to build my program and I need to have a web access to price and category of android applications. Any idea about the API, how I can access the information? ...

Replacing the battery indicator (Android).

There's an open source battery indicator that I greatly prefer to the default one. I was wanting to modify it to replace the default battery indicator. Is this even possible without building a whole custom ROM? ...

Making a pluggable Android messaging app

I'm making a messaging app and I want to be able to extend it by using plugins. The plugin might, for example, replace :) with a smiley image. I've written some test code which uses intent filters to find the plugins, but I can't find a way to create an instance of the that plugin class. Is it possible to do this, and if not, what would ...

[Android] Launching activity from widget

Hi, I'm trying to do something which really ought to be quite easy, but it's driving me crazy. I'm trying to launch an activity when a home screen widget is pressed, such as a configuration activity for the widget. I think I've followed word for word the tutorial on the Android Developers website, and even a few unofficial tutorials as ...

How to draw line on Map View given coordinates?

Hi guys. How to draw line on MapView given coordinates? AFAIK, on iPhone it is possible. Please advise. Thanks in advance. ...

Refresh rate for GPS - what's acceptable?

Hi, I'm trying to figure out a refresh rate to use for my GPS location listener to get around a bug on the HTC Hero where the GPS icon won't remove itself off the notification bar. http://groups.google.com/group/android-developers/browse%5Fthread/thread/e687b3bfa9146f31/7fa59b0108bbdf89?lnk=gst&q=gps#7fa59b0108bbdf89 Does anyone h...