Android :: How To Activate Camera From My Application?

Aug 19, 2009

How do I pass an Intent from my application to the Camera application to bring it to the foreground?



ADVERTISEMENT

HTC Hero :: Camera Not Working - Message The Application Camera Process Com.android.camera Has Stopped Unexpectedly Please Try Again

Dec 6, 2009

My camera stopped working. When I click my camera application I get the message "The application camera (process com.android.camera) has stopped unexpectedly. Please try again". It's just a blank screen?

View 3 Replies View Related

Android :: Android - Activate Sleep Mode When Push Button Activate

Sep 8, 2010

I 'm using Wake Lock to stay awake my phone. I want to activate sleep mode when I will push the button "Activate" How can I activate sleep mode?

View 1 Replies View Related

Android :: Any Application To Disable Camera

Dec 30, 2008

Does anyone know of any apps that can disable the camera? My work does not allow camera phones.

View 8 Replies View Related

Android :: How To Call Camera From Own Application?

Jun 23, 2009

I want to call camera application from my own application, take video. Then I want to get the video back and return to my application. How Can I do it?

View 3 Replies View Related

Android :: Camera Application Not Working

Mar 13, 2009

How to make camera work for the android file system. When am I clicking camera application button, only square blocks are coming in the LCD screen.

View 2 Replies View Related

Android :: Camera Application 1.5 On Emulator Do Nothing

May 22, 2009

Strange behaviour with emulator running with Cupcake. When emulator is launched (via ADT), a SD card is mounted correctly, and I click on Camera, I have a black screen and nothing happens, I got the famous error with Wait or Force close wait, wait, wait nothing happens. I create with AVD the target 3. I'm on Windows XP SP2.

View 9 Replies View Related

Android :: How To Use Camera Application Without SD Card?

Feb 5, 2009

When I was using the camera application, the ERROR: Please insert SD card before using camera jumped out because the driver of sd card haven't been porting properly. Is there anyway to use android camera application without sd card?

View 2 Replies View Related

Android :: Using Camera To Take Pictures From My Application

Jan 7, 2010

I've been trying to write an application that uses the Camera App to take a picture. So far, the only thing I've been able to get back successfully is a tiny bitmap picture. I've found several other posts related to this topic that have code that is reported to work, but it does not work for me. I'm hoping someone can steer me in the right direction. Below is the code I am using currently, but it causes the application to blow up.

private void takePicture(final int x, final int y, String description) {
// create a file on the SD card
File file = new File(Environment.getExternalStorageDirectory(),
"tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg");
// Create the URI that tells the camera where to put the picture.
mOutputFileUri = Uri.fromFile(file);
statusLine.setText("URI => " + mOutputFileUri);
mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE)
.putExtra(MediaStore.EXTRA_OUTPUT, mOutputFileUri)
.putExtra(PIC_X, x) // x coordinate of square
.putExtra(PIC_Y, y) // y coordinate of square
.putExtra(PIC_DESCRIP,description)
.putExtra("return-data", true) ;
startActivityForResult(mIntent, PIC_FROM_CAMERA);
}

Ultimately, I want to be able to get the picture back and do two things with it: create a 64x64 icon that is displayed by the Android application, and upload the picture to a web application. I'm running this on the emulator using Android 2.0

View 3 Replies View Related

Android :: Compile Camera Application For SDK 1.6

Aug 18, 2010

I am trying to compile and run the Android Camera for sdk 1.6 (also called API level 4 or Donut release). While there is no minSdkVersion in the AndroidManifest, it clearly does not run on a donut device. In fact, if compiled with sdk 2.2 the camera will crash with a NoSuchMethodError execption on an avd or a G1 with sdk 1.6. I tried also checking out the [donut-release] tag, but, strangely, it won't even compile giving many errors like:

[javac] /home/mrucci/camtest2/src/com/android/camera/ImageManager.java:41: cannot find symbol
[javac] symbol : class DrmStore
[javac] location: package android.provider
[javac] import android.provider.DrmStore;
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/Util.java:32: cannot find symbol
[javac] symbol : class MediaMetadataRetriever
[javac] location: package android.media
[javac] import android.media.MediaMetadataRetriever;
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/MenuHelper.java:29: cannot find symbol
[javac] symbol : class ExifInterface
[javac] location: package android.media
[javac] import android.media.ExifInterface;
...
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/ActionMenuButton.java:81: cannot find symbol
[javac] symbol : variable mScrollX
[javac] location: class com.android.camera.ActionMenuButton
[javac] mScrollX + mRight - mLeft),
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/ActionMenuButton.java:81: cannot find symbol
[javac] symbol : variable mRight
[javac] location: class com.android.camera.ActionMenuButton
[javac] mScrollX + mRight - mLeft),

