Android :: Take Picture Without Preview

Jan 27, 2010

I would like to build an app that does not require to show preview, I only need bitmap data to analyse. For instance when I move my phone around it will take picture in background and only display user the taken picture properties (brightness, RGB ratio in the image etc). I have searched through google but all the example uses surface view that does require display preview on screen, But dont want to display image at all.

Android :: take picture without preview


Android :: Cam Picture Bigger Then Preview

Jul 16, 2010

I am hoping that there is something predictable i'm doing wrong, but i seem to have more "info" on picture then on the preview.I have an app basically based on the CameraPreview code. (1.5!) When I take a picture, the resulting image has more content then i saw on the preview. To clarify: Say i'm looking at something with lines, and while looking at the preview i see line 4 to 10. After taking the picture it suddenly is clear i've shot lines 5 to 11. I'm trying to sync something I draw ontop of the view (a line-drawing) with what i'm photographing, and I can't get it to match like this. The newest example has some extra code involving "getSupportedPreviewSizes". I can't use this because of the API version: I'm coding for min. 3, and that one is from 5.

View 4 Replies View Related

Android :: Take Picture Without Preview Screen?

Nov 20, 2010

Does any app allow me to take pictures with the EVO by using hardware buttons as shutter while keeping the screen turned off?

View 2 Replies View Related

HTC Desire :: Gallery Folder Preview Picture

Nov 15, 2010

I updated to Froyo recently on my HTC Desire and noticed that the preview picture on my gallery folders changed. Is there an easy way to change the preview picture of the folder? It seems to be using the first picture in the folder. I tried deleting the folder and recreating it from my computer but didn't work. The first picture in the folder also doesn't seem to be related to the alphabetical order, or date order so not sure why it's even picking that picture as the first one.

View 1 Replies View Related

Samsung Vibrant :: Gallery Download Folder Preview Picture Glitch

Aug 3, 2010

I have downloaded a picture attachment from my Gmail that is an 'unwanted picture' which I opened when I went to Gallery/Download folder.It is currently the default preview picture now for the Download folder. I've already deleted this picture from the Download folder, but anytime I download a new picture attachment, it still uses the 'unwanted' pic as the folder preview.I've even tried manually deleting the Download folder using AstroFile Manager.Everything I've tried doesn't seem to work.I desperately need help because currently I'm not able to download any picture from my Gmail account without that stupid picture showing up as the preview for the Download folder.

View 3 Replies View Related

Sony Ericsson Xperia X10 :: Way To Get Contacts Picture To Show Facebook Picture In Timescape

May 11, 2010

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

Sony Ericsson Xperia X10 Mini/pro :: Facebook Profile Picture Of Friends Picture Displayed On Contacts?

Oct 24, 2010

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

HTC Droid Eris :: Get My Contacts Facebook Picture As Their Picture For Their Name?

Feb 3, 2010

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

HTC Droid Eris :: Picture Won't Show Up In View Picture?

Feb 7, 2010

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

Android :: 1.5 Video API Not Working / No Preview

Jun 22, 2009

I have tried 1.5 video API. I could not make it work. It even can't do preview. Following is my code:
private boolean initializeVideo() { Log.v(TAG, "initializeVideo");
if(Common.mRecordedVideo!=null && Common.mRecordedVideo.exists ()) Common.mRecordedVideo.delete();
File sDir = Environment.getExternalStorageDirectory();
String baseDir = sDir + Common.BASE_DIR;
File sampleDir=new File(baseDir);
if(!sampleDir.canWrite()) // Workaround for broken sdcard support on the device.
sampleDir = new File("/sdcard/sdcard");
try { Common.mRecordedVideo = File.createTempFile(PREFIX, EXTENSION, sampleDir);
} catch(IOException e) { AlertDialog.Builder ab = new AlertDialog.Builder (VideoRecord.this);
ab.setTitle("Error"); ab.setMessage(" can't write audio data to storage");
ab.setIcon(R.drawable.error); ab.setNeutralButton("Close", new DialogInterface.OnClickListener()
{ public void onClick(DialogInterface dialog, int whichButton) { } } );
ab.show(); return false;
} Intent intent = getIntent(); releaseMediaRecorder();
if (mSurfaceHolder == null) { Log.v(TAG, "SurfaceHolder is null");
return false; } mMediaRecorder = new MediaRecorder();
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setVideoSource (MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
mMediaRecorder.setOutputFile (Common.mRecordedVideo.getAbsolutePath());
// Use the same frame rate for both, since internally
// if the frame rate is too large, it can cause camera to become
// unstable. We need to fix the MediaRecorder to disable the support
// of setting frame rate for now.
mMediaRecorder.setVideoFrameRate(20);
mMediaRecorder.setVideoSize(352,288);
mMediaRecorder.setVideoEncoder (MediaRecorder.VideoEncoder.H263);
mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface());
try { mMediaRecorder.prepare();
} catch (IOException exception) { Log.e(TAG, "prepare failed for " );
releaseMediaRecorder(); // TODO: add more exception handling logic here
return false; } mMediaRecorderRecording = false;
return true; } private void startVideoRecording() {
Log.v(TAG, "startVideoRecording"); if (!mMediaRecorderRecording) {
// Check mMediaRecorder to see whether it is initialized or not.
if (mMediaRecorder == null && initializeVideo() == false ) {
Log.e(TAG, "Initialize video (MediaRecorder) failed."); return;
} try { mMediaRecorder.setOnErrorListener(this);
mMediaRecorder.setOnInfoListener(this);
mMediaRecorder.start();
// Recording is now started } catch (RuntimeException e) {
Log.e(TAG, "Could not start media recorder. ", e); return;
} mMediaRecorderRecording = true;
mRecordingStartTime = SystemClock.uptimeMillis();
updateRecordingIndicator(true);
mRecordingTimeView.setText("");
mRecordingTimeView.setVisibility(View.VISIBLE);
mHandler.sendEmptyMessage(UPDATE_RECORD_TIME);
setScreenTimeoutInfinite();
} }

