Camera feature on UWP - camera

I am a student that is currently developing an UWP application. And I am trying to build a camera feature within my program. I have tested out this set of sample codes from Microsoft
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CameraStarterKit
But I want to modify a little from the codes.
Here is what I am trying to do:
I wish to have a preview screen to show the user the photo their have taken and if they are not satisfied with it they can retake it. I am not very sure how to show a preview of the photo taken.
I do not wish to save the photo on my local storage, but instead, allow the user to send the photo they have taken to their email by typing in their email address. The main question will be, do I have to store the picture somewhere in order to send them out?

I can tell you already have the hard part figured out. Let me answer with some advice: save the file to a local folder. You can easily save the file to the Temp folder. It costs you nothing, and you don't balloon your memory footprint while you are at it. When the user wants to send, you can send it from the folder - and that is easy. Don't make things harder on yourself with difficult requirements that don't do anything but add complexity and fragility to your app. I hoe this makes sense, please take it with the utmost respect.
Best of luck!

Related

Download email attachment through VB.NET on Outlook Web App

I understand that similar questions have been asked before on Stack Overflow and all over the internet, but my situation is a bit unique. Let me give some context:
I want to make a macro/program that automatically downloads attachments sent from a set of emails (according to date) in a specific folder on the Outlook Web App. The only issue is that this is for my workplace, and the IT department is refusing to give me the password for the outlook account which makes it difficult to sync up the Web App to the on desktop application (I am a pharmacy student who works at a Chemist Warehouse and I'm just doing this as a local pet-project because lockdown is making me bored, it would not be used for all stores).
I have come up with an idea for the solution, essentially I want to use the urlmon ability of VB.Net to download the attachment as a file from the web. I was thinking if I could put a Web Browser control on the form, make it invisible and when the program loads up it automatically goes to the store email (I can get the url), to the appropriate folder. I then want to be able to read the HTML content perhaps? and then download any and all attachments in all emails received today for example in that folder.
I understand this is a unique and weird situation, so any help is much appreciated. If there are any further questions please feel free to ask and I will answer to the best of my ability.
Thanks in advance :)
This issue has been solved now. I used the Selenium Web Driver, integrated it to VB.NET and then used it to scrape the email. Feel free to comment if you wanna know how I did it. I'm gonna close this question thread now :)

How to check if a picture was taken by the user or not

I've recently run into some trouble in a Web app I'm developing. In this Web app I allow users to upload pictures and I need to check -to a certain extent- that the pictures they upload were taken from their own cameras, webcams, mobile devices, etc.
If I can't guarantee that the image being uploaded "belongs" to the user (e.g. was downloaded from somewhere on the internet, made in Paint, etc.) the file is discarded, otherwise it is stored.
I know any method to implement this will be highly inaccurate and will produce many false positives -or negatives- and that there is no bulletproof solution, but I'm just looking for a tentative way to do it.
So far I've thought of
checking if the picture has Exif data present and if so, if it's
date is relatively recent, store it
providing the option to take "snapshots" from the user's webcam like Facebook does
for the profile picture
Are there any other ways to do this?

Location-specific (GPS-based) apps and the Apple Review Process, should they work without GPS too? [edit]

I was wondering if anyone has any experience of submitting location-specific apps to the Apple App store.
What I mean by location-specific is an app that only works when you are at a particular location. For example, a GPS tour of a historical battleground might have content that is triggered at particular lat/long coordinates when the user is at the actual physical location.
So my question is: In order to make the app be likely to be accepted on the app store do I..
(1) Not worry about it as there's evidence that the Apple Reviewers have some way of simulating the GPS. I can then supply lat/long coords to the reviewers so they can experience some of the content.
or (I suspect more likely)
(2) I Need to make it work anywhere in order for the reviewer to see at least some of the content (e.g. have a menu or map interface that allows direct access). This could be a 'secret' option explained in the review notes accessed via a special key combination or something.
Has anyone else run into a situation like this?
Regards,
Ben
Edit: Thanks for the responses. My app has now been accepted by Apple. Interestingly I didn't need to make the app work anywhere or add any new methods of using the app at all, they simply asked me for a video of the app in action. I made a YouTube video of the app (unlisted of course) and sent it to the reviewers.. and now it's accepted! I was very surprised that this is how it worked out!
I asked this same question (and answered it myself) a while back. I basically added a "Drop Pin" feature so the testers (and users) could pretend to be somewhere else.
I submitted an app recently that "works anywhere" (and uses GPS) but "works best" in New England when looking for data (on our server) that is near your current location. The app also supports entering a city & state or zip code to perform searches. So, in the submission, you can tell the reviewers how to test it, and we explained the nature of the app and how to test the functionality by using specific New England locations. The app was approved, for what it's worth.
Basically, when you submit an app, there is an opportunity to give the reviewers guidance. So definitely tell them what they need to know to make your app work for them, wherever they might be in the world! :-)

First Startup on a vb app

I want to make an app which you make a password and username and use it for the app but I only want this screen to open the first time you load the app so after the first load it goes right to the login screen
sorry I am a complete n00b at vb
I am using vb.net
I do not know how do any thing like store info nor am I knowedgable about SQL servers
I have basic knowlegde but not enough
this is not going to be a full blown app I am just trying to learn some new skills
so I am not going to worry about making new passwords or usernames and storing them for each individual user
I was just hopeing on learning how to make a login screen of some sort
THIS IS FOR EDUCATION PURPOSES ONLY THIS IS NOT GOING TO BE PUBLISHED
Just store the information is the users profile or a known directory (encrypted of course) and then look for it before the showing the dialog. If its there, just read the info.

What is the best way to start a movie the first time your app starts

I want to have a movie start the first time my app is launched to train users on its use, say a 50 second clip.
How would I go about doing this in an iPad app?
(I am building a very complex platform that has hooks into the web and need users to be aware of that. The video will explain that users can go to the website for different features. When the app starts for the FIRST TIME only I want the video to play.)
Don't force users to sit thru a 50 second movie when the app starts. Your user interface should be obvious enough that they can figure out the basics without watching a training video. If you want to offer it, provide a help button, where they can watch it when they choose to.
See the iPhone HIG section Minimal User Help, which says:
A hallmark of the design of iPhone
OS–based devices is ease of use, so
it’s crucial that you meet users’
expectations and make the use of your
application immediately obvious.
EDIT -- The simplest way to keep track would be to store a flag indicating whether or not you have shown the video by using NSUserDefaults. Check if it's set at startup, set it after showing the video the first time.