In particular, I really do not understand why ExifInterface is used in the "donut" tag when it has been introduced since API level 5.

View 1 Replies View Related

Android :: Camera Zoom FX Application?

Oct 19, 2009

I've been using FXCamera for a few weeks now it takes great pictures on my phone, with cool effects like fisheye and the warholizer. FxCamera. Just noticed that android slide has released a version of their Camera ZOOM FX application which has 40 photo FX, geotagging and obviously zoom which I can't do at the moment in FXCamera. Camera ZOOM FX. Just wondering if anyone had a chance to look at either of these apps and which they think is best, because I've been hoping for some new effects for a while and the android slide app sounds worth a look.

View 47 Replies View Related

Android :: Write An Application For Holding Camera

Jun 29, 2010

Writing an application to invoke the camera can be done but I want to write an application to hold on to the camera resources. Meaning while this application is running, camera cannot be accessed by other applications. Is this possible? The aim is as long as the application is running camera cannot be used.

View 5 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 :: Best Way To Store Application Images Taken Via Camera

May 5, 2010

I'm just looking for some insight into what would be the best way for me to store images as part of my app. I have an activity that represents a 'Job' which has a couple of edittext's and underneath was planning on using the Gallery component to show images relevant to this job. The job data is stored in a database (on the sdcard) so was also thinking of creating a table to store 'JobImages' and having each image stored as a byte array.

But I'm not sure if it would be better to store the images directly on sdcard under a folder structure specific to my application and the job. E.g. using the job ID number as a folder name. Depending on which method I use will greatly determine the code that goes into an 'adapter' that allows me to bind to the gallery component so before I begin I was wondering if anyone has had the same design problem and what option they chose.

View 1 Replies View Related

Android :: How To Call Inbuilt Camera Application?

Oct 8, 2009

Being a newbie to Android I can't work out how to call the camera application (or you can say camera preview?) when I click a button in my custom application.

View 1 Replies View Related

Android :: Camera Application Preview Crashes

Nov 23, 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 Flash In 1.5 And 1.6 - Application Crashes

May 21, 2010

My app is using the camera on the phone. For phones w/ 2.0+ I have been able to activate the Flash. When I test on a phone with 1.5 OS on it the app crashes. I get: java.lang.reflect.InvocationTargetException and the Cause is java.lang.VerifyError: fishers.Nav.TakePicture$1
I assume because you have to access the flash differently in apps below 2.0? Can anyone give me some advice or links to examples showing how I could make it work over the whole range of Operating System version or is that just not at all do-able?

View 5 Replies View Related

Android :: Application For Using Camera Flash For Notifications?

Apr 25, 2010

Being relatively new to my Droid, I'm still finding fun stuff. Recently, I picked up the shell/holster combo and really like it. However, while I am at work, I have my phone on vibrate (thanks Timeriffic) and can't tell who is texting/emailing me like I used to (different colors for the LED, thanks Handcent). What I was wondering is: is it possible to write an app that uses the camera flash like a vibrate function.

The ability to customize the number of flashes and duration would be cool, as would the ability to have it only flash when the phone is on vibrate or silent. Preferably, without having to root the phone. If its not possible due to hardware or software lockouts oh well.

View 1 Replies View Related

Android :: Where Is Macro In Vignette Camera Application?

Sep 6, 2010

I know I just must be over looking it but I can't find a macro setting on Vignette camera. Is it called something else? I thought maybe it just did it automatically but the pics I have tried to take close up were nothing like the stock macro on the X. I'm sure its user error because this app has everything but I can't figure it out.

View 13 Replies View Related

Android :: Speed Camera Application And Google Navigation

Sep 20, 2010

I use google navigation which I think is a brilliant navigation system seeing as it's completely free! The only downside is that it doesn't pick-up speed cameras. Does anyone know of any good speed camera apps that can run in the background or in conjunction with google navigation?

View 1 Replies View Related

Android :: Opening Camera Application And Function As Normal?

Oct 6, 2010

I see a ton of results when searching for how to open the camera, and get the returned image. What about simply opening the camera app without any return at all? I just want the camera to function as normal.

