I am planning to create an application in android which has following features
Show Source to Destination Route
Show Reverse Route
Show Traffic Data
Show alternate Route
Store user data
apart from that i want to use some android native controls such as image button , textbox , dialog over the map.
Now after reviewing this link i am bit confuse in choosing the approach among
Google Maps API V3 in the Browser
Google Maps API V3 in a Browser Embedded in a Native Application
Native Google Maps APIs
Can anyone please help me out in choosing the right approach ?
Well, there's no simple answer to that. Every approach has its pros and cons.
Now let me state few insights that might help you in your decision (based on the idea that you want the map as a part of a native android app, not just a html5 app - correct me if I'm wrong):
You need to store user data.
If you want to store the data in the app, then I guess you can leave out the first solution. It would be very difficult (or even impossible) for you to properly maintain your data with map in a browser. The best way to maintain data is then to directly communicate with a server from the webpage and store data on the server (so you need a server backend). You can also pass some data from the webpage to an activity by registering an intent filter for your own url schema.
You don't have such problems using approach 2 and 3, where you can use android code (if you are embedding the map in a webview you can access android code by binding javascript code to android code).
You want to use android native controls.
Now you can also leave out the 1st solution, you are using browser controls there. In the 2nd solution, you can use both (the map needn't fill the entire screen and you can also place controls over the webview).
Google Maps API v3 is frequently updated and currently much more comfortable than native API. Native API wasn't much updated (not sure if it was updated at all) since Android 1.6.
From these 3 points I would prefer embedding Google Maps API V3 in a webview. Of course, I might have missed some important features of your app.
Related
hi guys i am constantly updating my website and i want all the stuff i update to appear in my app. so i don't have to make a new ".apk" update every time i add new stuff to my website.
would i use some sort of site scraping method?
what i would like to do is as new stuff gets added to my website it automatically pushes it to my app in some way
could some one at least point me in the right direction as i have only just got my head round setting up my website. please be nice and if u don't think this is worded right I am sorry.
An idea is to organize all your resource data in a REST web services and both website and Android App to get data from Web Services. So the data will be kept in one place (one place to do the updates) and be viewed from different platforms in your case a Web site and an Android App. However this is a very general architectural solution.
If you add a WebView to your application and point that to your website the application would always fetch the latest version. I think this would be a quick and easy option for you. Link to documentation: http://developer.android.com/reference/android/webkit/WebView.html
This would though require an internet connection for the user every time they use the application.
Here is the guide to web view API's https://developer.android.com/guide/webapps/webview.html
i'm working on Android app to make graphs with Google Charts api. So my question is, it's possible to create these graphs without connecting with Google.com?
There is no way using Google Charts because thier page are loaded dynamically!
Can I use charts offline?
Your users' computers must have access to http://www.google.com/jsapi in order to use the interactive features of Google Charts. This is because the visualization libraries that your page requires are loaded dynamically before you use them. The code for loading the appropriate library is part of the included jsapi script, and is called when you invoke the google.load() method. Our terms of service do not allow you to download the google.load or google.visualization code to use offline.
Source : https://developers.google.com/chart/interactive/faq#offline
I have created a WebView app for my android device, but I have come to a brick wall. Can anyone help.
I am trying to get Google search results from the Google search widget, passed into my Webview ?. so basically making my Webview app the native browser for my phone. is this possible ? can anyone point me in the right direction
(image of Google search widget)
I have searched all over the web, but all I can find is,
making links stay inside the Webview. But I have already done this.
How to create a Google query
I have already done these (with succession) all I need to know now is, pass Google widget results
into my Webview. fairly new to app development, but I'm learning.
You need to use google Data APIs or GDATA api.
Check this link. Select the proper api you need and read its documentation on how to use it.
You can also check the google api - java client for android or gdata -java - client
The documentation for google web search can be found here.
Hope this helps.
Use this api from google to get results
http://google.com/complete/search?output=toolbar&q=football
I am trying to creating an android dictionary app. But instead of using a database of words I am trying to leverage on the Google Custom Search API. so when the user of my android native app enters a search word in english. My native android app goes to the web and uses the Google Custom Searhc Api to get the result. But I dont know how to communicate with Google Custom Search API from an android app. Please any link. I have been search but not gotten any use one
https://developers.google.com/custom-search/json-api/v1/using_rest
I believe, this can be a good start for you. You need to use asynctasks to do your request, and the rest is up to your imagination and skills.
Sorry if I sound too naive.
We intend to develop a native app using Phonegap and Sencha Touch. One of the requirements are to have a Sat Nav feature in where you could give a post code and it will guide you to there. However, I assume that feature is too costly to develop at it's own and would also mean we would be making a wheel of our own. The thought is and this is the actual question, if we could invoke Android's native Sat Nav (that comes built-in) from our app.
If anyone can help, I will be grateful, also if you guys have any other ideas, kindly suggest.
I don't think there's any way of doing this using the built in Google Maps application, and I'd avoid using it anyway (it doesn't have offline map storage, so if you drive into an area with no mobile coverage you lose navigation). But there are a couple of APIs you can purchase to do this kind of thing: http://www.copilotlive.com/uk/enterprise/ and http://www.sygic.com/en/business:buy-now both appear to be able to do what you want.
If you mean launching the Google Maps app with directions, look here
https://stackoverflow.com/q/2663565/984393
Basically you send a request in the form of an Intent for android to star the maps application.