photo

Can't create a folder in Gallery, external storage

為{幸葍}努か 提交于 2019-12-11 12:57:07
问题 I'm new in Android and I've follow this tutorial https://developer.android.com/training/camera/photobasics.html and I can't create folder in /storage/emulated/0/Pictures . private File createImageFile() throws IOException { // Create an image file name String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); String imageFileName = "JPEG_" + timeStamp + "_"; File storageDir = getPublicAlbumStorageDir("FileName"); if (storageDir ==null){ Toast.makeText(this, "Sorry no

Need to create photo slider using photo library photos in iphone

匆匆过客 提交于 2019-12-11 12:56:11
问题 I want photo slider like whts app has. It should access all the pics or some of the pics from in build photo library and it should be scrollable using scroll view. I have tried with different photo viewer but everything has memory issue. So not sure if anyone has it's working solution. Really appreciate your help. Thank you, Ankita 回答1: This is working almost fine, but one small problem with backbord direction scrolling. Just try this out may be you can find some direction to go and may be

Swift - How can I get a list of all photos and videos on iPhone?

℡╲_俬逩灬. 提交于 2019-12-11 08:25:21
问题 I would like to be able to view a list of both photos and videos stored on the user's iPhone so I can allow them to select the file for upload. So far, I have it working where photos show up in the list, but no videos are showing up. The code I'm using to display the photos library is the following: @IBAction func btnAddPicOrVideo(sender: AnyObject) { let pickerC = UIImagePickerController() pickerC.delegate = self self.presentViewController(pickerC, animated: true, completion: nil) } As I

User image upload to page gallery

六月ゝ 毕业季﹏ 提交于 2019-12-11 06:27:32
问题 I've been hacking away for hours in the attempt to allow a user to upload an image to a page gallery. The user(s) do not own and are not admins of the page. The user(s) is/are fans of the page. The app I have set up has all of the permissions set and I'm using the access key generated for it. I've returned the OG data to ensure I'm using the correct album id. Am I correct in thinking that this is simply not possible? Also is there an access key for the page itself that can be generated?

UIImagePickerController shows all text in weird capital case

假装没事ソ 提交于 2019-12-11 06:24:54
问题 I'm having an issue using UIImagePickerController, it works fine on my sample app and I've experience with this issue too. But for my current app, after supporting multi-language I'm having a weird issue. Image picker localization not working. That's not the main problem. The main problem is all the text is shown in capital case in a weird way. Please check the attached screenshot. This happens to iOS 8,9 and 10 all devices and simulator. I'm wondering if anyone can help me. Thanks 来源: https:

How to retrieve Someone's Avatar/Photo with agsXmpp

拟墨画扇 提交于 2019-12-11 06:12:25
问题 this is what I have so far: void xmppConnection_OnReadXml(object sender, string xml) { if (xml.Contains(XmlTags.PhotoOpen)) { int startIndex = xml.IndexOf(XmlTags.PhotoOpen) + XmlTags.PhotoOpen.Length; int length = xml.IndexOf(XmlTags.PhotoClose) - startIndex; string photoHash = xml.Substring(startIndex, length); } } I guess I can't undo the hash, but I want to the get a person's avatar/photo. How do I achieve this? 回答1: You need to handle the VCard events and responses from XMPP connection:

Android: How to capture multiple photos with the same camera intent

久未见 提交于 2019-12-11 05:38:57
问题 I made an Android app that takes photos one by one, stores them, gives a preview to the user, etc...all of these tasks are accomplished with an intent of type ACTION_IMAGE_CAPTURE . So, each time that the user wants to make a photo, he should click on the "take photo button" that starts an intent, and after having waited some seconds to start the camera, the user is able to take a picture; after that the photo is taken and accepted by the user, the camera closes and the picture taken is given

How to draw on a photo IMMEDIATELY after taking it, THEN save to storage

别等时光非礼了梦想. 提交于 2019-12-11 05:12:21
问题 I have searched around and found a few different solutions to this problem but none of them are really what I am looking for. I am developing an app that lets the user take an image by opening the camera via a MediaStore.ACTION_IMAGE_CAPTURE Intent as so... Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); And then saves the image with File photo = new File(Environment.getExternalStorageDirectory(), titleOfPhoto + ".jpg"); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo

How to apply all instagram photo effects in android

坚强是说给别人听的谎言 提交于 2019-12-11 05:06:51
问题 Hi Guys I am developing a similar app like Instagram, tumbler, Filker etc. But I stuck in photo effects actually I need photo effects like Instagram. I generated some new effects by the help of Color Matrix, saturation, image masking etc. But I am not able to get similar effect like Instagram have. Any know about instagram photo effects color matrix or other fectors which give me exact effects or any library which provide me similar effects. I want to include one thing that I create some

Access Photo Library via Objective-C/Xcode in iOS

无人久伴 提交于 2019-12-11 02:27:57
问题 I'm writing an iPhone application. I'm wondering if I can get a list of files/filenames of the photos stored in the iPhone library (or those in the simulator). Essentially, I'm asking if I can get the filenames of the photos stored on the iPhone or simulator. I appreciate any help, thanks! EDIT: image = [UIImage imageNamed:@"/Users/Library/Application Support/iPhone Simulator/5.0/Media/DCIM/100APPLE/IMG_0002.jpg"]; imageView.image = image; doesn't work, unfortunately. 回答1: You simply have to