Android :: Image Captured Using Intent I / Very Small

Feb 9, 2009

I am capturing Image from app using:
The image captured using Intent i = new Intent ("android.media.action.IMAGE_CAPTURE");
but it is very small (25*50). Why this is happening?

Android :: Image Captured Using Intent i / Very small


Android :: Capture Much Larger Image Than The Current Small Image Captured By G1

Oct 1, 2009

I want to capture much larger image than the current small image captured by the android g1 phone camera.

View 9 Replies View Related

Android :: How To Get URL Of Captured Image?

Jun 26, 2009

I launch an activity to capture a picture from camera:
Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null);
i.putExtra("return-data", true);
startActivityForResult(i, PICK_FROM_CAMERA);
Can you please tell me how to get the URI of the capture picture?

View 2 Replies View Related

Android :: Way To Get Back Captured Image?

Nov 12, 2009

I was successful to capture image using Android Camera but when i set this image using ViewImage on my view, it shows me the default android image and its very blurred too. I also have sdcard installed on the emulator. here is my code...

View 2 Replies View Related

Android :: How To Save Camera Captured Image?

Jul 6, 2009

I am working with camera.. I am facing one problem during capturing image.The image is not saving directly to gallery.But when i reboot my device its appearing. Can anybody tell me why this happens.and How can i solve it.

View 4 Replies View Related

Android :: Droid Won't Rotate Image Captured From Camera?

Dec 19, 2009

I'm using this camera code to ask the camera to rotate the captured image data... this seems to work on all phones, except the Droid. Has anyone else seen this? The image data is always landscape, however, the native camera app produces portrait images OK. I wonder if the Droid will only respect the new Camera.Parameters.set Rotation() method, but this seems to only be available in sdk level 5?

View 11 Replies View Related

Android :: Want To Convert Image Captured By Camera To Grayscale?

Jul 8, 2009

I have a camera application that captures a 640x480 image.I want to convert this image to grayscale.I know I have to use the setSaturatio (float sat) in the ColorMatrix method to zero but I don't know how I can set it to grayscale.

View 3 Replies View Related

Android : Need To Extract Text From Image Captured In Camera

Jun 15, 2010

I need to extract text from the image captured in camera. How to do this?

View 5 Replies View Related

Media :: How To Give Effects To Image Captured By Camera?

Jun 28, 2010

I am developing an camera application where i want to capture image and give special effects. can anyone tell me how to work on preview of camera image taken by camera which i have include in application. My application is capturing image and saving it in device.But i want to show the new image according to user's choice for effects(whichever he wants) from inside the application.

View 2 Replies View Related

Android : Get A Small Bitmap Image From A Big One?

Sep 20, 2010

Can anybody have any idea about how to get a small bitmap image from a big bitmap which is the combination of many bitmaps. Any help will be appreciative.

View 1 Replies View Related

Android :: Want One Image And Over That One More Small Seeker Type Of That

Jul 8, 2009

Has anyone customized the Image. Actually I want to have one Image and over that one more small Seeker Type image, Is it possible.

View 4 Replies View Related

Android : Playing Small Music File When Image Is Touched

Nov 4, 2010

I am New to android, My task is to playing a small audio file when we touch an image?

View 2 Replies View Related

Android :: Small Animation - Image Start From Bottom Of Text View And Expand

Feb 23, 2010

- TEXT VIEW -' SLIDE DRAWER image
I have a layout like this above textview and an image that slides down after clicking the text view. I have looked at translate animation but the issue is I want the image to start from the bottom of text view and gradually get into its full view. Translate animation doesn't let me start from behind the textview so that it can appear slowly and coming out at the bottom of text view and expanding to its fullview. I have linear layout now with textview and imageview.

View 2 Replies View Related

Android :: Pass Image To New Intent

Nov 19, 2009

I've got a problem My app show a first layout like: Gridview1 (3 images in 1 row) ImageView1 (1 image) Gridview2 (3 images in 1 row) ImgaeView2 (1 image) Gridview3 (3 images in 1 row) ImgaeView3 (1 image) When you clik over an image it will be open full screen in a second layout, The problem was that I don't know how to pass the image to the new intent. Now I've the next code:

