Android :: GPS Coordinates Within Certain Radius Based On Current Location
Sep 3, 2009
In my application I have a list of +400 GPS coordinates which I retrieve from addresses. The application should give me the top X nearest coordinates based on my current location.
This application is possible (I think) with the distanceBetween function. But (I think) the application is really inefficient when i iterate through the list of 400 coordinates and check the distance within a certain time interval. Another option is (I think) the proximityAlert function? All coordinates are loaded in this function and when my current location comes in the radius of a coordinate an alert is given. But the downside of this solution (I think) is the high memory usage which implies a short battery life of the Android phone?
Can anyone recommend a weather widget that displays the current weather based on location? Preferably cell tower info instead of gps and one that only used data every set interval based on my settings so that it doesn't use data constantly.
I use Android emulator to test my location based application. The cordinates are provided by geo fix command (for example: geo fix 2.31278 48.9533 10). But when the new location event is fired, the cordinates are not the same as those in the command: I got latitude = 48.95800053333334, longitude = 2.3033544999999997 (I use Location.getLatitude() and Location.getLongitude() methods). Does anyone have an idea of my trouble ?
How could I fix the location which appears on the clock on the home screen and serves as weather forecast location? I am not living near a big city listed on the weather location list and when at home, the current location usually is indicated some dozen miles away from my home. This could be a cosmetic problem, but in the Alps (where I am living) weather a short distance away can be quite different from where you are. Besides that, it would be nice to know the weather at home while beeing abroad.
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?
In my case I need to be able apply a color conditionally (for example based if an item is read or unread) so I need to be able to read the "read" and "unread" colors from the current theme and apply them appropriately.
I gave the color special attribute name in my attr xml file and assigned it different values in 2 different themes. if I do getResources().getColorStateList( <my attribute resource ID>) it fails because it can't find the resource. It seems like something needs to first resolve the attribute Id to the Id of the resource in the current theme, but I am not sure what does that.
Is there a location based reminder app? For example, let's say I need something from the store. I would like an app that would remind you to go to the store when you are near one. It would be cool if you could select specific locations or use generic locations (based on what is in Google Maps maybe). Hopefully it uses the location service without using satellite GPS.
I am new to the android programming environment. I am currently working on a project which deals with the user's phone battery level.I am showing the current battery level left on the phone.now i want to display the amount of duration of "idle time, talk time, video playback, audio playback and web surfing" that can be done based on the current battery level. What kind of approach shall i follow.(or) What available API shall i use to get those.
Location based rules dont work. I have GPS checked, and starred but it wont find me. I open up google maps and cell tower triangulation completely sucks. 10 miles off. Now the real question is; Is the dev working on this problem? Should I buy it and hope it gets fixed? The app has alot of potential, but it needs its location fixed bad.
This is what I am trying to do: simple app to get list of addresses I am interested in based on my current location.
I get the current location using location services. Now, based on this current location I want to do a search on business places without really using the SearchManager's triggerSearch. The problem with the triggerSearch is that it launches the googlemap and show the business address I am looking for and it is blocked. I want to get the control back. I do not want to launch the map with the listing. all I want to do is the get the Geopoint of the business address I am interested in using a simple web search. I tried reverseGeocoding , but it is does not work with business address. It needs full address. any suggestion?.
Simply put, all I want to do is a simple websearch , say query="whole foods, los gatos, CA" to get its full address. and then use it to get the GeoPoint.
Am trying to develop an app that show current location. but i am having one prob. my application is showing location on location change occur.* but how to show location first time. * i want to take location manually..not by onlocationchange Method in location manager.
I'm done creating an android program that adds a marker to a location. But I need to show CURRENT MY LOCATION in the MAP. I know this is done thru location based services but I don't know how to incorporate it into my program.
Here is my onCreate command:
I have an onTouchEvent that places the marker. So no problem there, the problem is I need to display my location at the start of the program. It should show a mark that says, "You are here" or something like that in the map.
I travel to different places to visit clients and spend few hours with each client any given day. Most of the time I am busy or forget to use a time tracker application to log my time in and time out. Are there any application out there that track time spent on a specific location. I use locale but it doesn't give me time spent at specific a location.
I used PhoneAlarm to do my call forwarding when I was on the "other" platform. It dialed my call forwarding number based on time of day. I know Locale has the capability but there is no plugin to do it. Does ANYONE have an App or know how I can call forward based on location or time of day or to at least call any number based on this criteria? I do not, or I should say, cannot use Google Voice since I have no account and they are not taking any more users.
How do I get the current location of the phone? I'm not talking about registering for location updates on the location manager and waiting for it to update upon change. I'm talking about get the current position.
I am trying to get my current location on my xperia X10i phone. There is no error in application code but i am not getting the location. I have tried to use built in navigation. It works fine but i have to turn on GPS satellite receiver as well wifi network.
I know this has been discussed over and over now but I just got it workign and it works perfectly on the emulator when I mock the location with long and lat however, I am still getting NULL in the location when I run the code on my phone. here's the main code...
Had my Desire now for a couple of months all going well apart from the weather app / widget all was fine but now it don't come up with current location just says united kingdom been trying to sort this for days, if I go into the application it see's my city but it defaults to uk any suggestions to sort this?
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?
I'm new around here, but I thought I'd appeal to the knowledge-base to see if anyone knew of an app that might help me.
Basically, it's pretty simple. I want to be able to control how frequently my Exchange email syncs based on what time of the day it is and/or my location. Does Locale have this functionality? Just reading the documentation, I don't think it does, but I'm not too anxious to spend $10 to find out. Could there be a plugin or something for Locale that would do it?
My basic beef with my Eris is that when I'm at work, with my email running and I get an email, even if I retrieve it and mark it as read, my phone will still beep and retrieve the email when it does its sync cycle, (which I have set to every 10 minutes) so I'll basically get the email twice, even if I've read it on my computer 10 minutes before. I'd like to be able to set it so that I can control how often it syncs when I'm at work, either based on the time or location.
I am looking for an app that would automatically send a text message based on a GPS location. The reason for this app is because I am a vanpool driver and it would be great if I could notify my riders when I am getting close to their house so that they are waiting for me when I pull up. Much better than having to honk my horn and then wait!
I want to dispaly the current location in my application not in map. I want the current palce using current lattitude and longitude .
For Ex some 'x' person i want to know his location.but i want to know his location using his current lattitude and longitude.
When i use the below code it`Context context;
The "addr" does not getting any value.why it is happened here my Activity is extended by MapActivity and also tell me without extending activity (simply in class) how do you find the current location using current lattitude and longitude ?