How to sync with gdocs and gtask in android? - android

I have a simple notepad and a to do list. I want to do a sync of the text with the notepad and gdocs (google docs) over net and also want to sync the to do list with the gtasks (google tasks). I know that this is into a simple task that can be explained in a single note, but please help me with some sample, code snippet and links that can help me start of in the right direction. Thank you.

Build a SyncAdapter (1, 2, 3)
Use google-api-java-client as an abstraction layer to talk to the google docs api.
Fill the data you find into an Android ContentProvider that stores your notes. The same ContentProvider is your interface to view/edit notes.

Related

How to build an autofill service in Kotlin?

I'm a newbie programmer and want to build an autofill service which populates the RemoteViews using Firebase Realtime Database for a personal Password Manager project. I followed the official documentation. However, I'm unable to understand the advanced functionality classes like the Auth class and PackageVerifier class. I also saw this answer, but this implementation is too basic.
My app stores usernames and passwords on Firebase Realtime Database. It would be of great help if someone could provide a guide to achieve the desired functionality.
It would be great if someone could provide a simplified guide. Thank You.
Here's a good guide, but it is limited. https://code.tutsplus.com/tutorials/how-to-use-android-os-autofill-framework--cms-28811

How to setup a mongoDB server and use it for an android application?

We are developing an android application that needs to communicate with a remote database, in order to sync some Strings. After some research it seems that mongoDB fits all the requirements.
However we are new to back-end and are clueless as to how things actually work. Google wasn't of much help as I couldn't find anything that explains this stuff clearly enough.
From my understanding we need a mongoDB and a REST API server. How do we go about setting these things up to use with android?
A step by step guide and a brief explanation as to what we need would be extremely be helpful.
You can go through following link and use step by step.I think it will be helpful.
Click here A simple CRUD application using Express and MongoDB

Google Fusion Tables- access data and insert data from android

I am trying to access one of my google fusion tables from my android application. I have a few doubts I would like to clearify (few problems as well):
I tried to query one of the public tables (for test) using this direct URL in my browser: https://www.google.com/fusiontables/api/query?sql=SELECT%20*%20FROM%201W-rjFNnEYYsfJiN2vR8m09XwGQqMQkBHbmRwpQ and faced no problem. Now I want to select all states that have a charcter u in it. (CHANGE) At this first job was to select names of states first. I tried this: https://www.google.com/fusiontables/api/query?sql=SELECT%20State/UT%20Code,India/State/Union%20Territory%20#%20FROM%201W-rjFNnEYYsfJiN2vR8m09XwGQqMQkBHbmRwpQ - I am stuck at this point. Can some body please help. This is a public data and can be viewed here. For this I have already looked at developer docs for querying fusion tables and developer guide for querying fusion tables
I am lost on how to access this data at my android side and insert values in it. Do I have to give public permission to my table? I have looked at developer docs for fusion tables. Do I have to make a REST Client for it and do it that way?
Also, inserting data from my app is problem. I have not tried anything yet in this regard, but have searched a lot and have not found any thing useful. Any link in this regard would do.
What happens after number of request increases the limit? Also, if I create an application using an API key, does the number of hits per user of the application or total number of hits by the application count? Also, what are the charges if one wishes to to increase the limits?
Any link or code in this regard is highly appreciated.
Thanks
If you want a simple way to test the API I recommend to use the Google API Explorer for Fusion Tables.
If you have column names with spaces in them, you have to use quotes.
-> See this example in the API explorer.
SELECT 'State/UT Code', 'India/State/Union Territory #' FROM 1W-rjFNnEYYsfJiN2vR8m09XwGQqMQkBHbmRwpQ
It's probably the easiest to use the already existing Java client for the Google API (there are also other libraries available). Check their Java example for Fusion Tables to get the idea how to use it.
You have to use OAuth to authenticate yourself (see the OAUth guide for "Installed Applications"). The above mentioned Java library also has OAuth support.
I already answered this one on another question.

Android and Google fusion tables

I want to build a map view with a google fusion table layer, bringing data from a public table. I'm searching for tutorials, infos ... Someone can give me some advises about how I can proceed? Thanks :)
here is my android app that uses fusion tables to sync it's data:
https://jedld#github.com/jedld/GiNote.git
The part where it also lets the user choose the google account to use and the retrieval of an auth token might also interest you.
The easiest way to proceed might be to use the App inventor Fusion Tables Control. It's quite simple and lightweight.
http://appinventor.mit.edu/explore/content/notready.html#FusiontablesControl
Otherwise here is a simple example app in Java
https://code.google.com/p/google-api-java-client/wiki/APIs#Fusion_Tables_API
Hope this helps.

Whats the best solution for a database used in conjunction with Maps in Android?

Could someone please point me in the right direction. My project involves a database where users enter their address and other info from my website. This database is then referenced in my android application to show the locations of these addresses in my database.
I have yet to start and just came up with this idea. My question is, what would be the best method to create a database easily modified through my website (mySQL, php, etc), and also easily referenced easily through Android and the Google Maps API? I need some ideas on the languages I will need to use to create this database and website so I can go buy the necessary books to start reading up.
Thanks so much
I believe the best way for you to go with this one is:
a database cache on the device
that means you can use XML if you don't have many complicated requirements from storing the address
or SQLite if you want to be able to query the database and do more fancy things
on the server side
if you only need to get the data from your server on the device, then a simple XML with a unique address per user should do it
if you need to push addresses from your device to the server then a REST system needs to be implemented
So, now you just need to figure out exactly what you need from your system and then start googleing on one of the solutions I gave you! Good luck! :)
Google App Engine would probably work for that. GAE supports Java and Python. Maybe use the Restlet framework (compatible with GAE) to implement a REST architecture.

Categories

Resources