public AdapterView.OnItemClickListener pulsarImagen = new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,long arg3) { Intent intent = new Intent(GridViewer.this , GalleryViewer.class); intent.putExtra("id", arg0.getItemIdAtPosition (arg2)); startActivity(intent); //finish(); } };

But the ItemID is always 0. Before I've only one gridview and then I passed the item's position. But now I've 3 different gridviews and I don't know if the position of item selecte it's from gridview 1,2 or 3. I supose that the great solutin it will be to pass the id resource (image) but I don't know how to pass it. Can you help me?

View 4 Replies View Related

Android :: Image Intent From URL To Browser Or Other Activity

Oct 6, 2010

I want to have an image open from a URL to an intent, most likely the browser or maybe a picture previewer like the one built into twidroyd.I've gotten plain URLs to open to the browser. I just can't figure out what action or category to specify,

View 1 Replies View Related

Android :: Builtin Intent For Viewing Image?

Feb 26, 2010

Is there a built-in intent which will let you pass it the path of an image (png or jpg) and show it full-screen with panning / zooming controls? Basically the same controls WebView has, but only for a single image. I saw that iPhone has something like this, just wondering if there's already something like this on android before writing a new one.

View 11 Replies View Related

Android :: Get Image From Received Share Intent

Sep 14, 2010

I'm creating an app for posting pictures to a particular proprietary social site. I have it working with the camera and the IMAGE_CAPTURE intent. I want to add the ability to do this from pictures in the Gallery. I seem to have everything wired up, but I'm scratching my head how to get the image from the intent when my activity is lauched from the Gallery's share menu. In onCreate, the code getIntent().getDataType() returns "image/jpeg", as expected, but how to I get the picture from the Gallery into my ImageView?

The code at http://stackoverflow.com/questions/2206397/android-intent-action-send... suggests how the Gallery app is adding the picture by means of emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(png)); but on my end, it's not clear to me at all how to get that Uri from the intent.

View 5 Replies View Related

Android : Get Back Image Taken After Intent MediaStore?

Oct 7, 2010

How do i get back the image taken from starting the Intent(MediaStore.ACTION_IMAGE_CAPTURE)?

I need the image to be display as a thumbnail and also be attached to email.

View 2 Replies View Related

Android :: Image Capture Intent / Activity Not Get Called

Jun 26, 2009

I start an IMAGE_CAPTURE Intent like this, and my activity's onActivityResult() get called: Intent i = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); i.putExtra("return-data", true);
startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID);
But, if I start my Intent like this, the Capture Image Intent did get called, but my activity's onActivityResult() never get called:
Intent i = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse("file:/" + "MyTestFile")); i.putExtra("outputFormat", Bitmap.CompressFormat.PNG.name());
startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID);

View 3 Replies View Related

Android :: How To Launch Intent To Pick Image From SD Card?

Jun 13, 2009

Can you please tell me how can I launch the intent to pick image from SD card?

View 6 Replies View Related

Android :: Launch Intent Viewer To Display Image From Url

Jun 1, 2010

I 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 Related

Android :: Launch Email Intent With Attached Image

Jun 29, 2009

I am trying to launch an email intent with an attached jpg. I did:

Intent intent4 = new Intent(Intent.ACTION_SENDTO,
Uri.fromParts("mailto", "testemail@gmail.com", null));
startActivity(intent4);
this launches the email activity.
But when I try to add DataAndType (my jpeg attachment). It fails with
android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.SENDTO data=file:///data/data/com.mycompany.mypackage/files/temp-picture type=JPEG
Intent intent4 = new Intent(Intent.ACTION_SENDTO,
Uri.fromParts("mailto", "testemail@gmail.com", null));
intent4.setDataAndType(Uri.parse("file://"+ mTempFilePath),
Bitmap.CompressFormat.JPEG.name());
startActivity(intent4);

