I am trying to develop a component of an app in Android Studio where it allows the user to input their zip code and the app will automatically determine the city and state, instead of having the user type it all in. With this information the app will help connect other users of the app in the same location. I don't want a map to show like a gps. Just have the app be able to recognize the zip codes and specify where the user lives.
Ex: If user typed 90210 and the app would convert it and identify it as Beverly Hills, CA.
If someone could help on how to code this I would greatly appreciate it!
You can use google maps API to get the information you want.
For Example: http://maps.googleapis.com/maps/api/geocode/json?address=94087
Please refer to this page for more documentation: https://developers.google.com/maps/documentation/geocoding/intro
Related
I want to put a link to a simple google search in my app. So if I search myself this is the link...
https://www.google.co.uk/maps/search/dog+groomer+near+me/#53.0725236,0.0423795,11.44z
It obviously has my coordinates in it. Is there a way for me to change it to a generic link so it automatically uses the users location?
You will want to use Android's location manager. This will allow you to get the user's coordinates (as long as they have location enabled on their phone.)
https://developer.android.com/guide/topics/location/#location
https://developer.android.com/guide/topics/location/strategies
It is up to you what you do with this. You can do a quick string replace and insert the user's coordinates inside the url. Or you could even include the google maps component into your app and have the results show up right in your app.
I'm interested in creating an access control app for a project in college. The app would contain a barcode/QR code to read the person identity when placed under a scanner.
To limit unauthorised persons from obtaining access to the barcode used for entry I was hoping to disable a person from taking a screenshot whilst in the app. Is this feature possible?
Thanks in advance!
Dear friend you have to do some tricky thing for this thing as you can't actually prevent user to take screenshot or getting the picture from another mobile,
so this thing is not gonna solve only by mobile side.
So whats the best approch for this?
According to me you should handle this thing with the help of server side communication store the expiry seconds in QR code data set like:
{
"id" : "some-user-id",
"ency-key" : "your-latest-key",
"expiry" : "60"
}
here your ency-key will be your latest encription key that you will get from server by using webservice or something like that. Now the tricky thing is that this key is only valied for 60 seconds (OR as per your requirement) after getting this key from server, server should refresh the key so if the unauthorized user will try to access the same code by storing in screenshot or photo, he/she will not be able to access the system.
Thats from my side :) hope this thing may help you
Answer for iOS: You can't actually prevent user to take screenshot, however you can find if user have just taken screenshot by observing UIApplicationUserDidTakeScreenshotNotification notification and then you can either delete such photo from gallery(if permission have been given) though this is not good at all or you can blur the image. but my point here is, even if you, somehow manage to prevent screenshot, how you gonna prevent user to take photo from other device?
PS. I am not sure if its possible in android or not.
Is this possible to achieve on iOS and Android with the least manual operation?
The user visit the web page W and W stores data D somewhere (in the device or the server).
The user install app A and A get D (from the device or the server).
I can only think two ways to indirectly achieve the same result:
W asks the user to copy D into the device's clipboard, and then A asks the user to paste D in the app.
W asks the user to write some random string X (and save the mapping from X to D), and then B asks the user to type X (and get D by sending X to backend).
Btw, after googling a while, it looks like current mobile browsers cannot access the clipboard, and W3C is just writing the draft of clipboard API (2014/09/18 http://www.w3.org/TR/clipboard-apis/ ), so using clipboard as a "hack" to pass data automatically is not possible currently.
We also struggled with this when we built our last mobile app, Kindred Photobooks. We actually created a native library for iOS and Android to do just this - give you the ability to pass data past install. The best way we found is to basically bundle that information in the link and use fingerprinting to make that data available after install, which is working really well.
You can try to build fingerprinting in in house as well - basically create an outstanding device fingerprint once someone clicks on the link and match it to the fingerprint that you create once a user
We automated everything and made sure all the edge cases work on both Android and iOS. Check us out at branch.io and if you are curious on how our links work, you can read more here.
I don't exactly what you want to do, but, you can for example, on the web page, ask the user to enter some info, and then you send to his email a code, then he can share that code with other people, and inside the application, you create a section, so user can enter a code. Using that code, the app makes an HTTP call to the server, and the response can be the info entered by the first user. Of course you are going to need a database.
I have seen some applications that display on a map the users who have the application in use or installed.
I'd like to implement something like this in my project, the problem is I do not know where to start ..
anyone know any reference I can read?
This is an image to try to explain what I want
Thanks in advance
Regards
When user installs app, get its location using GPS, send it to your Server save it there.
When you want to show map, get all locations saved on server and display it on map.
You can update user location each time application is launched, updated it on server as well.
I am currently writing an application which performs a search operation requested by the server at a pre-defined server location. Now , i need to integrate this application into the default Search that is provided on the Android Device i.e.. it should appear as an option for the user to perform his search ... like there are options to search the web , android market etc.. So , i should have my app also besides this ...
I am in a fix as to how to do this. Any suggestions, help of any kind , links to tutorials , articles are highly appreciated.
Thank You
You are in need of Suggestion Provider, you can explore this and if i remember correctly, the user needs to explicitly add your app to the search list. (It doesn't happen automatically)
http://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html