View 1 Replies View Related

Android :: Cropping In Camera Application And Photo Location

Oct 26, 2009

I have not noticed this posted yet so just adding here for those that have not found it. The new camera/video/gallery application supports cropping. After taking a photo or viewing in the gallery, press the Menu button and Crop. You can resize the crop box by touching the edges or move it by touching in the center. Using this feature I was able to create and share panoramic images that were much more interesting. Clicking Menu and then More reveals the "Show on Map" command which displays the location the photo was taken.

View 3 Replies View Related

Android :: Camera Application - Capturing Image Automatically

Mar 26, 2009

I worked on N95 mobile, my goal is to capture image for every 2 min and send the image data to server without user help. I am done with image capturing manually but I am unable to capture image automatically could you please suggest me. I am getting certification message pop up. Is there any way to start my application automatically. I am messed with code signature and manufacturer agreement with Nokia. So I have decided to change the platform to Android mobiles. Could you please let me can I able to implement the above application in android mobiles android platform.

View 9 Replies View Related

Android :: Source Code Of Sample Camera Application?

Apr 2, 2010

I want a sample application for camera in android. If anybody developed any application please share with me along with source code.

View 1 Replies View Related

Android :: Camera Preview Application - Buffer Allocation?

Nov 21, 2009

I have some questions regarding the code below for camera preview application.

1. How does surfaceCreated() and CreateSurface() relate? Is this surface created via createSurface() from SurfaceFlinger client to SurfaceFlinger server? If so, there must be 2 buffers (frame buffers from display driver if there is how acceleration or if it is the emulator, it will be from ashmem) associated with this surface: surface BB (for composition) and surface FB (for display).

2. How does the rendering buffer (frame buffer BB and frame buffer FB) get allocated in the camera preview application? Are they allocated by the application?

3. How does this surface relate to the preview buffers? Are the preview buffers allocated by the Camera Service during startPreview?

private class CameraSurfaceView extends SurfaceView implements SurfaceHolder.Callback {
private SurfaceHolder mHolder; private Camera camera = null;
public CameraSurfaceView(Context context) { super(context);
mHolder = getHolder(); mHolder.addCallback(this);
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
} public void surfaceCreated(SurfaceHolder holder) {
camera = Camera.open(); try {
camera.setPreviewDisplay(mHolder);
} catch (Exception e) { Log.e("Camera", "Failed to set camera preview display", e);
} } }

View 2 Replies View Related

Android :: Camera Application Not Working When Tested On Phone

Aug 18, 2010

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your error.

[Quote]

View 11 Replies View Related

Android :: Retro And FX Camera Application Zoom Functions?

Sep 9, 2010

Is there a zoom function for either of the apps? I just tried the free versions in case that matters.

View 4 Replies View Related

Android :: Camera Application With Compass Direction Overlay?

Jul 12, 2010

I'm a bit new to Android but after searching on the Market, the web and this forum, I can't seem to find anything like this but I feel like it has to exist (or hopefully will soon). I'm looking for a camera application that can place the current compass direction on the image (and stamp the saved image with the direction). The tilt of the phone would be cool to have, too, but just the compass would be great. I did find an application that shows the compass direction on over top of a feed from the camera ("Reality + Compass" by Udell Enterprises).

I want something just like this, but with the ability to save the image. In case you're wondering, I'd like to use this for bettering the storm spotting community. A problem when people send in images of clouds/storms/tornadoes/etc is that you never know (1) where the picture was taken and (2) in what direction. Ideally GPS location could be added, too, but for now I just want the compass. (Other image services can handle the location part fine, like Twitter for Android/Twitpic.)

(I'm on the HTC Aria, but I can sideload apps now thanks to the new version of HTC Sync.)

View 5 Replies View Related

Android :: Capture Image From Camera Application In Programming?

Aug 20, 2009

I am trying to implement Camera application in android,and i got some code from net to create a Live Camera through WebCam.Upto this no problem.Now i have to capture the images when click the button, and i displayed the captured images in the Dialog window.Without any exception the program is running but the captured image is not displayed,some default image is displayed.

My code is.

CODE:.........

I have no idea from where this default image is coming.

View 3 Replies View Related

Android :: Droid Camera Application Source Code?

Jul 9, 2009

Where can I get the android Camera application source code, I'm referring to the camera application that is already installed on my G1, not the camera API source code.

View 1 Replies View Related







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