How to invoke system camera from custom Windows phone 8.1.app - c#

Is there a way to use default camera app(Nokia/Microsoft camera) in my app?
I would like to, on btn click to call system camera. Take a picture with it, and then upload that picture to the server from my app.
If there is no way to do that, what is the best way to create camera app so user can use zoom, flashlight, etc.
EDIT:
This was available in older versions of Windows phone, and it was simple to use
like this:
CameraCaptureTask camera = new CameraCaptureTask();
camera.Show();
camera.Completed += new EventHandler<PhotoResult>(camera_Completed);
I don't understand why would MS remove this ability from Windows phone 8.1
Thank you,
regards

The camera capture task was based on Silverlight APIs and was valid for Windows phone 7 and 8 that used silverlight Pages . The camera APIs are now based on WinRT Universal APIs . Have a look at this
https://channel9.msdn.com/Series/Building-Apps-for-Windows-Phone-8-1/17

You can do by this link,
capturing an image in windows store 8.1

Related

How to change the default settings of Camera on MediaCapture Windows Phone 8.1 RT?

I have an app which can capture image (just demo app) but I do not know how to change the Camera mode of this and how to turn on/off/auto of FlashMode, or how to make a camera focuses (I do not know to to present it, sorry) before taking a photo? I tried many examples but they are about Silverlight platform or Universal Windows App when I am developing on Windows Phone 8.1 Runtime.
Can you help me please!
P/s: I used MediaCapture and CaptureElement to take the photo.
Here are some links that could help you on your way.
Silverlight:
https://code.msdn.microsoft.com/windowsapps/AdvancedCamera-ba47da27
WinRT:
http://wpcsharp.blogspot.nl/p/how-to-use-camera-in-wp-81-app.html
http://www.slideshare.net/WindowsPhoneRocks/17-camera-media-and-audio-in-windows-phone-81 (best)
Flashlight WinRT:
https://msdn.microsoft.com/library/windows/apps/dn279077

Universal Windows Library (UWP) Way to take screenshot?

I would like to create a ScreenCaptureLib.dll which is intended to be built for Universal Windows.
We already have the following using Windows.Forms:
https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib
Obviously none of the Windows Forms code does not work and I would like some pointers in the right direction to get started.
You may follow the official document for Record the screen with ScreenCapture, but please notice that:
The ScreenCapture API is only available on mobile devices.
And for now there is no API can be used directly to capture the screen on a desktop from an UWP app. However, as a workaround method, we can render the XAML tree to a bitmap, to do this, please refer to Capturing Snapshot in Windows 8.1 Store App.
You may also submit a request to add this new feature for developing through the Windows Feedback tool.
Update:
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.

About Camera UI in window phone 8.1

How to access to Standard Camera Capture UI from code in winphone 8.1?
I tried FileOpenPicker to open Picture Library (added button to access camera on navigation bar). Is there any another way to access Camera Capture UI than using FileOpenPicker, for example- custom UI with class MediaCapture or is it not a good idea to use MediaCapture for simple capturing image? It mean, Can I call to Standard Camera Capture UI if I know what happen when click button camera in FileOpenPicker?
Sadly, there isn't one in Phone 8.1, see here: CameraCaptureTask missing in Window Phone 8.1 runtime???
You can use the FileOpenPicker to let the user choose an existing image or if they so choose, they can capture on in the moment by tapping the camera button in the app bar.
Windows Phone 10 is set to bring this back, as far as I know.

Drawing a Custom Bitmap in Windows Universal App?

I'm trying to draw a custom Live Tile in my Windows Universal App. Specifically, a circle. I understand that I can provide a bitmap, but I'm not having any luck.
I've tried to follow examples online, but without any luck. Like this: How do I create a WP8 Live Tile with a custom layout?
It uses a WriteableBitmap's .Render() - but when I try to do the same, it seems that .Render() does not exist.
Can someone give me an example of how to create a bitmap that will work in a Universal App that will run on Windows Phone 8 (and ideally the Windows 8 + Windows 10 + Windows Phone 10)?
If I understand you correctly, then RenderTargetBitmap is the new class you are looking for. This is supported by Universal apps and supports the rendering of UI elements.

Windows Phone tiles in app

I am working on a Windows Phone 8 app, and have a question about UI design. Please take a look at the image below:
What I am trying to add to my app is something like the above UI under "recent" tab. That is, some kind of live tile style thing with-in the app.
If anyone has experience about how to build such kind of in-app tiles, please share some idea or code sample.
Thank you
The Windows Phone Toolkit provides a Windows Phone HubTile control:
Here is a tutorial on the Nokia Wiki that explains how to use it.
Use HubTile control from Windows Phone Toolkit library.
There are couple tutorials about that control available, e.g.
http://igrali.com/2011/08/19/how-to-use-the-hubtile-control/,
http://www.developer.nokia.com/Community/Wiki/HubTile_in_Windows_Phone

Categories

Resources