Android :: Starting Video Camera With Intent

Sep 20, 2010

I am writing a very small app that just opens the camera app ready for video. I am able to get my code to work on an Android 2.2 emulator, but it will not work on my device, Motorola Droid 1 stock 2.2 FRG22D. Any ideas where I went wrong on this code?

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

It appears ThorstenW is correct. I would upvote your answer if I had enough rep. You can see from the logcat that com.android.camera could not be found and throws a fatal exception. Logcat below.

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

Android :: Starting Video Camera with Intent


Android :: Correct Intent To Launch Gallery / Video Camera

Jul 28, 2009

My application has buttons to launch gallery and video camera apps but the below code only seems to work on phones with the standard Cupcake build:
// For Gallery Intent intent = new Intent(); intent.setClassName("com.android.camera", "com.android.camera.GalleryPicker");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(intent);
// For Video Camera Intent intent = new Intent(); intent.setClassName("com.android.camera", "com.android.camera.VideoCamera"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(intent);

On rooted / non-cupcake phones, I get this error:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.camera/com.android.camera.VideoCamera};
have you declared this activity in your AndroidManifest.xml? at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1480) at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) at android.app.Activity.startActivityForResult(Activity.java:2656) at android.app.Activity.startActivity(Activity.java:2700)

View 3 Replies View Related

Android :: ClassNotFoundException When Starting Intent

Jun 11, 2009

I have a problem and cant realize a reason. I have ClassNotFoundException when starting Intent i = new Intent(EventInfo.this, AndricoMap.class); i.putExtra("address", address); startActivity(i);

There are log and class below

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

View 5 Replies View Related

Android :: Starting Two Instances Of Activity With Flag Intent

Jul 18, 2010

When starting two activities of the same class within the same instance using the flag REORDER_TO_FRONT, the new extra information of the second call does not override the first starting activity. Is this the desired behavior? How do retrieve the new extras?

For example: In the StubActivity, I have this code:
Intent i = new Intent(this, A.class);
i.putExtra("foobar",1); startActivity(i);

Activity A is displayed, and then this code is called upon a button press:
new Intent(this, A.class);
i.putExtra("foobar",2);
i.setFlag(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(i);

Activity A is re-displayed. Now check for the extras: int foobar = getIntent().getExtras().getInt("foobar")
Turns out that foobar = 1

View 2 Replies View Related

Android :: What Is The Significance Of Context In Various Constructor Of Intent Class When Starting An Activity

Mar 4, 2010

I had come across a code snippet which calls for an activity without referring to any context. Before, i was considering that context is used to tell about the calling component. But as i came see that another component can be called without any reference to context, it makes me wonder what purpose it might be serving. please put some light on it.

Here is the code which calls for an activity without referring to 'context'

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

View 1 Replies View Related

HTC EVO 4G :: Camera App Not Starting

Jun 30, 2010

I click to start it and nothing happens...I just got a new SD card added to my phone maybe thats it?

I tried reformatting the memory card on my phone..and on my computer and the camera app wont start.

I just rebooted the phone..started working again. CLOSE

View 1 Replies View Related

Motorola Droid X :: Camera Starting By Itself

Oct 10, 2010

I've had my Droid X since launch and been lurking here for awhile, I haven't had any real issues until now though...

Yesterday, my droid x started randomly opening the camera application without anyone or anything even touching the phone. It's maddeningly frustrating. It wakes the phone up when the screen is off, which kills the battery faster, it randomly pops up when I'm web browsing or writing a text. Has anyone else experienced this, and if so, was there a fix other than taking the phone back to verizon? I haven't gotten the phone wet or dropped it or anything.

View 5 Replies View Related

Motorola Milestone :: Any Way To Speed Up Starting Camera?

Apr 18, 2010

Is the camera any faster at starting in 2.1 is there anyway to speed up the start of the 2.0.1 camera?

View 2 Replies View Related

2.1 Update :: X10 Mini Pro Crashes When Starting Camera Applications

Nov 24, 2010

I bought a x10 mini pro this week and the same day the phone arrived i updated to 2.1 with SE PC Companion software.

I didnīt noticed if this happens to 1.6 duo to the short usage of this droid version.

Every time i starts the camera application or any application that uses the camera (like Google goggles for example), the phone aparently crashes and suddenly reboot. After the reboot, the camera used to work for the first times but about aprox 30 min. or less that the phone has been rebooted, when i try to start the camera, the phone crashes and restarts again.

Iīve tried to Repair the phone in pc Companion software and the issue continues the same.

View 4 Replies View Related

Android :: Camera Intent What's Safe To Use?

Dec 8, 2009

I'd like to let the user take a picture using the camera, then use it in my app. Ideally I could use the built-in camera app via an intent for this.is the only reliable option to use the 192x256 memory-only image supplied by the camera intent? The following seems to not work:

1) Asking the camera intent to write a 'full size' image to disk.