View 1 Replies View Related

Android :: Launching Intent Not Working On Saved Image File

Jun 2, 2010

First of all let me say that this questions is slightly connected to another question by me. Actually it was created because of that. I have the following code to write a bitmap downloaded from the net to a file in the sd card:

// Get image from url
URL u = new URL(url);
HttpGet httpRequest = new HttpGet(u.toURI());
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpclient.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
Bitmap bmImg = BitmapFactory.decodeStream(instream);
instream.close();

// Write image to a file in sd card
File posterFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Android/data/com.myapp/files/image.jpg");
posterFile.createNewFile();
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(posterFile));
Bitmap mutable = Bitmap.createScaledBitmap(bmImg,bmImg.getWidth(),bmImg.getHeight(),true);
mutable.compress(Bitmap.CompressFormat.JPEG, 100, out);
out.flush();
out.close();

// Launch default viewer for the file
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(posterFile.getAbsolutePath()),"image/*");
((Activity) getContext()).startActivity(intent);

A few notes. I am creating the "mutable" bitmap after seeing someone using it and it seems to work better than without it. And I am using the parse method on the Uri class and not the fromFile because in my code I am calling these in different places and when I am creating the intent I have a string path instead of a file. Now for my problem. The file gets created. The intent launches a dialog asking me to select a viewer. I have 3 viewers installed. The Astro image viewer, the default media gallery (I have a milstone on 2.1 but on the milestone the 2.1 update did not include the 3d gallery so it's the old one) and the 3d gallery from the nexus one (I found the apk in the wild). Now when I launch the 3 viewers the following happen:

Astro image viewer: The activity launches but I see nothing but a black screen.
Media Gallery: I get an exception dialog shown "The application MediaGallery (process com.motorola.gallery) has stoppedunexpectedly. Please try again" with a force close option.
3D gallery: Everything works as it should.

When I try to simply open the file using the Astro file manager (browse to it and simply click) I get the same option dialog but this time things are different:
Astro image viewer: Everything works as it should.
Media Gallery: Everything works as it should.
3D gallery: The activity launches but I see nothing but a black screen.

As you can see everything is a complete mess. I have no idea why this happens but it happens like this every single time. It's not a random bug. Am I missing something when I am creating the intent? Or when I am creating the image file? As noted in the comment here is the part of interest in adb logcat. Also I should note that I changed the way I create the image file. Since I want to create a file that reflects an online file I simply download it instead of creating a Bitmap and then creating the file (this was done because at some point I needed the Bitmap but now I do it the other way around). The problems persist thought and are exactly the same:

I/ActivityManager(18852): Starting
activity: Intent {
act=android.intent.action.VIEW
dat=/sdcard/Android/data/com.myapp/files/image.jpg
typ=image/* flg=0x3800000
cmp=com.motorola.gallery/.ViewImage }
I/ActivityManager(18852): Start proc
com.motorola.gallery:ViewImage for
activity
com.motorola.gallery/.ViewImage:
pid=29187 uid=10017 gids={3003, 1015}
I/dalvikvm(29187): Debugger thread not
active, ignoring DDM send
(t=0x41504e4d l=38)
I/dalvikvm(29187): Debugger thread not
active, ignoring DDM send
(t=0x41504e4d l=64)
I/ActivityManager(18852): Process
com.handcent.nextsms (pid 29174) has died.
I/ViewImage(29187): In View Image
onCreate!
D/AndroidRuntime(29187): Shutting down VM
W/dalvikvm(29187): threadid=3: thread
exiting with uncaught exception
(group=0x4001b170)
E/AndroidRuntime(29187): Uncaught
handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(29187):
java.lang.RuntimeException: Unable to
start activity
ComponentInfo{com.motorola.gallery/com.motorola.gallery.ViewImage}:
java.lang.NullPointerException
E/AndroidRuntime(29187): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime(29187): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime(29187): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime(29187): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime(29187): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(29187): at
android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(29187): at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(29187): at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(29187): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(29187): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(29187): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(29187): at
dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(29187): Caused by:
java.lang.NullPointerException
E/AndroidRuntime(29187): at
com.motorola.gallery.ImageManager.allImages(ImageManager.java:5621)
E/AndroidRuntime(29187): at
com.motorola.gallery.ImageManager.getSingleImageListByUri(ImageManager.java:5515)
E/AndroidRuntime(29187): at
com.motorola.gallery.ViewImage.onCreate(ViewImage.java:1801)
E/AndroidRuntime(29187): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(29187): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime(29187): ... 11 more

View 3 Replies View Related

Android :: Single Intent To Take Picture / Pick Image From Gallery

Apr 25, 2010

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?

View 1 Replies View Related

HTC Droid Eris :: Get Small Icon Version Of Pic To Bring Up "save Image"

Jul 3, 2010

I am getting bored with my current wallpapers that came with the eris. Of The Damned posted a link a few months ago for a Picasa web album with designs and pics for android wallpapers... Oliver Erben android wallpapers... The stuff in there is great! I can only get the small icon version of the pic to bring up the "save image" option? when I hold down on the image, not the full pic. Because off this it's really grainy as a background on the phone. Anyone know how to do this, or get other free and safe (no ads or bad stuff) wallpapers on my eris?? I am concerned with some of the wallpaper apps in the market because of all of the badmouthing in the reviews. Help out an amateur! Thanks in advance for your responses!

View 3 Replies View Related

Android :: Quality Of Captured Video With Application

Sep 9, 2009

i am capturing video with the code below. But there is problem on video quality, that is, when I capture video with applicaiton I wrote its quality is not as well as video quality of telepohnes' which is recorded by Camcorder...................

View 3 Replies View Related

Android :: View Image In Action View Intent?

Nov 16, 2009

I'd like to show a png or jpg I downloaded from the next in an image viewer intent, but can't get it to work.

Bitmap bmp = getImageBitmap(jpg);
String path = getFilesDir().getAbsolutePath() + "/test.png";
File file = new File(path);
FileOutputStream fos = new FileOutputStream(file);
bmp.compress( CompressFormat.PNG, 100, fos );
fos.close();
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(path)), "image/png");
startActivity(intent);

I know the bitmap is downloaded ok (use the same routine for supplying it my ImageView instances elsewhere in my app) - I think it wrote to file ok, I can see it on disk and the file size is correct. The intent is launched but an exception is thrown: then the new activity just sits there, blank. How does this work?

View 1 Replies View Related

Android :: Can Audio Stream Output From Earpiece During Call Be Captured?

Jan 29, 2010

I am looking to develop an application and would like to know if the earpiece audio output can be captured.

View 1 Replies View Related

Android :: Restart Phone To View Captured Images In Gallary

Jun 4, 2009

i am new to android i have devloped a camera application.it takes the the images and saved in gallary and later u upload a images into the web but when i take captured a images through my application the images is not shown in the gallary although it saved in gallary .But when i restart the phone than all the images i captrued is visibly in the gallary.so i have to restart the phone every time to seen images which i captured so plz help me on this its urgent.

View 3 Replies View Related

Android :: Poor Audio Quality Captured From Microphone With MediaRecorder / Implement Them?

Aug 11, 2009

I've implemented "Audio Capture Setup and Start" example (http:// developer.android.com/guide/topics/media/index.html) with small modification - the output format is MPEG_4 not THREE_GPP.

The result - records with extremely poor audio quality.

Could you help me to understand where is error and how is possible to do really good audio records with Android?

I've done an experiment with Camcorder - standard Android application. Sound quality of the video is same poor. The audio signal is extremely low (quite).

Is it "by design" or may be some hardware problem (T-Mobile G1)?

I've found description similar problem here - http://osdir.com/ml/AndroidDevelopers/2009-06/msg00752.html - "Microphone audio capture with emulator is of very poor quality". In my case this problem reproduces on the real device. Unfortunately I have not found answer. I read about some "custom" encoders.. but have not found any example how implement them.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved