Get X , Y Position Where User Touched On Screen In Droid

I want to get x and y position of screen where the user has touched. How can i do that?

View Full Post With 1 Replies

Related Forum Messages:

Please Follow Index to Quick Jump to the Message.

How To Get An Event In A Service When Screen Touched

I would like to implement a service in android that basically should monitor the time elapsed since the user didn't touched the screen. For example the user opens internet or adobe reader, starts reading and don't interact anymore withe the touchscreen.
I want that my running service know the time since the user didn't touched the screen.
How can i do this ?
I'm thinking at two approaches:
1. The better one : after the time is elapsed (the service is set that after 2 or 5 or 10 minutes to check if the screen was or not touched) the service query some system object for this information.
2. The not so better one (i think this could have an impact on performance) at every touch of the screen the service to be notified.

Posted On: Oct 13 at 14:19 . View Related Posts . . View 3 Replies .

How To Set Home Screen On Different Position Than 1st ? - Samsung Galaxy Ace

I would like to ask how can i set home screen on different position than 1st?

Posted On: January 13th 2012 . View Related Posts . . View 7 Replies .

Htc Incredible - Gpu Hasn't Even Been Touched Yet / Fix It

Qualcomm releases open-source 3d snapdragon driver | android central

This should boost our quadrant scores somewhat, i think.

Posted On: 07-02-2010, 03:16 PM . View Related Posts . . View 11 Replies .

Expandablelistview Child Items Don't Get Focus When Touched / What To Fix

I wrote an expandablelistview and subclassed baseexpandablelistadapter. Everything works fine except i cannot get the child views to take focus when clicked. If i use the trackball everything works fine. But if i try to click on a child i get no feedback whatsoever.

I have tried setting android:focusable, android:focusableintouchmode, and android:clickable (and i have also tried setting this via code) but i can't get anything to work. Any ideas?

Here is my adapter code.

Posted On: Apr 16 at 9:17 . View Related Posts . . View 2 Replies .

Access Position Variable In Onitemselected()

In the following example, how would one access "position" variable from elsewhere (outside the parent class)code.

Posted On: Oct 28 at 20:58 . View Related Posts . . View 1 Replies .

Way To Make Dialog Show Up Over Given Position

Can anyone tell me if there is a way to make a dialog show up on android over a given position and look like the cartoon talk bubble used in gallery3d popupmenu without having to try to use and understand many parts of that package. If i have a nine patch can i use that to change the look of the dialog surrounding frame so that it looks more like a cartoon talk bubble?

Posted On: Jul 13 . View Related Posts . . View 3 Replies .

Debugging Droid - Get Bugreport Output From A User?

What is the easiest way for a user to send me the output from 'adb bugreport'? Asking them to install the sdk and hook up usb debugging is too hard. Is there an app that will just dump that out and email it, or some other trick?

Posted On: Jun 29 at 16:29 . View Related Posts . . View 1 Replies .

Create User Interface Using Skinning In Droid

How to create user interface using skinning in android

I don't know anything about skinning & also i am not found any document.

Posted On: May 28 . View Related Posts . . View 3 Replies .

Unable To Position A Dialog At A Required Location (x,y) / Right Way To Do

I'm displaying some content in a dialog. By default the dialog is displayed at the center of the window. I would like to position it at a location (x, y). I'm not able to achieve this using gravity. Probably i'm not doing it in the right way. Has any one faced a similar issue?

Posted On: Apr 8 2009 . View Related Posts . . View 2 Replies .

Position An Image Src Inside An Imagebutton

I want the image to be right aligned within the image button.code.

Posted On: Sep 1 2009 . View Related Posts . . View 6 Replies .

Video Player That Stores Position Through Reboot

When i travel, i like to load some videos onto my phone to watch in the airport and on the plane. I'm using the app "video player" to watch. What sucks, though, is that when i have to turn the phone off for take-off and landing, it loses my position, and then when i turn the phone back on again, i have to find where i was.

Is there a video player which will remember my position even through a reboot?