2) Writing your own camera app (issues on different devices etc).

The Facebook app seems to use the memory-only 192x256 option, probably because that's the only safe option. Anyone else have different opinions / experiences?

View 14 Replies View Related

Android :: Launch Camera App With An Intent?

Oct 7, 2010

I can't find any intent which opens the camera. The closest I've found is ACTION_CAMERA_BUTTON but that breaks if the phone has no hardware button for the camera.

View 3 Replies View Related

Android :: App Crashing On HTC Magic Launching Camera Intent

Jul 15, 2009

Wine by the Bar app (free in Android Market) is crashing on the HTC Magic.What intent settings/extras are needed to successfully launch ACTION_IMAGE_CAPTURE on HTC Magic?intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);App works fine on G1.Also need proper intent for choosing an picture already on the phone, and a cropping intent.

View 4 Replies View Related

Android :: Using Phone Camera Via Intent / Activity Never Returns?

Oct 18, 2010

I'm using the phone's camera in an Android app to take a photo. I'm using Intents to use the built-in camera application.It works fine and the camera is brought up. I can take a photo and the phone presents me with three options: Cancel, Retake, OK. The first two work, pressing cancel returns the user to the app, but pressing OK and nothing happens. Apparently onActivityResult isn't being called, and the camera just stays on the screen. Nothing in the debugger either.Running the app on a Nexus One with Android 2.2.1. Same problem on the emulator running Android 2.0.

View 1 Replies View Related

Android :: Intent To Open Video With Raw Resource

Nov 9, 2010

Does anyone know of an intent I can use to open a raw mp4 resource in the phone's video player?

I tried this code:
CODE:..............

This threw an ActivityNotFoundException, however this has worked for me when the URI was the sdcard and the video was located there. Does anyone know how I can use the above code with a resource file in my app?

View 1 Replies View Related

Android : Way To Get Droid Intent For Playing Video?

Oct 15, 2009

I'm trying to play video's on Android, by launching an intent. The code ...

View 1 Replies View Related

Android :: Taking Picture By Camera Correct Intent Action

Mar 3, 2009

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?

View 4 Replies View Related

Android :: Reloading Our Activities State After Firing Intent To Camera

Aug 31, 2009

We have an Activity which has a form on it and we launch an Intent to take a picture.We've overridden onSaveInstanceState and onRestoreInstanceState to push the data from the view fields But, on the return from the CameraActivity, the onRestoreInstanceState method is never called. Should this behavior work when calling another Intent?

View 7 Replies View Related

Android :: Video Intent - Control Back Button?

Sep 22, 2009

I'm working on an android application that plays video, by using an intent:tostart = new Intent(Intent. ACTION_ VIEW);tostart.setDataAndType(Uri.parse(movieurl), "video/*");startActivity(tostart);This works great. However, when you press the back button (on the device), the movieplayer goes back to the beginning of the movie. Only when you press back again, it goes back to my application. While the current behaviour makes some sense, I would like to know if I can change it: Is is possible to directly go back after pressing back?

View 1 Replies View Related

