android

Use scalable bitmaps for seekbar/progressbar Android.

Hi, I am trying to create a custom look for the seekbar, and I created images for normal/filled and the thumb states. But the problem is that the images are not being scaled by android, instead are just tiled/clipped. How can I ask Android to scale the given images instead of tiling/clipping? ...

Android double buffering

Is double buffering makes any sense on android? Can it be implemented? ...

how to build a android system.

I have the android resource. . build/envsetup.sh make above two steps I have finish the source build, and the out directory has some useful file. but I can't understand how to make a zip file like update.zip. I want to flash my phone. ...

android camera picture taking problem?

friends, i am using following code to take picture from android camera string _path = Environment.getExternalStorageDirectory() + "/images/make_machine_example.png"; Uri selectedImage; protected void startCameraActivity() { File file = new File( _path ); Uri outputFileUri = Uri.fromFi...

Android:How to send data from server to android with no request from the android?

I'm a student. today i meet the problem. i need technic can control the android machine from server. then i want send data from server to android with no request from android. if anyone has this technic help me. ...

Use image sizes

Hello Is there a way to use an image size when setting the sizes of a view? I want to create a TextView item with the exact height of a resource image, but I don't want to use the image as a background for the text view. Thanks a lot ...

How to traceroute in adb shell?

Hi, I have a rooted device, I type "su" in adb shell, then I try to traceroute. It says "traceroute: not found". I can't find traceroute in any bin folders. Thanks for any hints. ...

Android get time format

Is there a nice way to retriev the time format e.g. 24h or 12h from within an android app? ...

android application crashes when button is clicked

Hi I am writing an android application that check the username and the password of the user once a login button is clicked i run the app in the emulator and when i click on login button the application is crashed package com.google.android.InitialScreen; import android.app.TabActivity; import android.os.Bundle; import android.view.Vi...

Why is it required to update the view only from application main thread?

Curious to know the reason behind not allowing updating UI elements from background thread in Android. Will main thread does something more (probably interacting with framework) after updating the UI elements so that changes can be seen on the screen.? Is it the same case with other GUI tool kits? ...

Detect which vertex group the object touched belongs to, in android 1.6

I m using an 3D obj file in android using min3d framework. I have created vertex groups in blender for different areas of touch. For example, in a cube, I have 6 groups. What I want is on touch, I want to know which vertex group it belongs to. How can I do that ? Following is the .obj file. # Blender3D v249 OBJ File: # www.blender3d.o...

prevent spinner,s OnItemSelectedListner being fired on startup.

hello guys, can anybody have any idea about how to prevent a spinner,s OnItemSelectedListner being fired on Start up?. it should be fired when some one clicks on it and choose some specific thing from the list. please help if anybody knows that. thanks a lot. ...

Adding a progress bar to webview

Hi, I have been trying to put a back button progress bar in a webview and keep the url loading within my app instead of using the android default web browser. If I manage to keep to browsing within the app and keep the back button the progress bar never shows up if I manage to get the progress bar to show up the code at the bottom for ...

Ideas for automating Android Monkey runs

Hi, I currently use the Android Monkey tool for stress testing Android system/packages. I find it to be useful. But so far everything has been manual testing (i.e. open emulator, execute adb shell monkey <...>, etc.). I'd like to "automate" this and have it triggered externally by a build server. My initial instinct is to just write a...

[Android] Want to display Map but no current position. What's needed?

In my actual project I need to draw a MapView with a given running/walking/cycling path on top of it. I don't need the current position so I added an overlay just for the path (no MyLocationOverlay). The path is painted but I don't see the Map in the emulator - only the grey tiles. The apiKey is set in the layout (MapView) and INTERNET ...

android prompt user's input using a dialog.

Hello I would like to prompt the user to give me input in my android application using a dialog. this is what I have found: AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Title"); alert.setMessage("Message"); // Set an EditText view to get user input final EditText input = new EditText(this); alert.setView...

ANDROID : split the screen in 2 equals parts with 2 listviews ...

Hello everyone, I'm trying to put 2 listviews into my layout. The problem is that I don't know the size of each listview in advance. The first listview could have a few items (0, 1, 2 up to roughly 10) and the second listview could have many items (up to 100). I tried to set the weight of both listviews at 1 but it did not work: => If...

Serving GPS coordinates from Android localhost 10.0.2.2

Is it possible to set up a localhost server on Android so that a browser window can access the device's GPS coordinates? I'd like to be able to access the GPS coordinates in Javascript inside a browser window. Now I could simply send the GPS coords to the server and read from within the browser window by reading off the server, but I w...

problem while inserting audio file in MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in android

my code is like this ContentValues values = new ContentValues(); values.put(MediaStore.Audio.Media._ID, _ID); values.put(MediaStore.Audio.Media.DATA, DATA); values.put(MediaStore.Audio.Media.DISPLAY_NAME, DISPLAY_NAME); values.put(MediaStore.Audio.Media.SIZE, SIZE); values.put(MediaStore.Audio.Media....

What is procedure to Host an App in Android Market?

Can someone tell me the procedure to host an app in Android Market? I know that there is no review process. But is there any other steps I need to follow to publish my App? ...