android

How to retrieve video thumbnail from an absolute path?

Hi everyone, I know this has to be trivial but I just don't find the right resource, I guess. So all I want to do is retrieving a thumbnail for a video. All I have is the absolute path to the file on the sdcard as a String. So please point me into the right direction. And believe me, this is embarrassing enough to ask... Regards, Stef...

Stop MediaScanner scanning of certain directory

Is there a way to notify MediaScanner service on Android platform not to scan certain directories? I have application that encrypts images on SD card and after I do that MediaScanner goes wild in LogCat (writing out "not JPEG" exception... and there are time I have over 1000 pics in directory). Thanks ...

UDP Transport for kSOAP on Android

Hi, I'm looking for a UDP transport implementation for kSOAP on Android? Has anyone implemented one ? If not, can someone provide an idea of how much effort will it take to implement one. Thanks. ...

How to view specific thread in sms app 1.5

In Android 1.6 and up I use Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("content://mms-sms/threadID?recipient=" + address)); This isn't working in the 1.5 version of the app. Its a notification so as long its possible by using a PendingIntent. Thanks, Jared ...

Android - Camera functionality howto

Hi, I'm using the example from the SDK (CameraPreview) and also the example from this site http://marakana.com/forums/android/android_examples/39.html When I run it, both gives this error "The application AppName(appname) has stopped unexpectedly. Please try again". I can't run the debugger either because it's always "Waiting for debug...

Get owner's email address

I have android.permission.READ_OWNER_DATA but I can't find any reliable code that would explain how can I read email address of device's owner. And please don't turn this into 'why you wanna do that' thread. Thanks for help! ...

How do I set a custom Android standby screen?

For example, I want to write an activity that launches when you return from sleep (black screen). How can I set this activity to run instead of the default one? In other words, I want to make a custom lock screen. Thanks ...

Are there java bindings for OpenGL ES 2.0 on the Android platform?

I know that the recently released android ndk r3 supports opengl es 2.0 on supported phones (nexus one for example), however it doesn't say whether there are java bindings for opengl es 2.0 included in the SDK yet. Are said bindings on the way, and if not, does JOGL2 support the opengl es 2.0 profile on the android? ...

Confused about home screen widget size in normal screen and larget screen

I am designing a home screen widget. The widget layout file is like below. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget" android:layout_width="240dip" android:layout_height="200dip" android:background="@drawable/base_all" /> I ran this widget on a HTC Hero device, which has a s...

Can a drawable accept a ninepatch file reference?

This is specifically about android UI xml. Can a drawable ie the ,/drawable> tags accept a reference to a ninpatch xml file? ...

setImageResource throws an exception to load image on the ImageView

Hi- I am trying to display the image on the screen using ImageView. setImageResource fails. Here is my XML : <FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"> <ImageView id="@+id/batteryLevelview" android:layout_width="wrap_c...

NullPointerException when installing the Android SDK on Mac OS X

I'm installing the Android SDK on Mac OS X. Following the instructions on the Android Development site, I've downloaded the SDK and modified my .bash_profile to include the path. The next step is to use the Android SDK and AVD Manager to actually download the platforms. However, when I use the Manager to install the platforms, I get th...

Solution for cleaning an image cache directory on the SD card

I've got an app that is heavily based on remote images. They are usually displayed alongside some data in a ListView. A lot of these images are new, and a lot of the old ones will never be seen again. I'm currently storing all of these images on the SD card in a custom cache directory (ala evancharlton's magnatune app). I noticed t...

AndroidManifest from Jars

Is it possible to have an AndroidManifest.xml and or resource files in a Jar file and import that into a executable Android project? My goal is to provide styles, resources, and services from a jar library that can be accessed from a main android project for my common tools. ...

How to use default account parameters (login/pwd) in Android phone?

Hi I want to use default user login/pwd in my app. Do you know how can I have access to this data? best, Patrick ...

ListView selection issue...Using onItemClick(AdapterView<?> parent, View view, ...)

The problem I hope to resolve here is that when I click on one item in the ListView that item's background changes to light gray, but when I continue to scroll through the list every 4th item has the background changed to light gray even though those other items have not been clicked. How do I make only the item I clicked be effected by...

There are several different ways of definition the ID. What is the difference?

There are several different ways of definition the ID. What is the difference? android:id="@id/android:list" android:id="@+id/android:list" android:id="@+id/confirm" ...

Android Contacts

Hi I'm .NET Developer, but I'm new in Android. I'd like to test to add a feature. It is appeared clicking Menu under Contacts in Android. It includes New Contact, Search, Display Group and Import Contacts. I just only wanna get "New Contact". How could I test it? Which API do I need to use? My Build Target is Android 1.6. Thanks. Best...

How can you display upside down text with a textview in Android?

How can you display upside down text with a textview in Android? In my case I have a 2 player game, where they play across from each other. I want to display test to the second player oriented to them. This was the solution I implemented after AaronMs advice The class that does the overriding, bab.foo.UpsideDownText package bab.fo...

how to disappear keyboard onCreate Method?

friends, i have a EditText on simple activity with a button. when every i move from one activity to this acivity focus is automatically set to EditText and keyboard appears in phone. i dont want to open keyboard untill i click on editText. can any one guide me what should i do? any help would be appriciated. ...