View 2 Replies View Related

Android :: Camera Preview Not Working On G2

Oct 20, 2010

I'm trying to get the camera preview running on my G2.

This is the code I'm testing with, which was taken from the sample code. It is using supplemental code supplied by Wu-Cheng, but its still throwing an error.

CODE:......................

View 14 Replies View Related

Android :: What Happened To App Preview Button?

Aug 25, 2010

I posted this elsewhere but didn't get an answer. Market Apps used to have a Preview button so you could peek at the app before installing, but I don't see that after upgrading to 2.2. Did I miss something?

View 1 Replies View Related

Android :: Wall Paint Preview App

Mar 29, 2010

Is there an app out there that lets you take a picture of your room with the camera,then preview different wall colors?

View 1 Replies View Related

Android :: How To Preview All Drawable Images?

Dec 15, 2009

Android framework has variety of icons and images - accessible as R.drawable.* - that can be used by applications for common tasks. Their names give some hint about what they are, but in many cases that's not sufficient. One has to use trial-n-error to find the right icon that fits one's purpose.

My question: Is there a way where I can preview all these images in one place, so that I can quickly decide which ones to use? I have looked inside android source code, but couldn't locate the root of these drawables.

View 2 Replies View Related

Android :: 2.1 Camera Preview Error

Aug 28, 2010

I have a problem with using the camera of an Android 2.1 phone (HTC Desire), maybe you can help me.
After calling camera.open() DDMS in Eclipse shows the following errors:

CODE:............

Test view in the emulator works fine, but on my phone only a popup is shown where I only can close the application.

View 2 Replies View Related

Android :: Cannot Get Camera Preview Example To Work

Oct 28, 2009

I upgraded to the 2.0 SDK yesterday. Don't know if that has anything to do with it. I can't get the Camera Preview example from the API Demos to work. I get the same error in both my emulator and on my G1:
E/AndroidRuntime( 4758): java.lang.RuntimeException: Fail to connect to camera service.

View 4 Replies View Related

Android :: Itunes Coverflow Preview?

Apr 7, 2009

Im writing an app for android and would like to have an itunes like coverflow preview. Is there anything in the api that I can use or do I have to build it from scratch?

View 3 Replies View Related

Android :: Video Capture With Preview Available?

Aug 20, 2009

Can anyone share or point me to working example of "video capture" with preview?

View 2 Replies View Related

Android :: Possible To Camera Capture Without A Preview?

Jun 30, 2010

Is it possible to capture an image without showing the camera preview?, i have a requirement that i should be able to capture the image from a thread or from a service, without disturbing the foreground application, where i do not want to show the camera preview, but still i want to capture the image in background and store it in the device. So is it possible to do using the Android 2.2 SDK version?

View 3 Replies View Related

Android :: What App To Enable Sms Preview On Lockscreen

Nov 26, 2010

I tried Executive Assistant but it's not too pretty and sometimes causes freeze. Any suggestions?

View 3 Replies View Related

Android :: How To Get A Camera Preview In Phone

Jun 25, 2009

Anybody know about the camera Api in android.when i used this Api it displayed a black and white grids and a squre moving above it.Anyone know how to get a real time camera preview please help me with some code.

View 2 Replies View Related

Android :: Camera Capture Without Preview In 2.2

Aug 30, 2010

I have a requirement to Capture the image without showing the Preview.. And i want to do it in the Background as a Service. Is it possible to do that?

