How to find the mobile current location without using gprs? [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have created an android application, in which i have to find the current location of the mobile. For example using my application i have to find my friends current location.If i enter the mobile number the current location of my friend has to be shown in map.Its not necessary that my friend mobile to be smart phone. How can i track them using their phone number without using GPRS? Please help me.

You can get Location if you have Internet Connection(GPRS or WIFI), otherwise you Can not get Location, Because to get Location, your Phone need to communicate with (Google Maps) and then they get your Longitude/Latitude and then give you the facility.
If you need to check your Friend's Location, for that you need your Friend Latitude/longitude Information.
But you must have Internet Connection.

Related

Track user location through mobile number [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to create an application, when I enter any mobile number it should give me current location of that number.
Guys please help me if it is possible then tell me how it is possible ?
you cant get the location from cell number !!!!!
though there are some applications in some countries which they do something like this but the mechanism is different.
how they work is, user registers in their app and they use Cell Number as username for registering users. then this way they can tell you the location of other users by phone number. (you can just see users' location who registered in app)
since there isnt any way to get the cell number programatically so such system you want cant exist unless the user gives you the number and you verify it some how (sending code sms and etc) and thats what the apps i mentioned are doing.

How to Locate an android mobile in web [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I created one android application which will be used by multiple users, so I want to track the user's of my application using a web browser kind of application.
I Know about Android Device Manager which will track the mobile phone of google account. In this case i have to restrict my all user's to use same gmail account so that i can track all of them, But i don't want to restrict users to use same gmail for their personal mobile phone.
I am thinking is there any way by coding we can locate/mark the device on the google map of one particular account. say i have 10 user's my code has to locate/mark all these 10 users to Map of gmail account say xxx#gmail.com. is this possible ?
How to achieve this requirement? Need help!
Here you go,
You can ask users for location access rights and than keep tracking their location data (i.e. latitude and longitude values).
Once you have latitude and longitude values of all the users putting them in a google map will be a straight forward task using Google Maps API.
Hope it helps,

How to check if our location is near a petrol pump? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am creating an android app to detect the nearest petrol pumps. Can anybody help about how I should go about this?
You're going to want to look into geolocation to retrieve longitude/latitude based on where you are, and records you hold in a database (either on the device or online, read by the device at run time). You'll need geocoding on your database in order to convert physical addresses to lng/lat. This assumes you have a database of pump locations.
Some links on geolocation: Android GEO Location Tutorial
Geocoding: http://www.wikihow.com/Geocode-an-Address-in-Google-Maps-Javascript
Finally, you'll want to display pumps within a certain radius, which is mathematical: http://andrew.hedges.name/experiments/haversine/
If you're using MySQL to do this, use this query and modify for your needs: Fastest Way to Find Distance Between Two Lat/Long Points
That should give you the basics of what you'll need to implement. To get it all working together in theory shouldn't be too difficult, as identifying pumps in your database will be a case of supplying the lng/lat of current location, plus distance and pulling out/displaying results.

Suggestion for using Location Services in Google Map [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am creating a app that's going to show my location and some other devices location in the map. I don't know exactly the procedure needed to do this. I know I m gonna use Google Map V2 and location API. But not sure about what else I need. Can anyone please tell me the instructions abstractly?
All you need is the Google Map v2 and server might saved different people locations.Please Check this link.How to setup Map API v2.Also you should need a service which collects your location and sends to server which sends it to other devices and shows on map on other devices.
Why is the need of server here?
The application shows only the location of current device but you want to get the location of other devices which are using your app.So send every device location to server which collects it and store it.Now after certain interval of time send these location(latitude,longitude) to every device which is using your app and plot them on the map.
If you still have any trouble comment here.Cheers :)

find users with gps [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create an application that will show me on a map to all users who have installed my app within x distance.
It wondered if I need to save the coordinates of each user periodically in a database and read the position or is there another option
Tracking the user's location in a database will likely be your easiest option. It will also scale well. If you are only tracking a couple users, you could use another simpler data storage mechanism like an XML file, a text file, or even some sort of Application Level Variable.
I'm sure that you have done some research on how best to track your users, but this is a pretty good starting point, if you don't have one already. They are storing each location in a local database on the phone, so I'm sure that you could very easily modify it to send that same location to a web service or something.

Categories

Resources