android

Implement Google Voice Actions in Android

How can I implement the fairly new Voice Actions from Google, in Android? I'm thinking about the possibility to listen to the Listen to action as used by some music application. Is there a specific broadcast my app must register as a receiver to? ...

android depreciated method backward compatible

My app uses a method that was depreciated since android 2.1 with a different method and I would like to make it work from 1.5 to 2.2. Is there a way for my app to determine which android version the user has and call the correct method based on that? or is there a better way to do this? ...

android UI external libraries ?

Hello guys, I'm starting with android, and the app I'm developing is gonna need custom widgets look (glossy buttons, animated backgrounds etc.), I've googled for any external libraries to achieve this and did not find anything. let me guess, the only way to this is by painly extending base view classes and overriding onDraw etc. ? ...

Debug With DROID 1 Crashes ADB.exe

Using the up to date drivers provided from the SDK I installed my DROID 1 onto my Windows XP PC. When I plug the phone into the computer it connects correctly and it displays as "Android Composite ADB Interface" under device manager. A few seconds after plugging it into the computer ADB crashes with the following error: adb.exe has en...

show dialog when application/activity startup

can we show the dialog when our appliaction/activity startup? ...

Correct way to use png/jpg in OpenGL ES

What is the correct way to save images in png format, if I want to use it in my Android OpenGL ES application as texture? Somehow some textures work, and some texture get incorrect vertex mapping. The code is the same, the image is different. ...

Android Devices Problems with OpenGL ES GL 11

Hello, I tested my app on some Android 2.1 and 2.2 devices. So I think that they support OpenGL ES 1.1 But on some devices I had problems whit my app. I get an unsupported operation exception means the device does not support the GL 11 interface. Is this a hardware problem? Are there some possibilities to avoid this problem? Thanks, Mij...

How to set Intent result in Layout.

friend's, I there any possibility to bind the result of Intent class in xml layout, i'm doing it so for sending mail,i'm using below code for sending mail in Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); sendIntent.putExtra(Intent.EXTRA_EMAIL, ...

How can i copy the contains of data/ to sdcard/ without using adb.

Hi i need to copy/move the contains of data/tombstones to sdcard/tombstones im using below command mv data/tombstones /sdcard/tombstones "failed on 'tombstones' - Cross-device link" but im getting above error. ...

How to Get the Postion of Elements in the Gallery when the User Scrolling it ?

Hai All, I have a Gallery which Contains text Value such as Movie, Music, Games, Magzine etc., My Problem is, Whenever the User Scrolls the Gallery, I want to get the Postion of the Element. For Instance, User Scrolls the Gallery from Movie to Games means then i have to get the Position of Currently Selected Eleme...

How do I achieve the following result using RelativeLayout?

Pictures: http://img838.imageshack.us/img838/1402/picse.png How do I make the layout in Pic. 2 using RelativeLayout ONLY. Below is the xml layout of the first screenshot. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" ...

how to get the mimeType from an application?

Hi, How would i be able to get the mimeType from an application. I am working on an application which filters certain installed applications based on the mimeType. could someone please help me with this issue ? thanks alot ...

How can I stop auto screen rotation in my Android app when unlocking the phone from standby

I have an android application that I want to always be running in landscape mode. I have the following code implemented to keep the app in landscape mode all the time: inside my activity in the Application Manifest android:screenOrientation="landscape" This seems to launch and keep the application in landscape view for the whole durat...

android: How can I send an activity to background & call her from there

I am in process of creating some test application "Time Tracker" app like stopwatch so I start app go to Activity where I start time counter and now I need some functionality to send my activity to background or minimize or hide and after some period to call this activity again and stop her counter to get passed time period ....

Facing problem when using back button in title bar.

Friend's I have a problem when click the back button either in device or customised back button in header,it never back to show the list content,it simply shows the blank screen. For example - - I have list view - list1,in it's onclick event i move to next listview -list2, and from list2 -onclick event i move to webview there i have ba...

how to run Sample camera program in Android , to take pictures.

Hi, I want to write a Android Program for Camera that captures pictures. I written code in such a way when I click a button, it should be captured, but noting is happeneing. Button click happens , but control doesnot come to "onPictureTaken". I am pasting my code here: Activity package com.andr.sai.camerademo; import java.io.IOExcepti...

About issue on long key press ,android

Actually In my application when I press the soft key for long time I should get the key code for it.By using OnKeyUp and OnkeyDown I am able to get the key code from the hard keyboard.how can I get the soft keyboard keycode. ...

Set HTC Sense lockscreen wallpaper programmatically

I've written an app that updates the users wallpaper periodically. A common feature request is to also be able to update the lockscreen image as well. I was unaware that there even was such a thing as a lockscreen wallpaper, as vanilla Android just displays the same image as you have set on your homescreen, but apparantly HTC's Sense has...

How do you understand the cause of exception having stacktrace?

We have written an Android application which sends stack traces to our server, if any occur. Sometimes we get weird stack traces that seem not to be an exception from our application. For example: java.lang.NullPointerException at android.widget.FastScroller.scrollTo1(FastScroller.java:306) at android.widget.FastScroller.onTouchEvent(F...

Android: ScrollBar bug in 2.2 for ListView

The problem appears in Android 2.2. It seems cool because it can auto-hide.But I don't like it quite much because the bar is an indicator for "Whether there is more content not present on the widget". Hiding it maybe neat, but may get the users wrong sometimes. In ListView, I find it a fatal bug at all. When there is more content to show...