I am developing an android app and I want three dropdown having country, state and city. How do I get the database for this? Is there any google api which could help me as in google maps, when we start entering address, it auto suggests the full address including city, state and country.
I found some companies provide this database but they charge a lot and I think there would be some easy way to do this.
You can take a look at this link for combining Google Maps Addresses with your Android app: Adding Place Autocomplete to your Android App.
Of course, you'll need to sign up for a Google Maps API Key.
Also, if you use the (free) Android Studio IDE, there is help for creating a sample app that uses Maps.
For a FREE listing of cities of the world, you can try these:
World City DB
MaxMind: Free World Cities Database
There's plenty of examples of this data being available free on the internet. Lots of developers need data like this, so other developers share their compiled lists online. They often even keep them updated via version control sites.
Just Google something like 'JSON list of countries'. Here's just one I found.
It's a very comprehensive list of countries, and every city inside each country. This data is in JSON format, which is quite easy to parse in Android. This post explains it pretty well
Related
i'm developing an app for android which is just like SofaScore.
but the point is that i don't have any API. also free APIs on internet have some limitations that makes them not suitable for me.
so i decided to extract data from live score websites. my questions are
is it possible to get live data from websites?
i just know java and android developing, in order to extract data,
should i learn a new language?
Why don't you just create a Mock-API with the structure and everything that you need, that would be more reliable in the long run!
Hi there I have managed to make a basic android app with all sort of puppy information for new owners. It has all the categories you expect like training etc. However I want to add a more advanced feature that as a new programmer I have no idea how to do!
I want to make an activity in the app so when they click it, or maybe just enter their postcode it shows up the local dog groomers within 10 miles, or maybe the local vet practices within 10 miles etc.
I have no idea where to start with this. I am not looking for it to be handed to me on a plate but does anyone have any basic guidance as to where to start etc.
If you are looking to use Google search, you can use the Google Places Android SDK. You will need to set up an API key. It's free for non-enterprise usage.
Other companies also offer similar services, such asMapbox, though from personal experience, the search results are not nearly as accurate as the Google ones.
I am creating an android app which will be used in Africa. My app is using Google map to show users the nearest businesses they are looking for. My question is, I want to know the district which the user is based on their GPS location (lat/lang). As you can see the attached image, Google knows the boundaries of the local districts (in this case Somalia). Do Google provide such information? or is there any other way I can do it myself. I searched online but couldn't find any useful information about this. Please help.
I'm very new to development and would like to create an app for an android TBS game that I would also like to build on later by developing a desktop application. I'd like to know how to go about storing user data in a secure way that would allow the user to be able to sign in on a possible future desktop application. From what I've read on data storage, I think what I need is to store a sheet containing fields for the user's email, password, username, and a class containing player specific stats on a web based service. How can I also take advantage of google play services to help me with this? Thanks in advance
You could start by looking into Firebase, a platform that was acquired by Google and has seen some great overhauls lately. It gives you free storage and database space (up to a certain level of usage of course) and works cross-platform for Web, Android and iOS.
Check out https://firebase.google.com/ for the docs and some quick-start guides as well as presentations from the latest Google IO: https://www.youtube.com/user/Firebase/videos
Android Game Services allows you to Store user data, to set achievements, to share informations with social medias, to make a leaderboard and to make a multiplayer game.
https://developers.google.com/games/services/
You should use them for cross platform purpose.
You can check Android Doc in storage options:
Data-Storage
If you want share in future the data with desktop, you will need the data in some online storage. Check Firebase, from Google, or Parse.
Firebase
Parse
Is it possible to get the user behavior on the phone (for example Alpesh has an Android phone and he uses multiple apps, browser YouTube etc). Whatever he is doing on the phone I want to get all those things from behind (which apps he has installed, which app he opens and what he search on the phone, All these data I want to get programmatically so what all can be get in android).
For now I am aware that installed apps list can be get easily but I want to get usage history and what he do all on mobile.
This is not a code solution, but an answer to your question, so you can get start some where.
In my opinion your question title are asking about two things.
(part 1) Getting User Behavior on the Android Phone (part 2)(App History, Browse
History etc)
1- First part Getting User Behavior on the Android Phone:
There is a concept called context awareness. Short described; it is about gathering different information from the phone, like light sensor, motion sensor, sound, location or even user behavior etc. and depending on your app requirement and the gathered information:
You could send these information over cloud data store for statically usage
You could make your phone doing (behavior) different things depending on location, motion or what ever.
etc.
For context awareness it is an open area for pervasive computing research. And it is not just few lines of code to write, it is typically a complete solution depending on requirement. Example I have built a context awareness application to gather noise collected by phones from different locations for research purpose inspired from this framework, but I am pretty sure you can find other frameworks or even build your own, as I did in my case.
The mentioned framework has some examples.
2- The second part is about App History, Browse History etc.:
This is possible, but you still need to build a peace of software (App) to collect all these information (logs) from the phone. Hereafter you can make phone act on different conditions and/or again send it over a RESTful API over cloud service data store, there is no limit for it.
The problem is, there is no thing out of the box for your requirement. Even if you find frameworks you still need to research it and further work on it.
You can find different examples for your requirement, like to collect browser history, you can find SO question here:
Get browser history and search result in android
Or get list of installed application:
How to get a list of installed android applications and pick one to run
My point here is you need to solve small goals at a time and put your knowledge together at the end.
Both 1 and 2 can also be related to each other, depending on your achievement.
Conclusion
Make a goal to your project.
Define the main requirements and tasks of your project.
Research your options (Technology, Cost, Target Audience, What data I can or I should not collect, what is possible to collect, what is the limits, Privacy issues etc.).
Split your project in small assets and try to solve small problems/goals.
Finally you would be able to put the puzzles together and build your final application
but i want to get usage history and what he do all on mobile
This is not possible and shouldn't ever be possible. Each app is sandboxed by Android so apps cannot inspect what other apps are doing. Think about it, you wouldn't want apps to be able to intercept private information such as banking details.
Every app is isolated from the other ones. Unless you develop a system signed app, you will not be able to gather all that data.
What you could do is to develop your own Android Rom where you then develop your data collection the exact way you want. Then you need to distribute your rom, which is another story...