Open online document with Google Docs - java

Does Google provides any API for open the online document(.docx) with Google Docs? if yes any materials that I can refer to? My idea is client can upload the document to the website then it can open and edit it by using Google Docs instead of download it and open with installed software.

Google drive has a REST API
the article on their site
You will be able to upload / edit files from the user and the user will be able to open them but I don't know if you can force open a document.
And if you use this API it would require the user to login in which may or may not be something you want.
Or you could have a look at google picker (found om the same link)
Create and open files using the Google Picker
Drive files can be opened from an application independently of the
Drive UI. An application can easily fetch and display a list of files
with the Google Picker as described in Open files using the Google
Picker.
Anyway: Do some more research on their site, you will probably get it done with Google Picker

Related

How to upload the PDF, XSL and TXT files in Google Drive

Hi I'm Developing the Android app to upload the file in Google drive, If the user to enter the gmail user id or already android gmail account for selection based on the user selection, How can i achieve the issue,
Please update the issue, Files are created devices itself and that file to directly upload the google drive.
You can use Google's Drive APIs, just follow the steps here and it should work. I am using it for a C# program and it works good.
Umm I see that there are no explanations on how to upload a file. Check this link after you complete the authentication and the other stuff in the first link, I think it might help.

Upload feature from Google drive & local

Is there a way to upload a file from Google Drive to Blobstore using a Google Appengine Form.
In have a user form which require attachment feature . The attachment can be a file from local or from google Drive .
It Would be nice if any Google Developer post a Java reference code
You can use the Google Docs Picker to select a file on disk or on Google Drive : https://developers.google.com/picker/docs/?hl=fr
For Google Drive files, you can download its on App Engine and then store into the Blobstore or Google Cloud Storage : https://developers.google.com/drive/web/manage-downloads
It's just reading file input stream and write file output stream where you want (but not on file system because it's impossible on App Engine for security reasons)
Relative to Google, there is no good reasons to use blobstore anymore so I advise you to use Cloud Storage.

How can I open doc and ppt files without any app installed in device in Android?

How can I open doc, ppt files without any app installed in device in Android?
I am developing a document to go and I would like suggestions on how can I open doc, ppt, pdf file without any app installed.
if you want a readable output for those files, you kinda need another app. To my knowledge, stock android doesnt have a way to read any of those files nativly.
if you can manage one app, kingston office i know personally can open those types(pdf is iffy)
https://play.google.com/store/apps/details?id=cn.wps.moffice_eng&hl=en
The other way i think is if you had an external interpreter that can make a web page out of it. Maybe using drive.google.com would serve for that, but i dont know how far the browser on your device can go with it.

Read data from google docs spreadsheets

In my app I have to show the details of a google docs spreadsheet.
In this spreadsheet I have 2 sheets. Each sheet details I have to show in 2 different activities.
Can anyone help me out to implement this functionality. What all things are required for this? I found one jar named jxl.jar. Should I use that?
For:
programmatically access and manipulate user data stored with Google
Documents
there is the Google Documents List API.
If you want to create/edit spreadsheets, you'll need to use the Google Spreadsheets API.
Both those APIs are part of the gData-API. The Java-client library s (.jar-files which can be used with your Android Project) can be downloaded here.

Use Google Docs API to download file of any type

Is it possible to download files of any type from Google Docs using the Google Docs API? (jpg, zip, txt)
I can figure out how to download word, powerpoint, and excel files but want to be able to upload and download any type of file to Google Docs. I know it is possible to do this with the online uploader but can't seem to get the downloading part to work with the API.
I'm using the Java wrapper to the API. Is it possible to use the Java version of the API to download all file types?
Since the last answer was written, that API is deprecated. There's sample Java code on the Google Dev page for the (newer) Google Drive API for managing downloads from Google Docs.
This handles a large variety of MIME types.
See this page http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html
and this for specifically downloading documents and files
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#DownloadingDocsAndFiles
The document listing XML returned by google has file type and the URL to download the file in the node. You can use the URL to download the file contents.

Categories

Resources