android

metric of MotionEvent API getPressure, getSize

Hi all, I'm working on a program which used the functions as title. There's a problem that the tunctions above do not have their metrics on API website. To avoid misunderstanding, here is an example about "metric" I metioned before. Ex. size = pixel, pressure = kilogram(kg) I have no idea about the metric at all. Please show me whe...

Determine time since last user activity in Android

How do you discover when, in the future, the device is expected to sleep? Or, at least, when the last user activity was? ...

Strange behaviour with custom cursor adapter android

Hello, i have been having this issue for some time now, and have not gotten an answer for it yet. i have this custom Cursor adapter which i use to populate a list view from an sqlite database. Now my issue is that i want to populate the listview based on certain conditions.An example is if the condition is important, the listview should ...

multiple images in a one single image

I want to create a bitmap / image which has many images like "Collage" which has more then one images in a single picture. I have stored all my images in a grid view but now i want to create a single image from all those images. And even i want to make few images click able so what can be the road map to do this ? any sort of help / e...

How can I call one method in two activities?

I'm developing an Android project , the main activity well call a method(Ptime.GetDate) which will change a global variable (output) then this activity will print this variable public class calendar extends main_menu { int i=0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle sav...

Android Send Data over Network fails on 10.0.2.2

I'm currently trying to write a client-server based application for android (Will be a simple Chat client someady...) But when Using the local Port at 10.0.2.2 the Client (the Android App) seems to loose the data written into the stream. It's very strange. The first commands (while handshaiking) arrive and suddenly the Read call on soc...

draw a spot in the bitmap image

Anybody please help me with some hints to draw a spot(small filled circle) on a bitmap image. ...

Android emulator reports unknown virtual device

Hi, i am having the same problem described in the following post "Android emulator reports unknown virtual device" http://stackoverflow.com/questions/3384070/android-emulator-reports-unknown-virtual-device and have followed all of the instructions in an attempt to resolve but still i cannot run my AVD. I only have one drive on my Windo...

How to achieve service discovery like "Printer Discover" on android?

Hi, I would like to know about the 'service discovery' mechanisms supported by android - particularly, Printer Discovery. Does android provide such a discovery option? example : support for snmp broadcast? I tried out an application "PrinterShare" link : http://www.printeranywhere.com/mobile.sdf where Printer Discovery is achieved thro...

how to create circular button in android?

Hello All, I want to create a circular button having a plus and minus sign on to this and exactly used in Android Contacts application like shown in the image as below: If any body knows please tell me.. Thank You All..... ...

Want to do work on my Application Uninstall:android

Hi all, i am aware of android BROADCAST_PACKAGE_REMOVED for notify when any application is uninstalling from device. Now it is possible that when i uninstall one application and that application do some work before and uninstall. e.g: my application work with android contact if application uninstall at that time i want to change in con...

Android - Junit - Tested project uses external Jar

I have some java code (compiles nicely for Android) in a library project (LIB) that I want to use in an another Android project (A). As LIB's code is unlikely to change much, I opted for adding it as a jar to A. It works fine. I have another project that is an Android instrumentation project, testing the first Android project (B). So ...

Can I use ext2 or ext3 formatted external SD card in Android 2.1

Hi, If I insert an external sd card formatted in ext2 or ext3, will it be treated as a normal sd card (FAT32)? The device is Samsung Galaxy S (Korean) running Android 2.1 I need the answer before I get the device tomorrow, because by the time I get the device, I will not have any option to change anything in the card. Regards Sarwar Er...

text of the textview sending

i have two activities each contain its own textview any one help me that when i click the one textview text the text goes to the another textview of the second activity please any on help me in this problem ...

Background properties on ImageView ignored when placed over ViewFlipper

I have an Activity that contains a FrameLayout and two views. The first is a ViewFlipper and the second is an ImageView. If I comment out the ViewFlipper, the activity renders the ImageView and its background correctly, but when the ViewFlipper is visible, the ImageView's background is completely ignored. Is this a "feature" of ViewFlip...

asynctask in Android

Hi Team! Can anybody tell about the "asynctask" used in android application. Currently I am working on an application where I have to create a Class in which I have to just get the response of any particular URL given. I this particular class I was told to perform this task by making use of "asynctask". I had been getting very quick r...

How to decrease the Width and Height of CheckBox in Android.

Hi, Can anyone tell me how to reduce the width and height of CheckBox in order to display very small CheckBox in Android ? Thanks In Advance, ...

Button on Custom Dialog Not Responding to Click Events

I created a custom dialog that extends Dialog. One button on that the dialog is an “OK” button which the user is expected to press when finished entering information in other fields. I cannot get any listeners set to that button to fire. public class HeightDialog extends Dialog { private Button okButton; … @Override pub...

How to set launcher application icon on Android Cellphone with 1.5 api

I Im working with a Motorola DEXT with a 1.5 api, and the application launcher icon it's not shown. When I use an emulator with a 1.6 or newer api it works just fine. Is there any additional steps to configure the icon for older apis like the 1.5 I'm working on? Thank you very much ...

Scaling website to 100% width/height of visible area

how to make content of a web page fully scaled whatever the width/height of the device visible portion is? ...