android

android expandableListView - add items to a specific group at run time

Hi all , i met a problem , i have a expandableListView has 5 groups if i wanna add some items to the second group , and update the expandableListView at run time, could someone teach me how to do that? ...

Accessing image files + file browsing in Android

Hi all, I'm using HTC Dream and trying to read the images stored in the "default" album folder of this phone. But I've yet to found out what's the folder path to those images file. When I mount the phone to my comp, some of the default images are in: /E0FD-1813/DCIM/ and the photos taken using the phone are stored in /E0FD-1813/DCIM...

Set width of view in android

can we set the width of a view in android? ...

How can I make a JQuery UI slider and a textbox coexist on a mobile browser?

I'm trying to have a jQuery UI Slider on a webpage to be displayed on an Android phone. The slider does not work by default, but when JS code that converts touch events to mouse events is dropped in (http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/), the slider works. Only problem being, with the new code, if ther...

Start Android TTS from Broadcast Receiver or Service

I'm trying to get TTS to run in the background. But, I never get any sound. I have a broadcast receiver which starts a service. I put my TTS code in both of those, but it never speaks. I know the method is being called (I put a breakpoint on it), but it still doesn't work. Here's my log, but it doesn't seem to contain anything about the...

Are shared preferences in Android apps deleted when a user updates the app?

If I store some user settings and information in shared preferences in my android apps, and then I update the app in the Market, will those settings be erased when the app updates? ...

Android: To ensure none of the Views are focused when an Activity opens?

Hi, I have 2 activities, A1 and A2. My application opens in Activity A1. None of the views in A1 are focused at startup, until I use the arrow keys to navigate through the views. A button press in A1 launches activity A2. When A2 opens, the first Button in A2 is focused by default. I do not want this happen. What I want is when A2 o...

Out of memory after executing application several times

HI, There is a strange out of memory error issue. I create a class to parse live streaming, and the class needs buffers to keep these raw data. Here are code snippets: /* Initial and uninitial buffer in class */ private final int MAX_BUFFER = 16; protected byte[][] m_byStreamBuf = null; // Frame buffer public void InitBuffer() { m...

how to create autocompletetextview in the dialog box in android

Hi to all, I need to create autocompletetextview in the custom dialog box. when the search button clicked ,custom dialog box(including autocompletetextview box) will be appear below the menu bar. which is the better dialog box or pop up window. please help me. Advanced thank you, akil.. ...

I want to generate geopoints after parsing XML using SAX Parser

I am able to parse XML using SAX Parser and able to display the points in text view. But now I want the points to be displayed on the map.The XML Contains tags for latitude and longitude. I want to read the latitiudes and longitudes and display them on map . ...

LayOut Inflator in android?

I create a subclass of View as an inner class in my Activity. I just want to inflate an xml into the class which extending view. Can anyone provide some code/syntax of both class and xml? public class drawiact extends Activity { DrawView drawView; @Override public void onCreate(Bundle savedInstanceState) { super....

Get active Application name in Android

Hi I am new to android.. I was trying to make a program that shows all the active application. I searched everywhere..but could find codes that shows the package name only. It would be of great help if you masters can tell me how to display all the active application name Thanks in advance Shijilal ...

Smaller APK size with large assets?

I am creating a simple android app to view a comic book. The pages are large(0.5-1 mb each), high quality .png's and I am loading them into a webview to make use of the built in zoom controls. So far I only have 17 files and the APK size is already about 16 mb. I'm looking to add over 200 files in future updates. I can't really reduce th...

How to create a 3D compass in Android?

I am currently trying to develop a 3D compass myself. I have been trying for almost a week now, and still no luck. So please help me out. This is the code I use for my orientation handler: public void onSensorChanged(int sensor, float[] values) { // azimuth pitch roll if (sensor == SensorManager.SENSOR_ACCELEROMETER) { ...

Faceboook Fbconnect shows cookies Required in android

I have used the following Example of fbconnect from http://code.google.com.iproxy.saverpigeeks.com/p/fbconnect-android/downloads/list But When i click on the Connect to facebook it shows yellow bar with cookies required then i logged in with my is successfully but when i click on the get permission it shows the message...

How to filter text in a ListView properly?

Hello! I've tried to filter my ListView from my EditText box, but currently, it's not working. I have a ListView that get data properly and they are added to my own ListView using a ArrayAdapter class and my own ArrayList class. When I for example, typing in "table" I want it to sort from the loaded titles in my ListView and than it sho...

Please help flicker implement on android

Hello , Anybody idea how to integrate flicker to my application on android?. i got API key secrete key for my application from flicker.com site. i am confused how to use it. Api key separate for every user? how to get token number for flickr by code ? i have refer photostream and Flicker free code . but both code give the exceptiion.? ...

To play video files using MediaPlayer class in android.

Respected All, I want to play video files in my application which are part of my application. for that i create 'raw' folder in 'res' and write following code in my activity. MediaPlayer mp = MediaPlayer.create(VideoPlayer.this,R.raw.jeevrangala); mp.start(); now i am testing it on emulator, but it does not displaying...

Inflator in Android Application Development

Hi All! Can anybody please tell What Inflator is and how it is being used in the Android Application? I don't know the exactn use of it and Why It is being used. Thnaks, david ...

Is it possible to create an Android database without external tools?

I have been searching for this for the past few days and every tutorial I see needs for me to use an external package. Is there anything built into the Android SDK that would allow me to create a database? I thought I saw something on it a long time ago, but I can't find anything to back that foggy memory up. ...