Ok, so I am going to do my best to convey exactly what I am looking to accomplish. I have thus far completed some minor Java courses at school and working on some android tutorials.
I have access to a google map that has consistently updated information regarding conditions in an area. Is it possible for me to write a program that shows the map on this link and stays current? Can this be done without the use of webview? Or is that link going to be dynamic and change as the overlay does? Would it be possible to instead call upon the website then to utilize that specific area of the webpage that has the map?
https://www.google.com/maps/d/embed?mid=zEDHoFPoYHv4.kHYurQFY7s8s&hl=en
I am doing this all for self educational purposes, not looking to create anything commercial, other wise I realize I would likely want to contact the host and ask them for permission to use their data.
I've read through several of the Google Maps API information, but I can not find anything specifically that states I can do this.
By "have access to a map", do you mean that you have access to the map tiles? If so, you can add a TileOverlay to a base Google Map, which will download the tiles from your server.
Related
I want to create an app for a website that I don't own, like youtube or reddit. Every time I search for help, all I keep getting is how to create a webview. I've done that but that's not what I want. I want to take the website's content and create an app with it, like create my own buttons and such. I want to convert a website into an app.
I was thinking of somehow loading the website in the background and creating activities/buttons/intents that basically do what the webpage does but I don't know how to go about that or if there's a better way.
Thank you in advance.
Please let me know if clarification is needed.
Alright i got -3 votes for some reason and it has been 12 hours since i posted this question, i'm guessing the question has been consumed by the abyss of questions by now.
I made a reddit post and got some responses:
one user:
The term you’re looking for is “web scraping“ or “site scraping”. I think that’s probably what you need to research before you’re ready to handle how to make that into an app.
That’s a good starting point and once you have the content from scraping, making the app is no different than any other app.
second user:
If the website has a public (or private) API, you can use your buttons and networking calls to their API to build your client app. You are building a "YouTube client" in this case using the YouTube API.
If they dont have an API and you don't want to display their website, what you are doing is trying to reverse engineer their website and hijack the UI which is not a good practice and may even be illegal depending on the site and terms.
third user:
#second user is right on the money, but one thing I'll like to add is, the goal is to get data off of the website so that you can use in your app. An API is one (convenient) way of doing that but others are,
RSS or similar feed content (prefer this if there website supports)
HTML scraping
The above two will require you store the data somewhere else (and possible expose an API instead) because of technical reasons: you don't have access to older entries in RSS feeds and it's atrocious to keep on scraping everytime you need to access the website data. They can be done on the client (mobile app) but are best done on a server. This means you might need to get your hands dirty writing server code but you don't have to.
/thread
I'm going to do research on website scrapping and APIs to see which route i should go.
Hopefully this helped someone else.
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...
I'm new to building applications (so far made only one application ) . The question is - can not figure out whether it is possible to make parsing Google maps ? For example user clicks a button and he at around 100 yards displayed cafe . that is, Google determines the location of the user and is recognized all around the cafe (not on the map and the text on the page ) . Now try to understand how the geocoder, but not sure that I was going in the right direction . Are there any ideas what the library is connected properly and work with her?
I hardly understand your question, however, I should mention that there are two versions of google maps API for android at the moment, and those versions differ significantly. It's really sensible to use API v2.
You can find good tutorials on this topic, one is here, notice that russian and english versions of site are available.
whether it is possible to make parsing Google maps
If you mean getting geo coordinates on click event you can find OnMapClickListener class useful, see the tutorial above for help.
As I'm developping an application for hikers, I want to be able to store, somewhere in the device memory, the portion of the map where the user will travel. This is necessary because those places are generally out of any network reach.
Does anyone know how I can do that?
This is not alowed under the google licence so you should not even look at trying.
You could use another mapping source e.g. OpenStreetMap. There is an android Library osmdroid that I have managed to get to work. With this you can legaly cache the tiles. As for how to get them I have not implemented that yet but if the user looks at the area of interest first manualy it is just working for me.
Somthing cleverer will take more work but should be possible.
How can we match two images using Java. I want to make a face recognition application, that will store face of people at some location and then later will check whether a person is a member or not. If the persons face will match a pic already in database, then the person will be authenticated else not. Is there a way to do so.
check this thread for java related face recognition software. You will need to use the Java Advanced Imaging library, which is a pain, but it's doable.
There is a way to do so. It is a well studied research problem. It is called face recognition in a gallery-probe setup. You should perhaps read this article.