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

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.

Related

Letting other apps (File viewers) to open encrypted file of from our app

I am working on an android app where users download files and those files will be encrypted (trying to implement this How to encrypt and decrypt file in Android?) in device. but currently my app does not have file openers to view.
So, I want to let the user choose any file app to open and read using Intent. Since, the file is encrypted, other apps might not be able to open those files. Encryption is to not let users share/show/see the files to anyone without using the our app. Is there anyway to let users use other apps and still encryption in place? Or is it correct way to do it?

How can i open a word file into my app which is stored in my google drive

I want to open a word or pdf file in my code that file must be stored on any internet resource because when I will change in pdf file or word file it will change it in all user's app.
I try to find many ways to resolve it but couldn't find any thing.
Thanks in Advance.
https://developers.google.com/drive/v3/web/integrate-open
You can integrate the google drive API. Please go through the link you will find details about how to integrate it into your system.

Open online document with Google Docs

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

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.

Categories

Resources