Android :: Strategies For Large Volume Of Location Geocoding

Oct 27, 2009

I have an application that uses the Google Maps API to geocode distances between lat/long pairs as a way of displaying people near to you on your phone (currently Android, working on iPhone). The issue is that even with a test group of 40 users, we are taking upwards of 10 seconds to do our calculations and send the results back to the users. While 10 seconds sounds like a long time, it's not really an issue as far as the client app goes because it's not a real-time update of people's locations (the updates occur every few minutes). Obviously this is a problem though since we'd obviously love to ramp up to tens or even hundreds of thousands of users. I'm curious if anyone else has any experience in this arena in regards to using the Google Maps API for calculating distances between points for large volumes of data?

As an aside, we're using Rails on the server, which is where all of the location calculations are occurring. The phone(s) are merely displaying the maps and updating the server with lat/long coordinates.

Android :: Strategies for large volume of location geocoding


Android :: Design Strategy - Large HTML In Apps Bookmark Location

Nov 8, 2010

I write Windows/iPhone/Android apps that mostly display large documents (HTML) in an HTML container view. What is a good strategy to determine where in a document the users has scrolled to so that when the app runs again, it goes to that location in the HTML document? ll of my software can 'listen' to javascript. Is there a way to find in a HTML page, perhaps with javascript, where the visible section is?

View 1 Replies View Related

Android :: How To Implement Singleton With Strategies?

Aug 17, 2010

I'm adapting Image Downloader from Google Android blog. I want ImageDownloader to be singleton since I'll be using it in multiple places in my application. I want also to be able to manipulate Bitmaps using different Strategies (eg. produce transparent bitmaps).I want to be able to use ImageDownloader in one activity and set transparent bitmaps, and in another use the same ImageDownloader but get black&white bitmaps using different strategy object.

View 5 Replies View Related

Android :: Strategies For Using Touchscreen MotionEvent Coordinates

Mar 17, 2010

I'm writing a simple tile based game using a canvas and a 5X5 grid of tiles. To determine if a tile is clicked I look at the MotionEvent supplied by onTouch. I get the coordinates when MotionEvent.event is ACTION_UP and translate to tiles. This works great on the emulator but when I touch on a device the actual coordinates of the touch register higher than I'd expect as a end user.

I'm wondering what strategies people have used to get a closer to "expected" result. Do you use a simple Y offset? Do you average the coordinates over the life of the touch? Do you use other methods?

View 4 Replies View Related

Android :: Large Screen On 1.6 - All XML Files Of Layouts In Layout-large Can't Load

Oct 23, 2009

I want make it support multiple screens(small,normal and large).I am 100% sure the all of layouts are working perfectly now, but large screen,the problem is that all XML files of layouts in layout-large can't load,The platform always load default XML file(these are under layout folder) at large screen environment.

View 4 Replies View Related

Android :: MapView Doesn't Display Tiles - Debugging Strategies / What's Actual Problem?

Jul 10, 2010