Posted On: 08-20-2010, 07:44 AM . View Related Posts . . View 3 Replies .

Getchildat Sometimes Giving Wrong Child At Particular Position

I have a listactivity in which i am displaying list of items more than 8 items. Thus there is scroll bar eneabled. When i click on list items some times getchildat returing wrong view from the list. Why is it happening like that and how can i prevent from happening?

Posted On: Feb 2 . View Related Posts . . View 2 Replies .

Web Browser Die When Request Cached Geolocation Position

Does anyone know about this problem? When i run browser and create new windows by press button menu key to menu->windows->press + new window from time to time browser die. I have try to solve this problem but it doesn't works.

Posted On: Apr 4 . View Related Posts . . View 2 Replies .

Podcast App That Supports Position Resume When Tracks Are Switched

I have found that most of the podcast apps out there let me resume the position of a podcast when i exit and enter the program but i am running into a problem in that if i switch between podcasts it starts over when i return to one i have already started. Is there a podcast app out thee that will let me listen to part of one podcast, switch to another, listen to part of that, and then if i switch back to the first it will resume from the point i left off, not from the start?I have tried listen but that resets each time i switch between tracks.

Posted On: 11-03-2010, 07:15 AM . View Related Posts . . View 5 Replies .

Htc Desire - Gps Takes Ages To Find My Starting Position

I have co-pilot8 which is pretty ok but gps takes ages to find my starting position(sometimes 30 minutes with clouds), is there any program that can help my phone locate me quickly so co-pilot8 can do his job?

Posted On: 06-30-2010, 09:44 AM . View Related Posts . . View 9 Replies .

Is There A Way To Request Permissions From A User As You Need Them

I suspect there has to be. I mean i saw for bluetooth there is. I was wondering why it is not as easy for the other permissions. I mean heck we can intercept urls without even asking a user for the most part, so i would have to suspect that permissions have to have this ability.

Posted On: Aug 27 . View Related Posts . . View 0 Replies .

How To Make User-control

I have two questions.

First. I wanna know how to make user-control and how to use it(in xml code).

Second. I want to find color picker dialog, but i don't find it. Where can i find it?

Posted On: Oct 15 2009 . View Related Posts . . View 2 Replies .

Restful User Authentication

I want to develop a restful web service for my android application. I have some questions and problems. I want to use a database for the user login and signup for the beginning. But how can i make a restful webservice (in java) where i can authenticate a user. The user has to login with a username and password and this username and password has to be checked. How can i make this? I have read a lot but i don't find a solution. I want to use this webservice in my android application (using http and xml/json)

Posted On: Mar 30 2009 . View Related Posts . . View 14 Replies .

User Experience And Ui Refinements

I think android has a ton of functionalities and that's definitely wonderful. I am not trying to be overally critical since i know the android team has been working hard and this is highly appreciated. However in all systems, there are rooms for improvement and here are a few areas where i think android can improve upon:

1) ui refinements - currently it's actually pretty hard to create good- looking ui in android. This is one of the main reasons why uis in android look like childplay compared to iphone apps. Any of the base/ core ui components in android (to be blunt) are not that pretty. To customize and add in the appropriate gradient and create the kind of sophisticated uis that are comparable to iphone apps is twice as hard. Having done development in both, this is something android should target. Overall the android ui is too blocky, too funky, and not stylish. And in some cases, they are moving backwards. The new tabs in android 2. 0 look worse than android 1. 6. The new spinner is also not doing justice either. A focus in this area will be helpful in order to create better ui for android applications.

2) user experience - instead of constantly just adding new functionalities, focus on user experience. For example, always having to click the menu key to bring up a menu requires additional clicks that are not necessary. Having to click a back key and guess where the current application ui will take me back to is also not great. Possibly provide a built-in on-screen menu in the framework? Provide a breadcrumb component as part of the framework as well?

Posted On: Oct 27 2009 . View Related Posts . . View 3 Replies .

Delete Words From User Dictionary