View 2 Replies View Related

Android :: How To Put Graphics On Top Of My Camera Preview

Sep 10, 2010

I see a couple of threads on this topic, but none of them seem to answer the question, so, I'm giving it another go...

Very simple idea... I want to some portion of the screen to preview (and shoot) the camera and the other portions of the screen to add my own graphical elements (buttons, colorful frame around the camera preview, etc).

The example that comes with Android fills the screen. The obvious solution (that doesn't seem to be working) is to use my own SurfaceView (rather than the one they do in the example) and have it sitting in my XML. The code (beneath) doesn't crash and reports that it's firing up the camera... it just never renders on the screen.

I have no idea what I'm doing incorrectly. My guess is that it has something to do with the display thread never having the urge to redraw anything after it renders the initial screen, but I even tried adding a button and initiating the camera to render on the surface view upon button click, but that has not provoked it any further.
(most of this code is pulled directly out of the Android sample code, so, I'm sure it's correct. I'm just doing something wrong in how I pull my View in after the fact, I think).

CODE:........................

View 1 Replies View Related

General :: Android XML Animation Preview

Jun 28, 2011

It is possible to preview xml animation from PC (windows/linux)?

View 2 Replies View Related

Android :: Camera Preview Is Working Properly

Feb 24, 2010

In my Application the camera preview is working properly in both in portrait and in landscape mode. No crashes are occurring, but the users are complaining that the crashes are occurring when they are using the same.

View 1 Replies View Related

Android :: Geocoder Not Returning Results In 1.5 Preview

Apr 16, 2009

I do not get any results from the Geocoder in the 1.5 preview release. Any information on this? In the maps application it works but my calls simply return an empty list (no exception, all permissions I know of (in this case only Internet) are set.

View 7 Replies View Related

Android :: UI Window In Camera Preview Application

Nov 27, 2009

Let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions, hope you can help me.

1. When this SurfaceView gets created (I assume via final CameraSurfaceView cameraView = new CameraSurfaceView (getApplicationContext()), this will result in a call createSurface() in SurfaceFlinger with format, width and height. Am I correct?
Is this SurfaceView also my UI window if I want to draw anything? I thought if I call setType(PUSH_BUFFER) on this surface, I won't be able to do any drawing on this surface.

2. How does the application pass these information like format, width and height to SurfaceFlinger for the allocation? Is it by using .setFormat, .setFixedSize?

3. How do they methods .setFormat, .setFixedSize related to the surfaceHolder.surfaceChanged() callback?

View 2 Replies View Related

Android :: Camera Application Preview Crashes

Nov 24, 2010

So I started with this little write-up. I wanted to try to make an application that will take pictures while running in the background. To start though I wanted an application that once opened would simply take a picture every X seconds. After recreating the classes and methods show in the walk through below I ran into a few problems.
http://itp.nyu.edu/~sve204/mobilemedia_spring10/androidCamera101.pdf

For starters its seems that the onCreate function sets up all the objects for the application, but if you try to take a picture through any other method than onClick (IE directly calling it) the application actually hasn't setup the canvas or the preview yet.

My first question:
Is there any conditional method that you can setup that will wait till all the "onCreate" objects are created and their associated methods are called and finished? How do I wait for the application to finish putting together my surface and starting the cameras preview before automatically starting to take pictures?

My second question:
I am required to have a preview available to take pictures. Is there anyway to push this application to the back (IE running in the background) while still taking pictures? Is drawing to a canvas a requirement? (From what I can tell AFAIK, you are required to have a surfaceholder to start preview, when you put up another screen or application that pauses the current application and closes the surface/canvas you were presenting that preview on). If my understanding is correct on all of this the best I will be able to do is make a 1x1 pixel canvas that will still take up the screen due to the application being in the foreground.

My Third question:
Is there any way around this? Can you still utilize the camera in some fashion without requiring the preview be drawn?

View 1 Replies View Related

Android :: Camera Preview Zoom Not Working

Sep 7, 2010

I've a problem with Camera Preview Zoom. The methods present in Android 2.2, setZoom() is not working to zoom the preview. Is there any another way to do the Zoom in android? I am using the code present in the Android API Demos. Is their any body who has worked on implementing ZoomIn & ZoomOut and got succeed??

View 4 Replies View Related

Android :: Why Is App Camera Preview Running Out Of Memory On AVD

Apr 27, 2010

I have yet to try this on an actual device, but expect similar results. Anyway, long story short, whenever I run my app on the emulator, it crashes due to an out of memory exception.

My code really is essentially the same as the camera preview API demo from google, which runs perfectly fine.

The only file in the app (that I created/use) is as below-

CODE:.......

View 1 Replies View Related







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