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);

Android :: Image Capture Intent / Activity Not Get Called


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 :: 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 :: Image Capture / Get Both Original Image / A Thumbnail

Oct 27, 2010

I want to take a picture with camera, after read the document and googling,I found, if i don't want the original picture,i just use
Code...

View 3 Replies View Related

Android :: How To Capture Key Events From Intent's / Broadcast Receivers?

Oct 29, 2010

Is there a way to capture a key event from the Menu button using an Intent or Broadcast Receiver? Basically I want my app's Service to be activated when the Menu key is pressed.

View 1 Replies View Related

Android :: Retain Only One Copy Of An Activity On Stack When Called From Non Activity

Jul 26, 2010

How can I make sure I only retain one copy of an activity on the stack when called from non-activity? When called from an activity I can just add the FLAG_ACTIVITY_REORDER_TO_FRONT flag to the Intent, but how can I do this from e.g. a widget or a notification?

View 1 Replies View Related

Android :: How To Debug View In Eclipse When Intent Called?

Jun 11, 2010

I'm using Eclipse and have an emulator running Android 2.1 and my IntentService. I'd like to step through my onHandleIntent() overridden function. I've put in a breakpoint on the first statement of the function, which is Context context = getBaseContext();. When the intent is called the program just fails and does not go to debug view in Eclipse.

View 1 Replies View Related

Android :: First Tab Intent Oncreate Always Called Regardless We Set Tab2 As Default Tab

Mar 3, 2010

Following is the example of tabs with intent data.

While debugging i found that always when first tab we add in tab host in our case following tab

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

oncreate method of "List1" intent get called regardless it is our current tab or not even if if i define tab2 as a current tab how to fix this ?

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

View 1 Replies View Related

Android :: Recognizer Intent - OnActivityResult() Not Called When No Match

Nov 28, 2010

I have the following issue. I am starting a recognizer intent activity in order to detect speech using the "startActivityForResult" method. I have also an "onActivityResult" method listening for results from the recognizer activity. It works and it detects my speech. The problem is that it is only called when everything is ok or when i cancel the operation, but it is not called if it doesn't find a matching text "RecognizerIntent.RESULT_NO_MATCH" or in the rest of wrong cases "RecognizerIntent.RESULT_........" What is happening? Application is Android 2.1 and I have tested on a Android 2.2 device.

View 1 Replies View Related

Android :: How To Get Calling Activity Instance From Called Activity?

Jul 9, 2010

I have a Contact Activity which is derived from ListActivity, which displays list of contacts, and on click of item, a new Activity Message Activity derived from ListActivity is initialized.Now I know, I can pack some information in Bundle and pass it before creating activity, but is there a way I can get instance of "ContactActivity" in onCreate method of "MessageActivity"?

View 1 Replies View Related

Android :: Image Capture Resolution On HTC EVO

Jul 20, 2010

I'm trying to capture an image by calling camera utility from "MeidaStore.ACTION_IMAGE_CAPTURE". However, it seems there is only on resolution available 640x480, while the native camera support 8MB resolution.Any permission or extra param needed to get larger resolution option? It'd much appreciated if anyone can help on this.

View 3 Replies View Related

Android :: How To Catch An Image Capture Event?

Jan 18, 2010

I am trying to find a way to listen to a built-in Camera application Capture event.I want my application to be triggered each time a picture is taken. Is it possible?

View 1 Replies View Related

Android : How To Capture An Image In Droid / Send It Via MMS?

Jan 16, 2010

We are developing an app that will need to capture camera image and send it via MMS. (large or small image please) Based on a method invocation in another activity, take an image and send it via MMS..

View 3 Replies View Related

Android :: How To Use Web Camera In Emulator To Capture A Live Image?

Aug 14, 2009

As far as i know, Android emulator doesn't have a camera. To capture a live image we have to use the web camera. I have seen code in this web site to use the web camera in the android emulator to capture an image, but I don't know how to use this code.

View 2 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 :: How To Capture An Image And Store It With The Native Camera

Aug 9, 2010

I am having a problem capturing an image and storing it from the native camera app. Here is a sample of some of my code.

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

After the picture has been taken and I'm returned back to my original Activity, When I navigate to my sd card via Android DDMS File Explorer the picture is not there. Anyone know why this is not being saved?

View 2 Replies View Related

Android :: Code For Camera Preview And Image Capture

Jun 11, 2009

This is the code that I have for camera preview and image capture.I am trying to do camera preview and as I press the space button I am trying to take picture and save it in the picture gallery of the Android development phone. The code compiles fine,but as I press the space button,it captures the image and throws an exception and closes the application...

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

View 7 Replies View Related

Android : How Can I Assign Result URI From Image Capture To ImageView?

May 25, 2010

I have Imagebutton or image view in Main.xml How can i assign result URI to ImageView or ImageButton?

View 1 Replies View Related

Android :: Exclude Own Activity From Activity.startActivity - Intent

Oct 17, 2010

My app works with pictures. It can take multiple pictures as an input, process them, and send them again to another app.