I have looked till i was blue in the face, for a way to delete certain words from my user dictionary. When i pull it up, i get very few words. There are some words that i know that i've entered mistakenly, yet i can't seem to fine them to delete them. Does anyone know the trick or tricks to manage the entire available dictionary?

Posted On: 2011-01-18 . View Related Posts . . View 1 Replies .

Get Online User To Gmail Chat

I am developing gmail chat application in android. Anybody know how can we get the online user?
I would login from my gmail id. I want to show the my friends who is online from chat list.

Posted On: Aug 28 at 11:13 . View Related Posts . . View 1 Replies .

Google Talk User Id Exchange

Any google talk users want to chat randomly? Since i came from a blackberry where in the forums they had a placeto exchange pin numbers we can start a thread here for droid users too.

Posted On: 11-15-2009, 05:13 PM . View Related Posts . . View 17 Replies .

How To Know In Which Pixels Of A Image User Clicked

I want to draw a image filling the complete screen.
Then when user clicks in any pixel or group of pixels they turn black.
How can i know where the user clicked exactly and how can i turn the touched pixels black?

Posted On: Sep 6 at 18:26 . View Related Posts . . View 1 Replies .

Refresh Notification After Deleting From User

I have a backgroundservice running, an icon is displayed in the status- bar. When a user clicks the button "delete notifications" my icon dissappears also. But i want that after that my icon appears again! So that the user is able to click on the notification to get into my application. Now i display the notification in a thread every time. But i want to display it only if it was deleted. I think the best way is to check if the notification is displayed, is there a way to get this information?

Posted On: Mar 5 2009 . View Related Posts . . View 3 Replies .

Log From A Samsung Moment User

If you have a samsung moment and have adb working for it, would you mind downloading deadly chambers demo off the android market and running it with the log up for me?I'm getting reports of it "not opening" but no additional details. Just the crash log would help tremendously. I think all you need to do is install and try to play the game.

I can return the favor with an evo, tattoo, g1, n1, archos 5 or droid.

Posted On: Jul 21 . View Related Posts . . View 2 Replies .

Showing File Upload Progress To User

Does anyone have a recommendation on how to visually show progress of uploading a large file to a web server? My app needs to upload one photo at a time, as directed by the user. Images are about 200kb.

I don't want to put up a progress dialog and block the user from further interaction while the upload is in progress. Looks like i can:

Have a service upload the photo, and post status updates to the notification bar.
Upload through service (or bg thread), but post status updates to some in-app notification indicator.

I'm wondering if #1 is more standard, i like the idea of putting off updates to the notifcation bar so it's separated from my main app. I don't really want to build some global upload widget that has to be displayed on each activity my user navigates to.

Posted On: Dec 16 09 at 8:10 . View Related Posts . . View 1 Replies .

Detect When User Dismissed Soft Keyboard

I have an edittext widget in my view. When the user selects the edittext widget, i display some instructions and the soft keyboard appears.

I use an oneditoractionlistener to detect when the user has completed text entry and i dismiss the keyboard, hide the instructions and perform some action.

My problem is when the user dismisses the keyboard by pressing the back key. The os dismisses the keyboard, but my instructions (which i need to hide) are still visible.

I've tried overriding onkeydown, but that doesn't seem to get called when the back button is used to dismiss the keyboard.

I've tried setting an onkeylistener on the edittext widget, but that doesn't seem to get called either.

How can i detect when the soft keyboard is being dismissed?

Posted On: Aug 6 at 16:50 . View Related Posts . . View 1 Replies .

Specify Different Image When User's Focus Comes To An Imagebutton

Is it possible to specify a different image when the user's focus comes to an imagebutton? I want to display an image button on a linearlayout and change the image when the user's focus comes on the button or when the user presses the button.

Posted On: Mar 3 09 at 14:55 . View Related Posts . . View 2 Replies .

Htc Incredible - Request For Non Rooted 2.2 User

Could someone connect to their phone and do a 'ls -l /system/bin/insmod' or 'ls -l /system/bin/toolbox' who does not have root?

Posted On: 09-13-2010, 09:28 PM . View Related Posts . . View 10 Replies .