android

open a live folder via an intent

I have a live folder in which are put reports for the user to see. When new reports are available I instantiate a notification and I want open the live folder when the user presses the notification. Is that possible? I tried with Intent.VIEW as an action and the content URI as the intent data but it does not work. Also I am using andro...

ListView rounded Selector

Hi, I have create a listView with rounded cornered background. Now while i select the first item in the listview, the selector shape was not top rounded rect. Likewise while i select the last item in listview, the selector shape was not bottom rounded rect. If i apply rounded rect to the selector all listview item selection will be roun...

Apply an Animation on a Drawable in Android

I am adding a glow animation effect to a logo. So far, I have managed to get the glow image behind the logo, using a LayeredDrawable, but I can't figure out how to animate it. I have found that AlphaAnimation would achieve the desired effect, but unfortunately I can only apply it on Views, not Drawables. How can I achieve this effect? ...

Android media thumbnails. Serious issues?

I've been playing with android's thumbnails for a while now, and I've seen some inconsistencies that make me want to scream. My goal is to have a simple list of all Images (and a separate list for video) with the thumbnail and filename. Device: HTC Evo (fresh from Google I/o) First off: http://androidsamples.blogspot.com/2009/06/how-t...

Android Nexus One - Can I save energy with color scheme?

Hi! I'm wondering what color-scheme is more energy-saving for AMOLED display? I've already decided to manage c-scheme according to ambient light, thanks to this post: Somewhat-proof, the link posted by nickf: Ironic Sans: Ow My Eyes. If you read that in a well lit room, the black-on-white will be the most pleasant to read. If you...

converting base64 String to image in android

Hi, Is there any way that I can convert a base64 String to image in Android. I am receiving this base64 String in a xml from the server connected through socket. Thanks and Regards, Vivek Birdi ...

Adding settings to Settings

The application I am developing is in large parts a background-only Service BUT requires some settings that the user must add. Is there a way to integrate applications with the common Settings application/view/activity? ...

Running android application on windows, developed on linux

Hi, I'm very new to Android development. I want to run an Android application on Windows using eclipse that has been already developed on Linux OS. I tried to copy the source/res and menifest file of Android application form linux and started creating a new project on windows. I tried to replace the source/res and menifest of newly cre...

Android: Get the screen resolution / pixels as integer values

Hi guys, this is a really simple question on which I've found no answer :/ How can I quickly access the screen resolution (width, height) as integer values? I've tried this one, but it always shows zero on my emulator: DisplayMetrics dm = new DisplayMetrics(); int width = dm.widthPixels / 2; In my case I want to dynamically create a ...

read text file data in android

hi i am new to android.I need to read text file from SDcard and display that text file.Is there any possibility to view a text file directly in android. or else how to read and display the text file ? ...

Changing Orientation, losing all my list items

While I tested my application on an Android Device turning my Android phone from landscape to portrait, results in all the list items in my list view are disappearing. Why? How to manage? ...

[Android] HOW can i get the Background of PreogressDialog to be transparent

Could you explain me that How can I get the wallpaper of PregressDialog to be transparent and let the rotating circle show thank you ...

unable to login using myspaceid on Android browser?

I am trying to login on my website using MyspaceId running on Android web browser. It works fine on iphone browser but fails on Android browser and following error occurs: ErrorCode: -6 Description: The connection to the server was unsuccessful. FailingURL: https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureNa...

Android- Using DexClassLoader to load apk file.

Hi guys, I've hit a bit of a wall. Any help would be appreciated. I have an app that I want to use DexClassLoader to load another apk file. Here is my code: DexClassLoader dLoader = new DexClassLoader("/sdcard/download/test.apk","/sdcard/download",null,ClassLoader.getSystemClassLoader().getParent()); Class calledClass = dLoader.loadCl...

Is it better to use GL_FIXED or GL_FLOAT on Android.

I would have assumed that GL_FIXED was faster, but the iPhone docs actually say to use GL_FLOAT because GL_FIXED has to be converted to GL_FLOAT. Is it the same on Android? I suppose it varies by phone, but what about recent popular ones (Nexus One, Droid/Milestone, etc.)? Bonus points: This appears to be completely undocumented (e.g. s...

Quickest and most efficient method to search top 3 numbers?

I currently have an array of around 8 - 10 numbers that changes on a periodic basis. So around every 5 - 10 seconds the numbers get updated. I need to get the top 3 numbers in the array every 10 seconds. This is all done on a mobile device. The array is the RSSI of the currently scanned access points, so in my office its usually arou...

handling activity destruction in multithreaded android app

Hi, I have a multithreded app where background threads are used to load data over network or from disk/db. Every once in a while user will perform some action e.g. fetch news over network, which will spawn a background AsyncTask, but for some reason user will quit the app (press back button so that activity gets destroyed). In most such...

Android: SaxParser problems using ISO-8859-1 encoding

Hi all! Im facing some problems on xml parsing with android. The problem is that the xml from the server comes in "ISO-8859-1" set with setEncoding (i get <?xml version="1.0" encoding="ISO-8859-1"?>) format and the android device seems that its ignoring that encoding. For example this is part of the original xml that comes from the serv...

Eclipse ADT plugin

How do I upload media to local storage of emulator device ? Thanks in advance ! ...

Custom fonts, ellipsis on MultiLine TextViews, Glyphs and glitches.

I am required to use custom fonts in my application. Problem: For ListViews that contain rows with Multi-Line TextViews having ellipsize property set to true, I can see some illegible characters after the ellipsis. Apparently Android pads the String(in TextView) with some characters(ZERO WIDTH NO BREAK-SPACE) unknown to my custom font....