Android :: Intent Selected_alternative - Display A Picture
May 23, 2009I created an Activity that I would like call when user wants display a picture.
I found a lot of source code as below:
CODE:.................

I created an Activity that I would like call when user wants display a picture.
I found a lot of source code as below:
CODE:.................
I have an Activity for my application to take pictures and store them with a content provider. The problem is that obviously I would like the picture to auto rotate depending if I have my phone in landscape or not and I would like to use the autofocus feature. So I'm wondering if I could just call a Camera app intent and get the URI of the picture taken. is that possible? I remind reading that it will only give me a small size picture.
View 3 Replies View RelatedWhen I take a picture with Androids camera app, it detects the phone's orientation and saves the pic accordingly. So if i take a picture of a building, the roof will be on the topside, whether I hold the phone in landscape position or portrait.
However, when i use
Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
to get a picture, the camera app doesn't react to orientation. If i hold the phone vertically (portrait), the resulting pic will be rotated, with said building's roof to the left of the screen.
How can I set the intent so that the camera will take orientation into account? Or can I deduce in some way in what orientation the pic was taken and rotate it myself afterward?
I'm developing an app for Android 2.1 upwards. I want to enable my users to select a profile picture within my app (I'm not using the contacts framework). The ideal solution would be to fire an intent that enables the user to select an image from the gallery, but if an appropriate image is not available then use the camera to take a picture (or vice-versa i.e. allow user to take picture but if they know they already have a suitable image already, let them drop into the gallery and pick said image). Currently I can do one or the other but not both.
If I go directly into camera mode using MediaStore.ACTION_IMAGE_CAPTURE then there is no option to drop into the gallery. If I go directly to the gallery using Intent.ACTION_PICK then I can pick an image but if I click the camera button (in top right hand corner of gallery) then a new camera intent is fired. So, any picture that is taken is not returned directly to my application. (Sure you can press the back button to drop back into the gallery and select image from there but this is an extra unnecessary step and is not at all intuitive). So is there a way to combine both or am I going to have to offer a menu to do one or the other from within my application? Seems like it would be a common use case, surely I'm missing something?
I am trying to take picture by G1 camera.
I have tried almost everything i was able to find on the net about this topic. It seams there should be intent with action "android.media.action.IMAGE_CAPTURE" which really starts camera application and returns captured image. But captured image is scaled to 0.25 of original size. Another possibility I have found is to pass uri where to save captured image. I went through all available sources of camera application and it should work but does not.
For illustration, I am doing following in my example activity which creates new image, but after returning from camera, image is still empty:
CODE:..................
I am ready to write my own capturing application, but it is quite hard and I would like to reuse.
Do you know correct intent action name and extra name to pass to capture image?
Is there any possibility to get a Uri for intent to display a route between two location on Google Map application.
View 2 Replies View RelatedI have the url of an image. What i need to do is launch the default image viewer for images using an intent. But it doesn't work. If I do not specify the type of data, the intent launches the browser since the data is a url. It works basically (since you can see the image on the browser) but what I would like is to have the gallery display the image for me.I can also download the image into a Bitmap but I would still not know how to display the Bitmap using the gallery (if that's even possible).I tried saving the bitmap to the cache and then launch the viewer on that file but it doesn't work. Can you spot any mistakes on my code? (The Utilities class is a class i wrote.
View 3 Replies View RelatedDoes anyone have an example on how to recreate a webview display by using the capturepicture() method? Can I save the resulting object in SQLLite and how do I put it on the canvas?
View 2 Replies View RelatedI'm thinking of buying a Samsung Notebook and installing the Picasa Android App, and as part of my research, I wanted to know if the Picasa App will show photo captions if they exist in the EXIF metadata for the JPEG photo files. I know that Picasa on Windows will show captions when the photos are displayed using the Full-Screen Slideshow option, and wondered if the Picasa App on Android provided the same feature. the attached screen capture shows a Picasa Slideshow run on MS Windows, displaying a caption at the bottom-centre.
View 1 Replies View RelatedI would like to display a picture for seconds before running into the main stream of the program public code...
View 2 Replies View RelatedTwo related questions regarding the Captivate's built-in "Contact" app - both dealing with linked contacts from Gmail and Facebook:
1)Has anyone found a way to change which picture is displayed for a linked contact? On the HTC Aria, you could choose whether you wanted the picture from Gmail or the one from Facebook.
2)Has anyone found a way to change the displayed name in Contacts. Again, on the HTC Aria, you could pick whether to display the name from your Gmail contact or the one from the Facebook contact.
I ask the above because I have put a couple of photo albums on my Desire and noticed that the first photo is the "oldest" photo. However, I have just renamed an album of 100 pictures into a specific numerical order and my Desire places them back into the order of "date picture taken" Does anyone know of a way I can get the pictures to be in the order of file name?
View 2 Replies View RelatedIn the Messaging app in 2.2 when I'm in a thread it shows a pic of me and a pic of the other person next to every text sent and received. In the 2.1 app it simply showed my name and the other persons name; no pic of us next to every text. Is there anyway to disable showing the pics in the 2.2 app? Really don't see the need to have a pic next to each text.
View 1 Replies View RelatedI'm trying to get Facebook profile pictures assigned to internal phone contacts, but cant get it to work. I installed the recently updated Facebook app, at the first launch it asked me if I want to sync my contacts, I selected Sync with exisiting contacts (later I selected Sync all since first option didnt work) but still profile pictures are not being fetched. I can now see facebook contacts in my main contact list, and I can link them with my phone contacts (manually), but profile picture is still blank. When I click the View profile (facebook) link of a particular contact I'm taken to my profile page instead of the person i clicked on. And when I select Edit and go to Facebook tab there is an error with an exclamation mark with the message "Unable to edit SNS contacts on phone".
View 3 Replies View Relatedis there a way to get a contacts picture to show their facebook picture in timescape. I have linked all my contacts with their facebook accounts but it still shows the default white picture. I dont want to have to go through and take pictures of all my contacts. that would just be silly.Apologies if this has been asked before or is a simple fix. I'm new to this smart phone malarchy
View 4 Replies View Relatedis it possible to have the Facebook profile picture of my friends be the picture displayed on my contacts? or do I absolutely need to upload a picture for every contact individually?
View 2 Replies View RelatedHow do i get peoples facebook picture to show up as their picture in my contacts. Right now my facebook picture shows up as Me, but none of the others are showing up. I even changed all my contact names to match the facebook page.
View 19 Replies View RelatedI use the backgrounds app, and it lets me save backgrounds to my SD card. I go into Astro/ sdcard/ backgrounds and then click on the picture. It gives me 2 options to open it. "ASTRO Image Viewer" and "View picture". For me to use it as a background I have to pull it up in "View picture", BUT....no matter how many times I try and pull it up that way, it shows me the first picture in my camera album. If I click "ASTRO Image Viewer", I can always see the picture I selected, but under menu, I only have the option to "share" and nothing else. Can you tell me why the selected picture won't show up in "View picture"?
View 1 Replies View RelatedIs it possible to disable title bar display dynamically after setting the content view by setting the NoTitlebar theme?
All the posts I have read told that any title bar changes we can make only before setContentView() call.
I am facing one problem in message view. Bacically what I need to do is in message view I want to mark any telephone number or web address in different color. Can anyone please tell me where exactly the text is been written in Message View? On clicking this items it should launch appropriate event. If anyone touches a telephone number it should launch the dialer or if it is a valid email address then it should launch the Compose message event and so on.
Another question is whether to display message is Android uses the WebView?
I am dispalying some data by using sqlite .when i click on one button data come from database. It takes some time. At that time the screen is black .At that time I want to display the rotating spinner before the data dispaly.
View 4 Replies View RelatedHello there I have a problem regarding the new HTC Magic I purchased : in my text display where I read the conversations between me and my contacts... it has all of the messages I sent in 1 group together, and all of the messages my contacts have sent together. How do I change this to display the order in which they were sent and received? For example right now it is
ME : blahblahblah
ME : blahblahblah
ME : blahblahblah
You : blahblahblah
You : blahblahblah
You : blahblahblah
I have an issue with displaying videos on android devices.When any video is displayed it does not take the entire screen size of device even though i have given android:layout_width="fill_parent".There will being some blank space on either sides.for eg.if i have a video of 480 by 320 it will work on 480 by 320 device fine but on a device like say Nexus one it wont take the entire display of device ,there will be some blanl spaces on two sides. Is this a default feature of android devices or is there a solution to resolve this ?Why does not the "fill_parent" attribute work?
View 4 Replies View RelatedI posted this question sort of embedded in the "show us your Droid X screen" but I think it got buried with all the "what is that widget?" questions.I see on some screens the picture widget picture is big. Mine is only about 1 inch by 1/2 inch.I can barely even get 1/2 a face in the picture.How do you get a bigger picture?I'm running LauncherPro, is that effecting it?Since I couldn't get a bigger picture, I decided to try and add the slide show widget. But when I try, it says Widget Conflict only one photo slideshow per home screen. I don't have any other slideshow widgets on my screen. Any ideas?
View 2 Replies View RelatedThe display area of my SGS has been reduced there is now a black line (approximatively 1 millimeter thick) around the display now anything that should be displayed has been centered (a kind of)i have noticed that after press-holding the HOME BUTTON (to get to the task manager).even when the phone that black border is still there and it look like the screen has been pushed down the display is not now at the same level as the top-cover (or screen cover).I have used the factory reset but nothing has changed.My phone look horrible now.
View 1 Replies View RelatedJust got my EVo yesterday and so far I love it, battery life isn't bad..about 11 hours today and 44% left...moderate use. Hopefully it stays that way.I will admit tho, the screen is nice a HUGE but it isn't near as sharp and pretty as my little hero, anyone else think it has a slight blurry look to it? Maybe I have a messed up display or something.why in the world did they remove the lockscreen wallpaper? I liked that, and now it's just a blank little screen with a slider on it...can we at least customize it more?
View 5 Replies View RelatedI know this has been asked a lot of times in StackOverflow already, but I haven't quite found a solution yet. My app sends an email with a link in it that when clicked should launch the app. According to @hackbod, the best way to do it is to make use of the Intent URI (see this). Here's my code that sets the intent and puts it in the email body: Code...
View 1 Replies View RelatedPlease clarify me What is Pending Intent with an example.
View 2 Replies View RelatedI am newbie to Android. I read the Android documents. Can anyone tell me what "Pending Intent" is?
View 1 Replies View RelatedI am using the following code to play video..
View 4 Replies View Related