There are a number of posts (both here & elsewhere) about why a MapView might not be displaying tile info (personally, I've liked http://stackoverflow.com/questions/1809507/android-hello-mapview-tutorial-map-tiles-do-not-load, but there are other good ones, too).

My question is slightly different: I'm not getting tile info to show up (on my handset or in the emulator), and I'm looking for advice on what to try in order to debug this problem. As far as I can tell I've correctly located my debug.keystore, and used the Java JDK keytool to get the signature from it, which I then plugged into the Google web page, and then plugged THAT key back into my XML file. The app runs ok, it just doesn't display any tiles.

I was hoping that if I did something wrong here I'd see an error message in, say, logcat (or an exception that Eclipse might catch) that would confirm that this is the source of the error.

So here's my question - what would y'all recommend someone try in order to figure out what the actual problem is?

View 1 Replies View Related

Android :: Reverse Geocoding In App

Oct 17, 2010

I am trying to Reverse GeoCode current Lat/Long data to just Admin Area and Sub Admin Area using the Geocoder class.

I am using the NETWORK_PROVIDER as the Location provider. Here is the code that I use and it works. The problem is sometimes it does not give me any location sometimes it does.

Android Manifest permissions I am using.

CODE:.............

Here is the rest of the code that does give me correct location from time to time but nothing at other times.

CODE:..............

Are there restrictions with the network providers how frequently you can request location data?

How can I make sure that everytime its run this can give me valid location data.

Thanks in advance for any insight into this.

PS: I have run this code on my real device running Froyo 2.2 (Verizon Wireless). Target API Level 8.

This is what I got from my debugging.

Latitude Longitude is always fetched but the getFromLocation often returns null for the latitude longitude data passed to it. So what should be the workaround? May be pass the Lat/Long info to Google Maps API for reverse geocoding. Will be glad to receive any input.

View 1 Replies View Related

Android :: Emulator 2.1 & 2.2 Reverse Geocoding Not Available

May 30, 2010

I have been unable to get reverse geocoding wokring under either 2.1 or 2.2 on the emulators. Tested on both mac/eclipse & ubuntu/eclipse.

I am sending manual decimal coordinates via DDMS and have ACCESS_FINE_LOCATION & INTERNET permissions in my manifest file.

On an actual phone (HTC Desire) it functions properly.

CODE:............

The following code throws the exception below

CODE:..........

I have been looking for docs on this and can find very little information on the above to confirm whether it should or should not work.

View 12 Replies View Related

Android :: GeoCoding Fails After SDK Upgrade To 8

Sep 24, 2010

I recently upgraded my SDK from 7 to 8. One of my applications uses Google GeoCoding, specifically the Geocoder object. After the upgrade, when I call the getFromLocation method, it doesn't return any addresses and I see a message in the logcat to the effect that GLS failed with status 20. My Google Maps API key is working fine because I'm seeing the map tiles, but GeoCoding is broken. It works fine if I run a previous (SDK 7) build of my app.

View 6 Replies View Related

Android :: Caching Geocoding Data

Nov 5, 2010

My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently handled in my activity which also displays some data depedant on the results of that call.

This can be quite slow, for example before the activity can load it first has to complete the various calls, and that is reliant on a network connection.

Once I have the results, I don't really need to refresh that (I mean how often do locations and geo coordinates change?)

My question : How can I best avoid having to query for this data each time my app runs. Should I do something with a service that loads them all on startup? (could be quite slow if it has to query 50+ times). OR should I make the call, store results in SQL, then only query next time if I don't currently hold the results?

View 1 Replies View Related

Android :: Geocoding - Accuracy Required In GPS Coordinates

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

Android :: Reverse Geocoding Not Working - Google Paltform : 2.2 - Api - 8

Nov 24, 2010

I am getting null pointer exception when I am trying to get lat/long from address using reverse geocoding in Android....

View 2 Replies View Related

Android :: Geocoding Fails - ForwardGeocode - GLS Failed With Status 20

Nov 24, 2010

After I upgraded to Android SDK 8 I started seeing geocoding failures in the emulator. However, everything was fine on a device. Now my app fails to gecode on 1.5 and 1.6 devices as well as in the emulator. I can't test on a 2.2 device. Perhaps it works OK there.

View 1 Replies View Related

HTC Hero :: Flickr Integration Loses Geocoding

Nov 26, 2009

I have been uploading my photos to Flickr using the built in Flickr integration. However, I notice that the geocoding does not get set in my Flickr account. When I browse the photos on my phone's card, the goecoding is in tact. Is this a limitation of Flickr or my Hero?

View 3 Replies View Related

Android :: How To Play Audio Files At Phone Volume Level / Not Speaker Volume

Nov 22, 2010

I'm writing an Android application that plays back voice mails using Media Player, which are just WAV files that have been sent to the device. When I play the file, it's played on the device's speaker, or else it plays through headphones if they're plugged in. What I want to do is play the file so that it sounds to the user as if it's at the same volume level as a normal phone call. Is there a way to route playback so that the file is played through the phone's ear piece instead of out of the speaker?

View 2 Replies View Related

Android :: How To Change From Ringer Volume To Media Volume?

Oct 12, 2010

On one page of my app there are sounds. Is there a line of code to allow the volume up/down buttons to switch to media volume control for that page of the app only? Or do I need to set it for the entire app, and how do I do that?

View 4 Replies View Related

Android :: Location Manager Minimum Update Time Overridden / When Location Changes?

Oct 26, 2010

I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.

View 1 Replies View Related

Android :: Location Manager Does Not Detect Location Correctly

Sep 17, 2010

In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is: locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locListener = new MyLocationListener();locManager.requestLocationUpdates(LocationManager .GPS_PROVIDER ,0,0,locListener); location = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);if(location != null){latitude = location.getLatitude();longitude = location.getLongitude();} Please find the mistake and when i launch first time it is not working on second time itself it is working so check this thing also.

View 1 Replies View Related

Android :: Testing Location Using Network As Location Provider?

Jan 27, 2010

I have an application which uses the network as the location provider (rather than GPS eg.), however I can't seem to figure out how to send the emulator test coordinates. In DDMS I would usually send coordinates in the Emulator Control tab.Is there a place to simulate coordinates derived from the cell phone network provider?

View 6 Replies View Related

Android :: Override Enable Location In My Location Overlay

Mar 4, 2010