As a consequence, my main Activity has declared an intent filter on ACTION_SEND_MULTIPLE for image/* mimetypes and can result in issuing a new Intent with the same action and data type using Activity.startActivity(Intent).

Is there a way to exclude my own activity from the list of apps that is displayed to the user after the startActivity() call ?

View 1 Replies View Related

Android :: How To Capture Preview Image Frames From Camera Application In Programming

Jul 31, 2010

I am writing an app to capture the camera preview frames and convert it to bitmap in Android.

Here is my code:...........

After I start preview, the callback got called with data, but the bitmap is null.

What did I do wrong when convert the byte array to BitMap?

View 2 Replies View Related

Native Camera To Capture Image

Nov 7, 2012

I have created an app in which using native camera to capture the image and use it in an activity.The camera is working fine in all the devices of android but crashes in DROID RAZR.

View 1 Replies View Related

General :: Camera RAW Image Capture?

Aug 2, 2011

Looking for a RAW capture with Android camera.I am trying with Xperia X10 camera to capture RAW image, now it has got Android 2.3.3 and APIs are available.

Also, is there any API or lib or .so which I can play around...

View 6 Replies View Related

Android :: How To Capture Browser Activity Or Callback

Sep 14, 2009

My activity calls a browser activity where the users submits their info to retrieve a PIN. That PIN is then sent as a parameter to a url specified in the request.

View 4 Replies View Related

Android :: How To Capture Key Events With Window-less Activity?

Dec 2, 2009

I have an Activity which has no window (but it has a view). I'm using: getWindowManager().addView(view, params);I've attempted to call takeKeyEvents(true), however I see that takeKeyEvents first retrieves the Window and then calls takeKeyEvents on that Window.In my case, the Window is null.What this means is that I never receive onKeyUp and onKeyDown calls, which I need in order to intercept some key presses from external input devices (similar to a handsfree set for example).

View 10 Replies View Related

Android :: How Do I Know If Activity.onStop Is Being Called?

Dec 3, 2009

I need be able to tell if Activity.onStop() was called because my application is moving to a new activity, or if it was closed because the user pressed the "Home" key or hit the back button from the bottom of the activity stack.The reason is because I need to know when it is appropriate to shut off music that is playing in my application (A game). There is nothing more annoying than hitting home and having something playing music in the background.However, Activity.OnStop() is called for each activity change, and I don't want to suspend music when moving between multiple activities in my app. I just can't find a way to differentiate between going home and going to a internal activity.Am I perhaps hooking into the wrong events?

View 3 Replies View Related

General :: Offline Website Image Capture?

Apr 16, 2013

I made a purchase online utilizing my Razr this weekend and I saved the confirmation website page in my offline saved sites on my phone. I need to print a hard copy of this receipt and when I search on the device for the site I only find a .SKIA type file at the date and time of the purchase. I am assuming that this is the offline image of my save website, but now I can't figure out how to print it.

My phone attempts to search for a WIFI printer, but I don't have one available.

Is their a way to convert the .SKIA to a .pdf and then print it from my desktop or laptop?

View 1 Replies View Related

Android :: Capture / Trap For Activity Not Found Exception

Mar 16, 2009

I am playing with "android.speech.action.RECOGNIZE_SPEECH" and in the source it says to trap for ActivityNotFoundException. However, I am not sure how I can do this, the activity class doesn't support this event. I found it as part of android.content, but am not sure how to implement it. Multiple inheritance?

View 2 Replies View Related

Android :: Does OnActivityResult Get Called When An Activity Is Recreated

Sep 30, 2009

I have a flow A->B->C->D where A desires some information that is obtained by D. B, C, and D propagate the data back through the flow using setResult(RESULT_OK, data) and finish(). All intents in A, B, and C are started with startActivityForResult. However, if B is reclaimed by Android and forced to call onCreate again after C finishes onActivityResult in B is never called and the data never makes it back to A. Is there a way I can be sure that onActivityResult will be called?

View 5 Replies View Related

Android :: Same Activity Called Twice - Multiple AsyncTasks?

May 8, 2010

I have three simultaneous instances of an AsyncTask for download three files. When two particular ones finish, at the end of onPostExecute() I check a flag set by each, and if both are true, I call startActivity() for the next Activity.

I am currently seeing the activity called twice, or something that resembles this type of behavior. Since the screen does that 'swipe left' kind of transition to the next activity, it sometimes does it twice (and when I hit back, it goes back to the same activity). It's obvious two versions of the activity that SHOULD only get called once are being put on the Activity stack.

Could this be from both onPostExecute()s executing simultaneously and both checking the flags each other set at the exact same time? This seems extremely unlikely since two processes would have to be running line-by-line in parallel...

A lot removed from this question since I was way off in what I thought was wrong. Nonetheless I found the answer here quite useful, so I have edited the question to reflect the useful parts.

View 1 Replies View Related

Android :: Launch Activity From On-screen Camera / Capture Button?

Feb 8, 2010

Is it possible to start an activity from the built-in Camera app after the user touches the on-screen Capture button?

View 4 Replies View Related







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