photo

A “Before And After” Image Comparison Slide Control in Android

廉价感情. 提交于 2019-12-21 04:23:11
问题 Is there a possibility to build a image comparison slide control in Android as one that exists in HTML 5? http://thenewcode.com/819/A-Before-And-After-Image-Comparison-Slide-Control-in-HTML5 How can I achieve this thing? 回答1: I have created library for this functionality, may be someone who steel need this feature,it will be good for them. compile 'com.github.developer--:beforeafterslider:1.0.4' 回答2: One way is using a seekbar and a framelayout that sits on top of the original Image. As you

Get gps location of a photo

社会主义新天地 提交于 2019-12-21 02:54:16
问题 I know how to get the current GPS location of a mobile phone. I also know how to save the GPS location to the photo when you take it. (Camera option Samsung galaxy s2). But how can I get the GPS location of that photo (later)? When I open the photo on the computer, I can see the GPS location data, but got no idea how to extract them later in android. So could someone put me in the good direction? To make question more clearly: How can I get the GPS location of a photo that is already taken?

detect if contact has photo

会有一股神秘感。 提交于 2019-12-20 21:23:34
问题 I've got an ImageView which I'm displaying a contacts picture using a Uri which always looks similar to this: content://com.android.contacts/contacts/34/photo How would I be able to detect whether this photo exists, as if it doesn't then I want to use a placeholder instead (stored in my drawable folder). At the moment it just shows a blank image. 回答1: a function to get a contacts photo uri: public Uri getPhotoUri(Integer contactid) { Cursor photoCur = getContentResolver().query

How to open camera then switch to Image mode (vice versa)

那年仲夏 提交于 2019-12-20 07:35:45
问题 In my case I want to take photo or capture video, actually I can do these if I create separate intents. I mean I can open camera as image mode or video mode but can not switch between them. Is this related to intent filters which I use? What should I do? How do I switch between them? 回答1: I had the same problem. I did a surface view and an Activity for a photo camera after I thought put a button to record a video in the same Activity with the same surface view but I don´t know if it was

how to enable preview after selecting picture from library?

£可爱£侵袭症+ 提交于 2019-12-20 06:30:23
问题 I am trying to write an app which involves picking a picture from either camera or library. Once the picture is picked , I want to show the preview of the picture.It happens by default when camera is opted. Once the photo is clicked, it shows the user to choose or retake. But I want the same to be done when the picture is selected from the photo library also. Can this be done?? 回答1: Ok thanks for the response. Here is what I did: Subclass UIImagePickerController . Upon picking an image, I am

How do I display a contact's photo from the contact's id?

为君一笑 提交于 2019-12-20 04:15:09
问题 This code (within my CustomAdapter class) displays only the contact id based on the who sent me text messages and puts them into an ArrayList, then displays the list. I have a ImageView called holder.photo next to each contact id. How would I go about displaying the contact's photo in the in the ImageView? String folder = "content://sms/inbox/"; Uri mSmsQueryUri = Uri.parse(folder); messages = new ArrayList<String>(); contactID = new ArrayList<String>(); SMS = new ArrayList<String>(); try { c

Upload photo to users profile from photo URL, not input file field

被刻印的时光 ゝ 提交于 2019-12-19 10:30:49
问题 I have been through many of the file upload examples, but have not found a method to force the photo for the user to publish. This example shows how a user uploads the photo from their computer: http://developers.facebook.com/blog/post/498 I would like to use this method, but replace the [file input "browse"] field with the image URL so that the user would see it displayed, and the app would post it to their profile when they click the submit button. Any help would be greatly appreciated. 回答1

How to post photos to facebook iphone fbconnect

穿精又带淫゛_ 提交于 2019-12-19 05:09:41
问题 Hi I'm using FBConnect to post to facebook, now I need to post photos from library or taken with the cam, does anyone has a clue how to do this ?? I've searched in google but I can't find a piece of code that works for me. I've found this method: FBRequest *uploadPhotoRequest = [FBRequest requestWithDelegate:self]; [uploadPhotoRequest call:@"photos.upload" params:args]; but in my fbconnect i have this one instead: (I think the version of the api is different) [_fbRequest call:(NSString *)

Save a photo to the camera roll and make sure it actually saved

前提是你 提交于 2019-12-19 04:22:34
问题 I am currently saving a UIImage to the camera roll this way. UIImageWriteToSavedPhotosAlbum(finalPicture.image, nil, nil, nil); But what happens if the user denies us permission to access their photos... how can I tell that this has happened and display an error message? 回答1: To save the image to the camera roll I'm Using ALAssetsLibrary so in the method: //Called after taking the photo with the camera or selected the image from the gallery - (void)imagePickerController:

Save a photo to the camera roll and make sure it actually saved

泄露秘密 提交于 2019-12-19 04:22:19
问题 I am currently saving a UIImage to the camera roll this way. UIImageWriteToSavedPhotosAlbum(finalPicture.image, nil, nil, nil); But what happens if the user denies us permission to access their photos... how can I tell that this has happened and display an error message? 回答1: To save the image to the camera roll I'm Using ALAssetsLibrary so in the method: //Called after taking the photo with the camera or selected the image from the gallery - (void)imagePickerController: