Taking a picture with the AVD - camera

I'm testing my app on the AVD emulator ; one of the steps of my App is to take a picture ; when I get there, I get the right screen first (the one that has a take a picture and a Cancel buttons) but after a few seconds, before I can take the picture, I get this error message "The application Camera (process com.android.camera) has stopped unexpectedly. Please try again."
Is this the expected behavior, because I'm using an AVD?
FWIW, I added all hardware options to my AVD, and my code is modified from this link http://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture
Any help is appreciated.
rh4games

Related

Monaca IDE - console.log never appears

X-Post from here, for exposure: https://community.onsen.io/topic/222/monaca-ide-console-log-never-appears
Odd question, but only once while using Monaca IDE has anything ever shown up in the console.log portion of the IDE itself. It only occurred when I had a device synced via the debugger. I have since tried syncing it and I never get the device to show in the drop down box, it usually says unknown device /www/html/…
Now, do know that I have put several console.log(‘test’); lines of code to try this out and still no success. I would think that the IDE’s console area would show the log operations from the emulator and not from the device debugger as it has its own log that is view-able on the device, but this apparently isn’t the case. Is this correct or am I just really missing something simple here?
So this isn’t that big of an issue, but I figured out the problem. Basically, I keep the Monaca IDE tab open in Chrome all the time (I work via my laptop remotely). When I come back after a long absence (several hours, I don’t know what the time out is), the bottom section in the console has the Chrome error showing, like that page timed out. The IDE is still there, just that section is grayed out.
So to fix this, I would just refresh the page. The section pops back and all is good EXCEPT I just figured out that it is at that moment when the device connection no longer works. I can still click Run on Device and it works - syncing with the device - but the console.log no longer shows up. In order to get that back and working, you have to close the tab and reopen it; then everything works.

Windows phone universal app is using camera only one time

In my app I have a button which open camera, take picture and do some processing on it and return back to previous page with the results.
Now Problem is this that it works one time and on second time it open other page but doesn't show camera. Then I have to completely close my application and again launch it to make it work.
I think this is happening because when I am taking picture first time, I open camera, capture it in a captureElement and when I open it second time the previous code is using camera or some thing. I thing there is some thing to close camera which i am missing.
You have to initialize camera every time you navigate to the page that contains it (OnNavigatedTo method). If you want to write a good code you have to deactive camera every time you leave the page (OnNavigatedFrom method). I hope this could be help you.

iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach

I want to debug a today view extension (widget) in iOS 8, so I select the widget under "Scheme" in Xcode, and select my iPhone as the device and hit run. It says "running today-view on iPhone" and on the side bar on the left it says "Waiting to attach". It gets tuck at the "waiting to attach" phase forever and never shows me any debugging info on my iPhone. However this works fine if I select the simulator as my device. After a few seconds of "waiting to attach" in the simulator, the widget comes alive and debugging info is displayed.
Has anybody come across why an extension won't show debugging info on an iPhone but will in the simulator?
Do not stop & start the debugger while notification windows is open in the simulator. Close the notification window. Stop the debugger. Start it again. Debugging widget in iOS8 is very delicate. You need to do everything in a slow non-agressive way (for now).
Edit the extension scheme and make sure that under Run, the Executable option is set to Ask on Launch.
Run the extension scheme.
From the list, select the Today executable.
It should launch the Today app and your extension should be attached to the debugger now.
Close the notification window. It should start working.
I've been able to debug my Today view extensions in this way.
1) Make sure the notification center is dismissed.
2) Stop every process in Xcode with the stop button.
3) Run the extension scheme
4) Pull down the notification center and should hear the usual "app launched" sound from Xcode
5) Debugger will be attached automatically and you'll be able to debug the extension.
Let me know if this works for you.
This happened to me .... Looks like you were doing everything right .... try all the above.
The problem went away when I unplugged and re-plugged in my Phone.
Sometimes click on the widget will fire the running of extension.
Delete the app from your phone
Run the today widget scheme
It worked for me.

Windows 8 app live tile has "X" in the bottom right corner

Just today I started noticing an "X" symbol in the bottom right of my live tiles, see picture.
I'm a little concerned, as I'm currently in the certification queue, that this means I've missed something from the package - a default badge image, for example. Do you know what this means?
The answer appears to be that your developer licence has expired!
when I tried to build something I got a popup alerting me to the problem and asking me to log in to my account again. At which point I was given a new developer licence, was able to build again, and all the crosses magically disappeared! :o)
I imagine the only reason your apps were still working was because they were still in a suspended state so weren't going through a proper launch cycle. The X means it won't run anymore as you don't have a valid licence.

Xcode: Can't create snapshot - This file does not exist in the index

I am trying to create a snapshot in Xcode 4, and I keep on getting the error "This file does not exist in the index." and it says it can't create a snapshot. When I press ok, it has the progress bar for creating a snapshot and doesn't do anything else.
I am guessing this is happening when using the simulator. This happened to me a while back. Use this program:
http://www.curioustimes.de/iphonesimulatorcropper/
IOS-Simulator cropper is a great tool to take screenshots of the simulator. It will let you save the file anywhere and also gives you the option to save only the screen image or with the iphone border. It is byfar the best screen shot program for the iphone simulator I have found. If your not using the simulator, just press the sleep button and the home button at the same time and the picture will be saved to your camera app