Android :: Need To Push Intent To Default Camera Application To Make It Take Photo

Apr 28, 2010

I need to push an intent to default camera application to make it take a photo, save it and return an URI. Is there any way to do this?

View 2 Replies View Related

Camera - Intent Returns Null?

Mar 27, 2012

I have an android application which contains multiple activities. In one of them I'm using a button which will call the device camera :

Code:
public void onClick(View view) {
Intent photoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(photoIntent, IMAGE_CAPTURE);[code]....

The problem is that the intent data is null and the OnActivityResult method turns directly to the (resultCode == RESULT_CANCELED) and the application returns to the previous avtivity.How can I fix this issue and after calling the camera, the application returns to the current activity which contains an ImageView which will contains the picture taken?

View 1 Replies View Related

Android :: Call Built-in Video Recorder In Droid Through An Implicit Intent?

Aug 26, 2010

Is it possible to call the built-in Video Recorder in Android through an implicit Intent? I did some search but haven't figured out yet.

View 1 Replies View Related

Video Intent Returns Null

Aug 30, 2012

I am developing am app to take photos and Video and then email the file to the user. The app works fine for photos on the phone and simulator. And works fine for Video on the simulator, but when I try video on the phone it returns a null pointer on the line Uri u = data.getData(). The phone I have tried it on is the HTC.

ContentValues values = new ContentValues ();
values.put(MediaStore.Video.Media.MIME_TYPE, "video/3gp");
values.put(MediaStore.Video.Media.DESCRIPTION, "Video");
ImageUri = getContentResolver().insert (android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI, values);
[code]....

View 1 Replies View Related

HTC EVO 4G :: Camera / Video Camera Settings?

Jul 25, 2010

I'm Trying to fine tune the Camera settings and was wondering if you guys changed the settings around and got better Pictures/Video and what did you change your settings to? I'm more concerned about fine tuning the video Settings even though i know both the Camera/Camcorder share the same settings.

View 1 Replies View Related

HTC Droid Eris :: Intent URI Code To Launch Camera Application?

May 2, 2010

im trying to find the code to launch the camera app and I cant figure it out.

View 3 Replies View Related

Android : Video Camera App For G1?

Apr 6, 2009

Is there a decent Video camera app for the G1?

View 3 Replies View Related

Android :: Front Camera For Video Calling

Feb 13, 2010

Which current of near future handsets have a front camera making video calling possible?

View 9 Replies View Related

Android :: Streaming Video From Camera To Server?

Mar 31, 2010

I've seen plenty of info about how to stream video from the server to an android device, but not much about the other way, ala Qik. Could someone point me in the right direction here, or give me some advice on how to approach this?

View 3 Replies View Related

Android : Video Camera App Finally Out On Market

Feb 4, 2009

So finally a video camera app is out on the market, pretty decent. Promises of bug fix and overall update in the next 5 days in good to know. Question is, has anyone else gotten it and it makes ur G1 sound kinda like a computer. Let me explain, when im phone is on, sense i downloaded the app, i can hear my phone running, kinda like how u can hear ur computer run, it makes wierd little sounds like its computing something, kinda weird i know. Kinda bugs me but I'll survive, anyone else having this problem though?

View 13 Replies View Related

Android :: Streaming (live) Video And Audio From Camera Example App?

Mar 23, 2010

Where to get streaming (live) video and audio from camera example for Android? Suppose I want to create some live video streaming service app so I'll have some cool server at the back end. And I know how to do that part. Suppose I have some stand alone app for PCs now I want to go on to mobile devices. So I want to see some sample app grabing audio and video streams from Phone, Synchronizing them, encoding somehow, and sending LIVE stream to server. I need any Open-Source sample that will do this or something like this. Where can I get such one?

View 1 Replies View Related

Android :: Streaming Live Video Camera To Server

Nov 22, 2010

streaming live video from android camera to server. What is the best approach in acheiving this ? Is it possible to use MediaRecorder for streaming video over internet?

View 1 Replies View Related







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