Display message in a specific Address - android

A message should display when I'm entering a specific address except address number for instance "Kristian Augusts gate
0164 Oslo".
When I walk to the address and suddenly my gps phone discover that I am located at "Kristian Augusts gate 0164 Oslo" then message should display
How do you create such a functionality? Any advice or tutorial?
Thank you!

First, you need to use a GPS service. You can either do it using Android API or Google Play Services API. The latter is a little more complicated and resource-intensive, but will provide more reliable location methods and callbacks.
Get location using Google Play Services
Then, when you already have the longitude and latitude you can easily get the address associated with that coordinates.
Get address from coordinates
Then you simply check if the current address is the same as the address intended to trigger the message and display it, using an AlertDialog, Toast, system notification or whichever method you need.

Related

How can i get my address without using GPS in android?

I want to make app without use of GPS, and my app is using user's address. so for that i want any idea of getting address without GPS. I want address, not latitude and longitude. Geocoder can be use for getting address but its again using GPS. Please provide solution for my question.
without GPS you can not find address
Get the user to manually enter their address. or bite the bullet and use geo-coding.
EDIT:
you have 2 choices:
1) Use lat/lon and geo - coding to determine the address
or
2) User manually enters either lat/lon or address (which will not go down well)
1) You can get IP address by either $_SERVER['REMOTE_ADDR'] in PHP or using some external JavaScript application, and then pass it to some API like freegeoip and then pass received coordinates to Google. It's quite easy, but it's not reliable solution - it can be very accurate or totally inaccurate.
2) (preferred, but needs permission) You can ask user for with HTML5 Geolocation for his location and it's much more accurate (and then pass it to Google Reverse Geocoding)

How to send latitude and longitude to webservice in android without internet?

I have an idea of making an app in that truck drivers are there with GPS,SO they will get latitude longitude without internet,there will be an admin panel which can track the truck driver's location and location history,So My question is that the truck drivers will only having a GPS enabled Android device (WITHOUT INTERNET),SO how can the admin will track their location? Please suggest me for it .
I suppose you could try SMS messages, though, it might become rather expensive if the re-fresh rate for the location is high.
In simplest solution you would have a mobile device (you need to find one which incoming SMS you can fetch to the PC, might require some internet searching time) with normal number for receiving the SMS messages, or you could see whether you could get Operator service numbers (see whether using free-to-send number would be cheaper) and then get the data from the operator.

Do "x" based on GPS location or manual address (android /iDevice)

So I know next to nothing about GPS and Apps, but I do want to get my feet wet and have a (simple-ish in my mind) idea for a simple app based on GPS or manual address.
I basically need to know if you can do something like this
if GPS Location is (11.111/22.222) { Show(**THIS STUFF**) }
or if manual address is (555 Main St, Salem, OR) { Show(**THIS STUFF**)}
in android or iphone
You can. It's considerably more complex than that. And there are apps for both platforms that do exactly that. A quick search of Google, Apple Store, and Android Market will tell you what the current apps for that are.
If you want to do this yourself you will need to learn some new concepts. Geofencing (geographic buffers). Geolocation (address to coordinate conversion). And read up on how to efficiently use the location services provided by the devices you are writing for.
You should use android location api for GPS Location, and check in the onLocationChanged() method : if(myLocation.getLatitude==11.111 && mylocation.getLongitude==22.222)
On manual adress You should use android maps api.

Android: Changing coordinates into name of location or places

What i have: currently my app only receives latitude and longitude based on user input (user inputs the Latitude and Longitude of the preferred location)
What i want: my app to receive the name of location as user input..
How can i go about doing it?
Must i use database? Any preferred links(for tutorial)?
Thank you in advance.
reverse Geo-Coding is very good, but you can only use this feature with Wifi connection. If your device is connect via Mobile Data connection (3G,EDGE), this service will not work.

How to retrieve the GPS location via SMS

I made an Application that gives me the location of my Android phone.
Now I want to make a method that helps me to retrieve the GPS location of my phone (latitude longitude or the address if possible) with an SMS.
Exemple: phone number 558899.
I send an Sms with "get location" to 558899 an get a message back with the coordinates.
this may help:
"Capture" incoming SMS:
http://www.codemobiles.com/forum/viewtopic.php?p=95
Send SMS:
http://www.anddev.org/how_to_send_sms-t552.html
Edit: Dead link. I don't remember what exactly was in it, just like Google's cache and Internet Wayback Machine. Following link should have some info on topic:
http://lamiaamb.wordpress.com/2012/03/19/android-capture-an-incoming-sms/
Use the Geocoder class. Pass it's getFromLocation() method the longitude and latitude and the maximal number of results you want to get returned. You'll get a List of Address objects.

Categories

Resources