file-sharing

Sharing the Realtime Documents

橙三吉。 提交于 2020-01-17 06:10:09
问题 I have created a playground application. I see that it creates shortcut files in my google drive. I tried to share it with incognito (because I want the doc to be available to anybody and do not know how to create another google account, so I log out into incognito). The shared link looks like https://drive.google.com/open?id=0B00--A0eRH1JLTdsX2t0LWw5RE0 . But, incognito fails to view it. It says that "No preview avaialable" in what is supposed to be its google drive window and offers the log

Use UIActivityViewController to share all types of files

蓝咒 提交于 2020-01-11 04:12:07
问题 I want to use UIActivityViewController to share files from my iOS app. The main question for me is how do I handle different file types. What I'v got so far: Images public void OpenInExternalApp(string filepath) { if (!File.Exists(filepath)) return; UIImage uiImage = UIImage.FromFile(filepath); // Define the content to share var activityItems = new NSObject[] { uiImage }; UIActivity[] applicationActivities = null; var activityController = new UIActivityViewController(activityItems,

OS X El Capitan – File Sharing Restrictions

不想你离开。 提交于 2020-01-06 19:31:50
问题 I've got two iMacs running OS X El Capitan. I have setup iMac #1 to share a folder named "Jobs". iMac #1 has a group I created in Users & Groups and myself and my employee are added to that group. I used Get Info on the Jobs folder to set permissions so the group has Read & Write privileges and had it set the same to all enclosed items. From iMac #2 my employee can mount the shared folder and open files and write files, but if he creates a new document or creates a new folder it does not have

Sharing file in Oreo not working

江枫思渺然 提交于 2020-01-05 07:05:14
问题 I'm trying to share an audio file in Oreo. If the file is in internal storage of the device, it runs fine but if the file is present on the external storage it crashes giving this exception - android.os.FileUriExposedException. How to solve this problem: public void shareSong(SongInfoModel songInfoModel){ Uri uri = Uri.parse(""); File f = new File(songInfoModel.getData()); if(Build.VERSION.SDK_INT<=Build.VERSION_CODES.N_MR1) { uri = Uri.parse("file://" + f.getAbsolutePath()); }else { uri =

File hosting to track total downloads of a PDF

人盡茶涼 提交于 2020-01-05 04:40:28
问题 I am looking for a web service that will allow me to upload a PDF and can track the number of times it is downloaded regardless of the source . I am aware of Google Analytics event tracking on my site but the issue here is that I need to give the file path to a number of partner sites and would like a centralized place to view total downloads among all partners. A breakdown of downloads by source would be awesome but not necessary. I can't rely on getting numbers from all of the partners as

Delete a file just after it is shared in android

泪湿孤枕 提交于 2020-01-05 03:46:27
问题 I'm sharing image file to WhatsApp. Whatsapp can't read private file so I saved it into public directory. I want --> when a user shares the image it should be deleted from the storage. try { String uniqueName = System.currentTimeMillis() + ""; File tempFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "ABBM-temp"); if (!tempFile.exists()) { tempFile.mkdirs(); } tempFile = new File(tempFile + uniqueName + ".png"); FileOutputStream fOut = new

ios file sharing/sync to devices from mac/pc

心不动则不痛 提交于 2020-01-03 04:18:07
问题 I have developed the ipad app which displays images and other product details from sqlite db. I have also developed .net based windows application which resides on Windows xp pc. This application generates data in sqlite db and also map each record with related images. This flow is working fine till now with itunes filesharing feature enabled. So the user copy sqlite db and images(around 2-3 gb) to iPad through itunes file sharing. Recently I came across Bonjour service which is used to

How to send/open email attachments from android app?

痴心易碎 提交于 2019-12-29 08:09:06
问题 I would like to somehow send a file from my app on one android device to my app on another device. This can be done any which way, and I'm open to suggestions if you can tell me how to send over network or something like that. Currently, I'm looking at sending the file as an email attachment, but I haven't found any good documentation on how to do it. I need two things to accomplish this, be able to send my file (stored on sd card or somewhere on device) as an attachment, and have my app

File Provider: Failed to find configured root that contains

元气小坏坏 提交于 2019-12-24 10:36:38
问题 I am using FileProvider to share media to other apps with the following code : Intent shareIntentt = new Intent(Intent.ACTION_SEND); shareIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); Uri contentUri = Fileprovider.getUriForFile(context, "com.app.tst", csOrignalFile); startActivity(Intent.createChooser(shareIntentt, getResources().getText(R.string.share))); Here is my provider under <application> tag in manifest : <provider android:name="android.support.v4.content.FileProvider"

How to create a server accessible by an iphone app

╄→尐↘猪︶ㄣ 提交于 2019-12-24 00:55:17
问题 I a thinking of creating an iPhone/iOS app that would include a feature where one user could create a list of words and then save them to their account on a server. Also (and this is very important), the user could share their list with other users by giving them permission. So my question is, how can I go about creating such a server? For right now, I have a home computer (running Windows XP that just stores data for my music system) which I can use to host the server. I am also open to the