I want to override the method enableMyLocation() in MyLocationOverlay class, in order to implement my own positioning algorithm to get latitude/longitude, and then plot them onto a MapView. I figured out how to do that, but now I'm stuck because I dont know what Canvas to pass when I call the method drawMyLocation().
Here is the MyLocationOverlay class

View 4 Replies View Related

Motorola Droid :: Disable Volume Control Button As It Works On Ringer Volume?

Jan 6, 2010

Is there any way to disable the volume control button as it works on the ringer volume? I use locale, but I bump those buttons often enough and turn the ringer off completely.

View 27 Replies View Related

General :: Sprint Vital ZTE N9810 - Separate Ringtone Volume From Notification Volume?

May 21, 2014

Recently purchased the Virgin Mobile Supreme (Sprint Vital, ZTE N9810). The one thing that is bothering me is that there is only one volume setting for the combined ringtone and notifications. I would like to set these volumes separately.

I tried one volume control tool, but even though it had 'separate' controls changing ringtone changed notification and vice versa.

View 2 Replies View Related

Samsung Vibrant :: Set Volume Rocker To Adjust Notification / Ringer Volume

Jul 17, 2010

I noticed that when turning down the volume of the ringer with the volume rocker it doesn't automatically turn down the notification volume as well. Is there a way to set the volume rocker to adjust both notification and ringer volume to the same level? You can test this by going under Settings/Sound and Display/Ringer Volume...and try adjusting the volume with the rocker and it only adjust the Ringer Volume.

View 2 Replies View Related

Jelly Bean :: Alarm Clock Volume Resets Itself To Low Volume?

Apr 16, 2014

I have Android 4.2 on my mobile phone which I have bought recently.

Everything is running fine on my phone so far but with the exception of my clock's alarm volume.

For example:I set the alarm volume to max, I go and set my clock alarm to ring and when the alarm rings the volume is set to very low.When I check back to verify the volume, the volume is set to very low. I am very sure that I have set it to max though.

I have tried to reset my phone to factory settings, it didn't work..

View 1 Replies View Related

Android :: Location Provider / Coarse Location

Jun 25, 2009

The way we are retrieving locations from our Android phones is to 1st get a Coarse Location followed by a Fine Location. This is for the case where the user may be inside a building initially and unable to track satellites. After we get our coarse location we transition to a fine location to track satellites. This method has been working fine for several months. We recently upgraded to 1.5 and our mapping application, to my recollection continued to work.For the past couple of days we have not been able to get a coarse location and we are receiving a status message in the onStatusChange callback of.We have re- installed previous versions our code that used 1.1 and we are receiving the same status message of .TEMPORARILY_UNAVAILABLE. Other than the obvious description of the constant, we can find no meaningful information.

View 2 Replies View Related

HTC Incredible :: Volume Rocker Defaults To Media Volume

Apr 30, 2010

I don't know if it's from some app I installed or what. But I noticed recently that suddenly the volume rocker only controls the Media Volume or the In-call volume (if you're in a call), not the Ringer Volume. I don't have anything playing, so not sure why it's like that. I want it to default to ringer and I'll worry about Media when I'm actually in a program that uses it.

View 3 Replies View Related

HTC Incredible :: Volume Controlling Media Volume / Not Ringer?

May 5, 2010

My dad somehow changed his volume control, so it only affects the media volume. Any clue on how to change it back? Instead of Ringer Volume, it says Media Volume on the box that pops up when pressing the volume controls.

View 2 Replies View Related

General :: Devices Reporting Wrong Location After Location Spoofing

Mar 15, 2013

Recently all my android devices think they are in Spain when I am at home in Toronto.

I think this was caused when I ran a location spoofing program on only one of my devices, one of the locations I set it to was Spain (among others).

I've tried clearing the data for the Network Location apps, changing the SSID on my router with no luck.

The only way it shows the correct location is when I go outside and run Google maps long enough to get a GPS fix. But when I go back inside I am back in Spain!

The devices this is affectingGalaxy Nexus with my google account

Nexus 7 with my google account

Galaxy S3 with my google account

Galaxy S2 without my google account

View 2 Replies View Related

Android :: Specify Intervals For Location Manager To Broadcast Current Location In Android

Apr 2, 2010

Is there any way to specify the time intervals that the Location Manager broadcasts the current location?

I am using a method called startListening:

CODE:.....................

View 5 Replies View Related

Android :: Android Get Location / Prompt To Enable Location Service If Disabled

Aug 12, 2010

I've found bits and pieces of this answer scattered through other posts, but I wanted to record it here for others.How can I simply request the user's GPS and/or Network location and, if they haven't enabled the service, prompt them to do so?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved