android

Customising Tabs and list views

Hi, I have four tabs containing listviews, and I'd like to customise the way these are displyed. I have managed to figure out how to move the tabs to the bottom of the screen but when trying to add a image to the bottom the tabs sit above the image. Is it possible to overlay the tabs on top of the image and perhaps make the tabs trans...

Android: Best XML Parsing Library?

I have to parse some complex xml files inside my Android application. Is there any good library for doing that like there is TouchXMl for iPhone? S ...

Android - set a ProgressBar to be a vertical bar instead of horizontal?

Hello, I am trying to use a ProgressBar as a metering like display. I thought it was going to be an easy task and thought that ProgressBar had a property to set to be vertical, but I'm not seeing anything. Additionally I'd like to be able to show ruler like indicator along the side of the bar to clearly indicate the current level. Po...

Android GPS Listener always running

I implemented the GPS in my app, in one Activity like this: LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); LocationListener mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener); public class MyLocationLi...

getContentResolver().openOutputStream(uri) No files supported by provider

I want store a file audio in my personal content provider. i save record: Uri uri = getContentResolver().insert(CONTENT_URI, values); OutputStream os = getContentResolver().openOutputStream(uri); but getContentResolver().openOutputStream(uri); throws: 10-13 19:44:53.903: ERROR/TAB(5679): No files supported by provider at content://co...

Logcat not working on command prompt. It only works in eclipse IDE

Hello, So I can see Logcat working with no problems in my eclipse IDE. However, when I try to run it in a command prompt, i get a bunch of logcat data for about a second, and then the whole thing freezes. Any ideas on how to fix this? Thanks ...

Android third party GUI widget vendors

In my MFC user interface programming days you could purchase all kinds of cool screen widgets from 3rd party vendors to integrate into your Visual Studio and use in creating your screens. Fancy buttons, meters, control knobs, etc... I can't seem to find anyone doing that for Android. Does anyone know of any vendors selling stuff like ...

downloadlistener not working

How is the DownloadListener supposed to work? Probably I miss something. I did the following: Register a DownloadListener at a WebView. Open a WebView with a HTML page, containing a link (works). If I click on the link, the DownloadListener is not called. Here is a short portion of the code. package rene.android.learnit; import and...

Setting up android phone with eclipse

Hi, I have been developing a project app to learn about android, I can upload my app to my htc desire on my desktop using linux ubuntu and eclipse, I have the same setup on my laptop but I cannot upload apps to my phone. When I try to install the app to the phone it shows up in avd manager as ??????? ????? Unknown, I've googled this an...

Deleting Thumbnails in android

Hi All, Does anybody know how to delete a thumbnail of an image? The input information i have to do it is the Uri of the image. I can delete the image itself, but i can´t figure out how to delete it´s thumbnail. I tried querying the Thumbnail's database and all it's variations with no success. Thanks in advance. Mariano ...

Cancel outgoing calls when ringing

Hello android developers! Is it possible to cancel an outgoing call when it starts ringing? I want to develop a kickphone application. With the BroadcastReceiver I get the "start" of an outgoing call. But I don't know when the phone (on the other site) starts ringing. I know that android knows when the ringing starts. Because everytime...

runtime error on softkeyboard using LatinIME.git example

Hello! I need help from someone of professional android developers. I develop softkeyboard for android 2.2. I wanted to use LatinIME.git as example. An Eclipse project is correct and can be compiled, but after installing app and setting keyboard as input method on device(I use HTC Desire on 2.2) I have a runtime error: 10-13 16:31:03.8...

How can I route audio to bluetooth ear piece when a bluetooth ear piece is paired

Hi, Can you please tell me how can I route audio to bluetooth ear when a bluetooth ear piece is paired? I have set my audio manager to be MODE_IN_CALL. audioManager.setMode(AudioManager.MODE_IN_CALL); I read 'http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece', but I am not sure if that apply t...

ANDROID: Question regarding overlaying a transparent bar to make layout more aesthetic...

How would I go about putting a transparent bar along the top of a scrollview so that when the text scrolls up it kind of fades out towards the top? I am talking about the kind of thing that the Facebook and NFL mobile apps use. I think it just makes the whole design look nicer and I was wondering how I could implement this. Thanks for...

Finding object position given it's image on camera screen of android?

Hello everybody,     I'm doing some AR research and currently I stuck at determine the real coordinates (or longitude, latitude) of the object given it image on the preview screen. Basically I want to calculate the real 3D-cartesian coordinates of a point given it coordinates in the preview screen (when the user touch it). I know how to...

Android Quiet Notification

I am creating an app which plays audio in the background. I have created a background service and a persistent notification to indicate that the music is currently playing. However, when I create the notification it feels to strong (e.g. the same as when a new txt or email comes in.) and slides down in the status bar. Instead, I would l...

getText() on AutoCompleteTextView returns SpannableStringBuilder?

I have an AutoCompleteTextView with a MatrixCursor as an adapter. The AutoCompleteTextView has a OnItemClickListener as follows: public class AutoCompleteListClickListner implements OnItemClickListener { private AutoCompleteTextView acView; public AutoCompleteListClickListner(AutoCompleteTextView view) { this.acVie...

Re-Teaching Myself to Program - Seeking Object Oriented Design Books

Five years ago I used to program in SAS. Since then I've been doing software QA of various types. Mostly manual (video games + web apps) testing with a tiny bit of automation. I'd really like to shift careers back into programming. Specifically the Android platform has caught my attention. These are the books I've been reading and worki...

SQL Logic Error or Missing Database with group_concat()

I'm trying to use group_concat to group some rows into one in Android, I get the cursor, but when I request it to move to first position, it crashes with error "SQL Logic Error or Missing Database. If I remove group_concat() it works perfectly... String sql = "SELECT group_concat(column2, '-') FROM myTable GROUP BY column1"; mCursor =...

StringEscapeUtils.unescapeHtml() problem in unescaping HTML entities for Android

This is what I'm doing: public static String htmlToText(String inString) { String noentity=StringEscapeUtils.unescapeHtml(inString); return noentity; } This is where I'm invoking it: String html = "<html><body>string 1<br />&#8212;<p>string 2</p></body></html>"; String nohtml = Utility.htmlToText(html); Log.i("NON HTML STRING...