I have feature check newest version the application, if current version is lesser than version in server it will show dialog to update the application like this .
in above update, if i click copy link and download, it will copy url and open the browser,after that download .apk from url server i already setting.
it's work , but i want make it more efficient. I want if i click the button , it will download .apk from server and show the progress download without open the browser. How can i do this ?
Thank's
Play Store
It's not a feature currently available to my knowledge. In apps I develop, I can check the version number and block the user from using the app via a dialog, but provide a link to the Play Store, so they can update to the latest version.
However, Android 11 provides Inline Updates, which provides a more streamlined experience.
Check out In-App Updates
Android 11 as of this date is currently in preview. To use the APIs you will have to use a platform channel to call natively from Flutter.
Side loading
Check out Install Application programmatically on Android
You will have to use http to download the APK to external storage, then call these APIs via a platform channel.
Yes you can make it to where when you click a button, a file (any format including APK) is downloaded to the Downloads/Files folder of the user's device.
However, it is something that is handled by the server that is storing the files.
For example, if you tap on this link, it will automatically download a PDF file on your Android phone or on your browser, even if PDFs generally open inside your browser.
There is a few suggestions given here on how to do it, including setting "Content-Disposition: attachment" or "Content-Type: application/octet-stream"
Related
My website creates "presigned-url" to download files from Amazon S3.
In Desktop and Android this URL starts download perfectly using Chrome or other browser.
https://s3.sa-east-1.amazonaws.com/videos.cinemedsite.com.br/888888/888888_00000000000_20180808_235040.mp4?AWSAccessKeyId=AKIAJQCURENNFPNNGK6A&Expires=1609383840&Signature=4lYLxgkAIt3xMer%2FPcL%2FAepwbkY%3D
But with this same URL on iOS (iPad and iPhone tested), the video just plays in any browser and there's no way to download.
I've tried to download directly from aws console too, no success.
Metadata is already configured as :
content-disposition: attachment;filename=lixo.mp4
content-type: video/mp4 (already tried application/octet-stream also).
Any ideas ?
Thanks in advance!
Marcello
On iOS there is not a user accesable file systems with default download 'folder' as you have on a PC or MAC - i.e. you can't just click a link in the browser and have the file download to it.
With Apps like dropbox you van open a PDF file, for example, in your browser and then click the Share button and choose Dropbox to download to your device. 'Documents', another app available on the appstore, has a built in browser so is worth looking at also.
You can create your own application which will accept a URL, download it and then provide a list or directory of downloaded files. These files will only be visible by the app unless you add some functionality to save them to, for example, the gallery.
There is an AWS SDK available on Github which would be a good place to start if you are using your own app: https://github.com/awslabs/aws-sdk-ios-samples
We are working on an android app that generates PDFs based on app contents on users' request. We are providing an option to launch an email agent and attach the generate PDF, but we also want the user be able to view the document later at any time. On android, there are no stock file explorer, so our first thought was to show on the stock Downloads app's file list. We've tried the following two methods but without luck.
We firstly tried to save the PDF to the default download folder (given by calling Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS)) and invoke media scanner, but the file doesn't show up in the Downloads app's list. It's shown in Adobe Acrobat's local document list though.
After some research, it seems that the Downloads app would only show files that downloaded though DownloadManager, so we tried to generate the PDF in a temporary directory and call DownloadManager to download it, but, somehow expected, it complains that we can only download via HTTP(S), so this approach isn't working as well.
Is there any other solution?
well if you have to provide access to the document without any file explorer app, i think your approach is correct it to allow to store it in the Download lists. To achive this you can use Nanohttpd in your application to host your pdf document and then invoke the DownloadManager download action using HTTP(S) to your webapp (you will have to create a small webapp to handle the download request) hosted on localhost server.
Need help.
We have two servers that deploy the website. The website has a link that can download an .apk file to a mobile.
The problem is, when site is access in mobile using android 4.x, it downloads successfully on both server. However, when using android 5 (lollipop), it download successfully in one server but unsuccessful in another.
the mime type for both server is the same (application/vnd.android.packa..). Certificate for both server is ok also (although they have different issuer, which I don't think is an issue)
I also check the properties of the website, and its the same.
Is there are any setting in web server that I need to check or any security setting that makes one server download successfully the apk file while the other does not?
Appreciate any thought on this.
I am designing an web application that will allow applying for the jobs we post in our career page. The application will use responsive design and should make it easy for mobile users (iOS and Android initially) to upload their resumes. I read something about uploading files to Google Drive or MS Onedrive using their corresponding APIs. However, I am trying to do the opposite; browse files, select a resume, perhaps download it locally, and finally upload it to my web application.
Do you know if this is possible? If so, what would be your recommendation?
Thanks in advance!
First you can ask the user to authorize to use their Google Drive Data using OAuth2.0. The below two reference links from the Google Drive API will be useful
1.Get the list of filenames using the filelist option in the api and fetch the filename from the list https://developers.google.com/drive/v2/reference/files
2. Download the file directly to your server using the Downloads feature of the API
https://developers.google.com/drive/web/manage-downloads
I hope this gives you enough direction to proceed further.
I have a cloud storage website and I want to create an Android application for that website.
I tried 2 methods.
First Method
Using Phonegap to open a remote website which handles everything and its built-in PHP so everything works fine. But a Cloud Storage app must allow uploading and downloading. In Phonegap I can upload through the website but can't download directly to local storage. It can only be done locally if my website is in the local www folder. Also in this way API of Phonegap can't be used either. If I download any file the browser opens up, in this case.
Second Method:
I tried to use Phonegap locally and just create an API of my cloud storage website so that locally with the help of jQuery ,Ajax so that I can post data to the remote URL, but that can't be done due to the Same Origin policy. I may receive the JSON data of files and show but can't log the user in and other features. :( Again a problem.
What else can I do? Is there any other method or solution you can provide me regarding these two methods or any alternative method I can use?
Depending on the kinds of data you're talking about there are several alternatives.
You're describing a cloud storage app (I'm assuming like drop box or Google drive right).
Therefore you'll want to write to the file system instead of some kind of database (locally ofc)
I would therefore check out the following api docs;
http://docs.phonegap.com/en/2.1.0/cordova_file_file.md.html#File
Examples are there too.
PS ive had same origin problems in development, but they seem to go away in production, try testing there too.