How to get map view location using mobile number - android

Is it possible to create android app to find map location using Mobile Number. As soon as the mobile number is entered the app prompts the user of that mobile number to allow access for finding his location.
If yes please suggest the possible ways of creating apps.
Thanks in advance

You can't get exact location from mobile number, because it is subject to mobile security that harm the government policy.
But you can get state name from mobile number, as i have seen on website so that using a web service and some another way we can access that data. Just check out this link.

What kind of access you can ask from just a mobile number? Ofcourse you can make a call to user's mobile by asking him/her for that, and then further more you can ask user to speak his/her location which you can parse at your end. Other than this I am not able imagine any permission. Also as #milind pointed out, you can guess few things like network provider and area from the mobile number, as they are allocated in a pattern. There are few vendors who provide this API as a service, one of them is Mobile Number Tracker.

Related

How to restrict users to vote only once without registration in android app?

I am new to android development so I need a little help.
In my app users can vote for posts but I don't want to make them register because app is very simple and that would be overkill. I want some another way to restrict users so they vote just once. If the method is not very accurate I don't care. In web development it's usually done using IP, is it the same for mobile apps?
Appreciate your help very much.
Every mobile device has a unique id which is called device id. you can use device id to restrict users or another option is to get the device MAC address of the device. MAC address is also unique so you can easily use it restrict users.
You can use an IP but for mobile users that won't work very well because their IP's are always changing. An easy way to do it would be to generate a guid in the app, and save it somewhere permanent (like the app settings). Then whenever you need to id the user just submit that guid to your webservice or whatever you are using. This is an anonymous id that you can then check against etc..

Retrieve a users GPS coordinates over a website

So I want to create a website for internal company use that allows a user to fill in a survey on a mobile device and upon submitting the survey, their GPS location is also submitted.
Is this possible to do? If so can anyone recommend the software to do it?
Assuming that you are using a Android App from your tag. You would want to pull the GPS location through a single update. Pass that to the webview through the URL parameters and then pass those along through the form submit.
If you are using just a webpage opened by a mobile browser on a phone I would suggest looking into HTML5 which has some handy resources. This however will only work on the more modren browsers and is not a 100% pinpoint location.
http://www.w3schools.com/html/html5_geolocation.asp

Can I get an Android device ID through a mobile website?

Is it possible to get a device's telephony ID, MAC Address, serial number, and/or Android ID through a mobile website?
That is, not through a downloadable app, but through a link that the user goes to in the browser on their mobile device?
If so, how?
No, this is not possible. Even for native apps, device identity information is safeguarded behind the READ_PHONE_STATE permission.
As websites cannot request permissions, you cannot retrieve this information outside of an app.
You said you need a unique(ish) ID on a website.
Look into UserAgents: http://en.wikipedia.org/wiki/User_agent which will tell you what kind of device/browser is viewing your webpage
And you can also retrieve the IP address of the user, which may change in future requests to your website.
You could also attempt to store a cookie, but the user may delete their cookies at any time.
For specifics on how to get these, it depends on what your web site is built with.

Retrieve IMEI number/ sim number/mobile number via mobile browser

Following is the scenario:
I have an web application accessible via mobile browser.
I need to detect a mobile device IMEI and sim IMSI whenever an user clicks on link in my app page accessible via web browser. This is to track the same device with same SIM and provide him/her next level of access. User cannot be tracked using loginid as there is no user login kind of option in my page.
The question is how to get unique device id/sim id via mobile browser for a specific mobile device.
For now I am focusing on android based mobile devices. But the target is to make it generic to devices.
Focus of most of the ideas is, what is the kind of access a browser has over the phone and its app?
From a browser link we can open a local app in the following way:
Get Details
here productcateory will uniquely identify a local app and invoke it. But its one way communication. How to get back some response from the point of invocation and populate some hidden form field dynamically.
Via webpage scripts we can store some data locally at client machine and retrieve it later. but the scope is limited and it is no way connected to IMEI or IMSI number.
Is there a way to get a hook to mobile browser app(remember it's like any other mobile application) from the webpage and get the id details via scripts in my page?
Is there any option that html5 provides in this regard? I know there is a localstorage tag in HTML5 and one can store an id in the client location and retrieve it later. But this is limited to the same device and same mobile browser and also this is a different solution to get the imei/imsi number
Let me know if there is any other option without asking user to installing a local app or browser plugin on the device?
~inkriti
For very good reasons it is impossible for the web browser to access the IMEI or IMSI numbers of a mobile phone, without some dastardly hacking that the dev teams hadn't expected.
Also the android browser doesn't support plugins.
Your only option is to create a native app. This answer has some info that will be useful to you: Programmatically obtain the phone number of the Android phone. Its not a perfect solution however.
I would also ask why you want access to the users phone number? If its just to track session just use javascript to generate a unique id and store it in a cookie.
The original issue is probably closed, however for future reference of anyone (like myself) that comes across this question would be something like 2-factor registration with confirmation via text. The closest to getting an IMEI (impossible without native apps) would be to get the user to register and include a text confirmation - the mobile phone number in most cases will be unique, only non-unique when changing devices, and some assumptions can be made from the client-side to guess what device they have, you could even go a step further and ask them to identify the make/os of their device if you were that concerned about unique-ness. However in most use-cases a mobile number confirmation will do the job
The only reliable way is to write an app and have it send a SMS and then track the number on that end; assuming the subscriber has SMS/text service enabled. This won't work on non-phones (tablets).
It is not important, nor is it necessary and it is probably illegal to track the device (IMEI); simply track the subscriber.

using andorid apps with wi-fi with paid providers which require log-in

You know there are internet providers that require log in though a website. Most common examples are the coffee shops, or airport points, or hotels.
It's ok for your laptop because you can use a browser and you are done, but what if you wanted to use your android apps in your phone? how you set the auth data to them?
does anybody knows an app which will allow me to do that? e.g. set the needed auth to let the rest of the apps run without a problem.. I'm thinking of a proxy but not sure if it is what i need here..
thanks!
The way those authentication points work is that most traffic through the access point are dropped until the user opens their browser. The browser's HTTP request is ignored and the gateway page is displayed instead, and once the user accepts the terms of service, or pays, or whatever, the packet filter is disabled for your device.
This means that an app that's authenticated to the hotspot can run any kind of application over the network without the application being aware of the hotspot's specific security model. However, it does mean that you'd need to put a browser in your app and use some fairly fuzzy logic to determine when to show it.
Most of the time, the user will know when he or she is using this type of provider and will know to login through the android browser first.

Categories

Resources