Android :: Way To Be Able To Get Touch Coordinates In App
Jul 8, 2010
I want to know if there is a way to be able to get the touch coordinates in an app. I know of the commands getRawX(),getRawY(),getX(),getY(). But they dont give me the exact coordinates. Shouldnt these coordinates be in the screen resolution range of the phone? or do they have a different range?
View 1 Replies
Nov 4, 2010
I would like to have a an app where I can play a bunch of buttons all at the same time using multitouch. The only way I have got it to work is using the touch method and testing for a bunch of x,y coordinates.
View 3 Replies
View Related
Sep 26, 2010
I'm trying to get coordinates of the mouse, but there seems to be no easy ways. Can't make the MotionEvent object because the constructor is private. Can anyone please tell me how to get the coordinates of the touch/ pointer/mouse? I only want the touch coordinates of ImageView, but wouldn't mind the touch coordinates anywhere on the screen.
View 2 Replies
View Related
Sep 9, 2010
I have a widget and I would like to detect position where user click on some part of the widget's bitmap. I didn't found any way how to detect coordinates of the touch on RemoteViews.Is anybody aware of some trick how to detect it. Only idea I have is create layout with grid of transparent buttons, put by widget's bitmap as background of such a layout and to every button set PendingIntent.
View 6 Replies
View Related
Mar 8, 2012
I have a quick development question. I have an application that displays an image. You can pinch zoom/move the image around easy enough. What I'm wondering is how would I go about mapping the location of the users touch to the coordinates on the image itself, and not the screen?
View 3 Replies
View Related
Jun 30, 2010
I've been trying to write a little application that recognizes custom events in Android: you hold your finger over a TextView for a certain length of time, and it changes color.I'm using the MotionEvent coordinates and checking if they are within the bounds of a particular TextView, which is within a table.I am just attaching the onTouch listener to the table within the activity.But I get weird errors: the coordinates seem to be off by one view (i.e. if I touch the view below the view above reacts); or sometimes one will react, and the other will not. Any idea what might be going on?
View 2 Replies
View Related
Aug 5, 2010
i'm created an application where it consists of 3d rotating cube I want to move the cube with respect to the drag on the screen.In the on touch Listener I'm able to get the x,y coordinates but i don Know how to make those coordinates to map to 3d space.
View 3 Replies
View Related
Nov 9, 2009
Is there a way to make highlighting of a row in a listview delayed if the user is simply scrolling the list with their finger? To clarify, when the user puts their finger down to scroll, the intersected row (if any) gets highlighted for a short moment, before it realizes the user is just trying to scroll (then the highlight turns off). It seems like the timeout is too short - iPhone has the same behavior, just seems that the timeout is longer to discern between a real row- select-touch, and just a scroll-touch. Any way to tweak this? You can see the behavior in any of the system apps that have lists..
View 2 Replies
View Related
Dec 17, 2009
Is there a way I can see my phone's raw GPS coordinates, i.e. decimal lat/long? Is it built-in, or is there "an app for that" ? I have an Eris Droid.
View 4 Replies
View Related
Oct 25, 2013
I purchased the IR overlay from here [URL] I got it working with my mk808b by using an idc fiile, however, it only allows one touch point which means no zoom. On the computer it is multitouch.
View 7 Replies
View Related
Jul 17, 2010
Can GPS on a phone, such as iPhone or Android determine your Z coordinates? I know it certainly has to be able to determine X and Y, well longitude, latitude that is, but what about the Z coordinates? Can it determine your height, and can I obtain height relative to ground?
View 3 Replies
View Related
Apr 10, 2010
I have several tour guide books that list GPS coordinates for various sightseeing features.
Is there any way to enter these into Google Maps or Navigation as a destination? Is there an app that lets you do that?
View 2 Replies
View Related
Dec 10, 2009
Since the absolutelayout is deprecated, how to put a widget (suck as a button) on arbitary (X,Y)
View 7 Replies
View Related
Oct 20, 2010
I'm making a android aplication, and I need creates buttons in the java files because the amount of buttons is variable and the coordinate of each button too. So, I don't know how set the coordinates x,y in java. Do you know what method i can use to set this values?
View 2 Replies
View Related
Jan 11, 2010
I want to create an application that loads an image as a map (a building of a floor) and add coordinates to it. Can anyone has an idea how to do it? I can do it maybe with MapView and change the resource of the map to my image but it is still not working.
View 3 Replies
View Related
Jun 8, 2010
I'm currently developing an app which uses tabs and google map. What I want to do is to get the gps positions, say 3, and store them in sql db (which I'm already doing) and then display them on the map. I already created canvas, added to overlay but those points disappear when I'm changing tabs so I thought if there is a way to somehow store those coords with google map so I can retrieve them and display them nicely whenever I'm clicking the "map tab"? Please can anyone help?
View 3 Replies
View Related
May 21, 2010
In onclicklistener onclick. how to get the x and y coordinates where its clicked.
View 2 Replies
View Related
Oct 19, 2010
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 was wondering if there was any way to send the GPS coordinates from the device straight into the browser window without having to go through a remote server?
It would be really great to be able to access the GPS coordinates directly from http://10.0.2.2:9999
View 1 Replies
View Related
Jul 16, 2010
How to get GEO Coordinates ( latitude & longitude ) without using GPS in android ?
Any Suggestion ?
View 1 Replies
View Related
Aug 1, 2010
I have to create a UI with components(TextView, Bottons etc) placed at particular coordinates as specified in an XML coming from a server. I am currently using AbsoluteLayout but since its deprecated i want to use some other method.
View 2 Replies
View Related
Oct 5, 2010
I have 100 map coordinates which I plan to store in 5 xml,s, how can I store them in a xml and retrieve them in this code....
View 3 Replies
View Related
May 7, 2010
I just cant get this working. I tried using the code below with onTouchEventand and it doesn't work.
If i return true at the end of the method, i get the toast with the coordinates but can't move a map, and if i return false, i can move a map but cant display a toast after the user clicks on a map. If i get it right, the other onTap method is used only for clicking on a overlays. code...
View 1 Replies
View Related
Feb 8, 2010
I'm trying to get the absolute screen pixel coordinates of the top left corner of a view. However, all methods I can find such as getLeft() and getRight() don't work as they all seem to be relative to the parent of the view, thus giving me 0. What is the proper way to do this?
If it helps, this is for a 'put the picture back in order' game. I want the user to be able to draw a box to select multiple pieces. My assumption is that the easiest way to do that is to getRawX() and getRawY() from the MotionEvent and then compare those values against the top left corner of the layout holding the pieces. Knowing the size of the pieces, I can then determine how many pieces have been selected. I realise I can use getX() and getY() on the MotionEvent, but as that returns a relative position that makes determining which pieces were selected more difficult. (Not impossible, I know, but it seems unnecessarily complicated).
View 4 Replies
View Related
Jun 8, 2009
I am developing a small application for learning purpose which will move image when accelerometer readings change. I want a mapping of accelerometer values to screen coordinates. I am using trial and error method rite now. But it seems that it will not help. Is there any algorithm??
View 2 Replies
View Related
Sep 21, 2010
My question in a nutshell is: Is there a correlation between the number of decimals used in GPS co-ordinates and the accuracy of the location?
Right now I happen to be working with the Android SDK but I'm sure this question can apply to many other geolocation SDKs. Basically, Android returns GPS coordinates with up to 14 digits. That seems like overkill in most situations. Lets say I needed accuracy down to about an area of 10 feet by 10 feet. How many decimals do I really need to worry about? The use-case that I'm looking for is I want to know if a person is north or south of a particular latitude - how many digits would I need to store in the database and how many digits would I need to compare?
View 2 Replies
View Related
Oct 13, 2009
I am trying to design my first Android application with the use of GPS. As of right now, I have a drawable button that when clicked, alerts a Toast message of the longitude and latitude. I have tried to use the telnet localhost 5554 and then geo fix #number #number to feed in values but no results display just 0 0. I have also tried DDMS way of sending GPS coordinates and I get the same thing. My question is what exactly is the correct way of using the geo fix and the DDMS way of sending coordinates. I have used Location, LocationManger and LocationListener but I am not sure which is the right choice. Code...
View 2 Replies
View Related
Aug 9, 2010
Is it possible to obtain the X-Y coordinates of a home screen widget? I need to display a pop-up relative to the position of the widget, so I need to get the X and Y coordinates.
View 2 Replies
View Related
Jan 9, 2010
I'm trying to figure out how to continuously update the coordinates of the trackball. Right now, I just want to write the values on change to TextViews to understand how it works.
I've been looking at the onTrackballEvent. Right now, I assume that each event passed as an argument to it should be seen as a complete event, that is from the start of the trackball movement to the end. Is this correct? Because if so, the values of x and y will be the same during the execution of the onTrackballEvent body. If this would NOT be the case, I could just use a timer and update the values at a regular interval..
So either I have to somehow interrupt the onTrackballEvent call and write the values, repeatedly over and over again while it is still moving, which seems weird, or...well this is pretty much were my Google search skills and Android knowledge comes to a halt.
View 3 Replies
View Related
Jun 11, 2010
I have a program in which I would like to place an image at the coordinates of a touch event. I have the coordinates now I just need help with placing an image there. I will be using a drawable.
Edit**
I also want to overlay it over another image. I cant find any documentation on this what so ever. I would think it should be easy. code...
View 1 Replies
View Related
Mar 19, 2010
I am currently building an application that allows users to track where their phone has been on a Google Map. At the moment, when the onLocationChanged() method is called, the application stores the current GPS longitude and latitude in a database and calls the animateTo() method to the current position.
Using SDK 1.5, how would I go about connecting these points with a coloured line drawn on the MapView using an Overlay?.
View 1 Replies
View Related