file-sharing

share a photo in instagram

落花浮王杯 提交于 2019-12-02 07:27:02
i'm developping an app and i'm trying to share a picture in Instagram . i'm using the code below : Intent i = new Intent(Intent.ACTION_SEND); i.setType("image/jpeg"); i.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///"+savedPhotoPath));//savedPhotoPath is the path of my picture stored somewhere in the sdcard startActivity(Intent.createChooser(i, "Share Image")); the problem is that the instagramm is launched with the home activity,( i want to have the activity of share that picture to be launched ). i've tried to put the extras like this : i.putExtra(Intent.EXTRA_STREAM, new File

Use UIActivityViewController to share all types of files

梦想的初衷 提交于 2019-12-01 02:15:21
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, applicationActivities); if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) { // Phone

Attach a photo to an email from my iPhone application

人走茶凉 提交于 2019-12-01 01:46:51
I have an iPhone application that picks a photos from the photo album built in App. Now I want to add a sharing button with an option of sharing this photo by email , I can attach an existing photo through this code : MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@""]; // Set up recipients NSArray *toRecipients = [NSArray arrayWithObject:@""]; [picker setToRecipients:toRecipients]; // Attach an image to the email NSString *path = [[NSBundle mainBundle] pathForResource:@"project existing photo" ofType:@

Attach a photo to an email from my iPhone application

我的梦境 提交于 2019-11-30 20:30:44
问题 I have an iPhone application that picks a photos from the photo album built in App. Now I want to add a sharing button with an option of sharing this photo by email , I can attach an existing photo through this code : MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@""]; // Set up recipients NSArray *toRecipients = [NSArray arrayWithObject:@""]; [picker setToRecipients:toRecipients]; // Attach an image to

How to share files between 2 local ios apps without url scheme or external server?

浪尽此生 提交于 2019-11-30 09:45:43
I have 2 local app "A" and "B". I want that the application "A" call the application "B" and "B" send a response to "A" with a file. Url scheme is a good solution to call Application "B" but it's a bad solution to send files to "A". How do I send a file from one application to another without url scheme and without external server ? applefreak Other than URL option, you have an best option to use iOS keychain . See this article . There are couple of other options mentioned here . Another option is to use iCloud APIs. One more, copy-paste data between Apps using UIPasteboard . BTW what's the

How containerURLForSecurityApplicationGroupIdentifier in NSFileManager works on iOS 7

坚强是说给别人听的谎言 提交于 2019-11-29 12:49:33
I want to share file between multiple applications in iOS environment. I'm already using the UIDocumentInteractionController mechanism to achieve the purpose but I'm facing a problem because the hight volume of data to exchange between the application (around 2Go). I'm using the ZipArchive library to gather all the shared files, but it does fail in some case to create the huge zip file. I've tried to send a directory instead of the file, but the content is not copied. As I'm upgrading to iOS 7, I'm trying to make the new available containerURLForSecurityApplicationGroupIdentifier method in

How to send/open email attachments from android app?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 12:44:41
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 recognized by android as the app to open an attachment with the file extention (.lst). Any thoughts? The

Vista UAC - Trouble Mapping Network Drives

戏子无情 提交于 2019-11-29 04:19:34
We have an application that programmatically maps network drives. On Vista with UAC on, we get some strange issues. Our application maps the drive non-elevated, so if the user browses explorer and double clicks to run an exe, it prompts for UAC. So when they approve it, it prompts for a username/password for the share... Strange since the credentials are saved. It turns out, an elevated process cannot access a mapped drive that was mapped from a non-elevated process. To see this issue in action, do the following steps: Run cmd.exe with no UAC Run "net use w: \yourHostname\yourShare /user

How do I access a file share programmatically [duplicate]

泪湿孤枕 提交于 2019-11-29 02:07:30
This question already has an answer here: Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials 10 answers I have a windows forms app running on a machine that is not on a domain, that needs to be able to move a file from the local filesystem to a UNC path. I have a username and password for that path. I was wondering is there any way to do this directly with out execing the net.exe command? Ideally I wouldn't have to map a drive. Donut The accepted answer on this question here seems like it would be worth looking into; it suggests using the Win32 API function

How containerURLForSecurityApplicationGroupIdentifier in NSFileManager works on iOS 7

血红的双手。 提交于 2019-11-28 06:23:38
问题 I want to share file between multiple applications in iOS environment. I'm already using the UIDocumentInteractionController mechanism to achieve the purpose but I'm facing a problem because the hight volume of data to exchange between the application (around 2Go). I'm using the ZipArchive library to gather all the shared files, but it does fail in some case to create the huge zip file. I've tried to send a directory instead of the file, but the content is not copied. As I'm upgrading to iOS