It's possible to use Google Charts api in Android application offline? - android

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

Related

Is there a way to update the data inside the application? Without updating the entire application?

I'm trying to build an application, "Journal for Drivers".
I would like to add new information to the driver in this application. This information will be in text format (or text with images)
My question is, if I want to add a news update to the application, a news for drivers, can it be solved for example by some storage on a server, where the application automatically downloads this news? Or do I have to write the entire app in Android Studio and update the original version of the app?
There are three main ways to accomplish this:
You can create a webpage and use webview component to load this website in your application. In this case you will have full control on the data (backend) while you can change the ui of this webview on the fly without releasing new versions of your application. called also hybrid application (which is part native you still need to create apk with this webview) and web part which will be where most of your code exists.
You can create a native application which will be written in native only (java or kotlin) in this way you will need to release a new version every time you will change anything in your application. (including logic change or ui change).
You can create PWA project which will simulate a "native" application in this way you control 100% of the code and it will based on web. You can open a url on your mobile browser and you could "install" a mobile version of the webpage on your mobile device which will simulate a "native" application it also other platforms such as iOS, windows and Mac (if I'm not mistaken)
This can achieved via an endless number of strategies. One such strategy uses deep links along with an API for this. For this to work, you will need to set up an online server which will serve as a back end. This is where you will post your news updates to an endpoint or endpoints. This can be implemented in many ways. For example, you may just hardcode your updates to the html, or more likely you will store each article to some sort of db. When a user of the app goes to view an article, it will send an HTTP request to the server asking for the article. The server will then retrieve said article from the db, process it in whatever way needed, and send it back to your app.
Using this method, you only need to change your article on the back end (or better yet add your article to db and update a pointer that points to current article).

Simple Browser/Website web app mobile app/shortcut

I have a website/web app which I want to make available on mobile devices.
The website is responsive and can be used inthe mobile browser, but I want to make it available on google play / app store. My question is: how could I create a simple app that is actually a browser, which would run natively on the phone but load my web page in full screen?
Any simple solutions or frameworks?
Well there are different approaches to solve your questions I am trying to give you some rough idea with following two approaches.
Easy and simple one
1) Use web views and call home page url that's all.
For better performance.
2) Create a REST apis with only required data for your mobile app . And then use either web view or create your own views and show it to user . In this case if you create your native view then app will perform faster but development will take time.

Pass google search results (from widget) into my webview (Android)

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

A mobile app dictionary in android

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.

choosing right approch to implement google map in android

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.

Categories

Resources