?
Solved

Windows Mobile 7.1 - Taking Photos

Posted on 2011-10-27
5
Medium Priority
?
276 Views
Last Modified: 2013-12-27
My application interfaces to the camera and this all works fine in the emulator.  In real life I have found 2 problems :-

1> Sometimes when holding the phone shutter button I seem to get thrown out back to the Windows Mobile 'Home' screen and need to restart my app.  Works fine in the emulator and I can't see any errors in the code.

2> When using the phone itself, the photos take a bit longer to create than in the emulator.  What I am finding is that it is very possible for the user to click the phone 'Back' button while waiting for the asynchronous save of the photo.  Can I disable the back button while waiting for the photo to be saved?
0
Comment
Question by:ChrisMDrew
  • 3
  • 2
5 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 37038940
  protected override void OnBackKeyPress( System.ComponentModel.CancelEventArgs e )  
   {            
       e.Cancel = true;  
   }  

Its not good practice and should only be used when absolutely needed.
0
 

Author Comment

by:ChrisMDrew
ID: 37038947
Any other suggestions as to how to prevent the user moving off the camera screen before the image has been saved?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 37038972
Should the user not be able to cancel the picture?
0
 

Author Comment

by:ChrisMDrew
ID: 37039145
Probably - the issue I am finding is that there is no real indication that the photo has or has not been saved.  I write out a little message when the save has completed but if the user is impatient it is easy to miss this and just click back...   Maybe I need a 'Saving...' type message first
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 2000 total points
ID: 37039160
How About

private void PhotoProviderTaskCompleted
   (object sender, PhotoResult e)
{
 
   if (e != null && e.TaskResult == TaskResult.OK)
   {
      ONLY IF YOU GET HERE DO YOU SAVE
   }
}
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Progress means simplifying, not complicating. Bruno Munari Preface How to detect the name of the internal storage or an SD-card on Windows Mobile device from the desktop application? I got this question, when I was working on a PC applicati…
Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question