taking automatic photos windows phone - windows-phone-8

I want my windows phone application to take automatic photos without the users intervention.
The cameraCaptureTask.Show() method opens the camera application and this is not what I want to do. I want to be able to take photos without asking the user to click on anything.
how can I do that?

Use PhotoCaptureDevice documented here: Capturing photos for Windows Phone.
However, when do you want to take photos? What is the logic behind it? Be aware that your application must be running to take photos programmatically.

Related

How to select keyboard in Tizen/HTML5 for Wearables

I have two system wide keyboards pre-installed on my Tizen Wearable device, the first one is a stock Samsumg's keyboard, the second one - Custom. The first one is a user's default selected in Settings.
I don't want to change the system's default, but I want my application to use the Custom keyboard.
In native API I've seen Tizen::Ui::InputConnection object that can be used as a property in Edit or TextArea controls, but I didn't see anything like this in HTML5 API. Searching Tizen's forum didn't help.
I've also seen in Tizen's SDK IME's WebHelperClient example a number of undocumented commands used to talk to a Tizen's service through a websocket. Probably there is a command to select an active keyboard, but I didn't find it.
Any leads are appreciated.
IMO that is not possible for either web apps or native apps.
Reason:
1. In gear, simultaneously two Keyboard can't be active at the same time.
Also, suppose there is an API available which you can use to change to custom keyboard while your app is running, but what if you close your application not using the normal hardware exit(i.e. Swiping down), rather you close it from "Recent Applications" then the custom keyboard that you activated for your app will be set for other applications as well.
Also the documentation available here doesn't explain anything which you are asking
https://developer.tizen.org/documentation/guides/web-application/tizen-features/ime-application

Overlay an app on top of another

Any way I can write a windows store app (for phone or other) which will allow me to draw on top of other apps? In other words, I'd like my app to run in the background and not handle any user gestures but be able to draw on a semi-transparent overlay / canvas above any other running apps. I can do this in windows 7 but WinRT is new to me.
thanks
I do not believe it is possible due to the sandboxed nature of Windows Store Apps to do something like this (much akin to iOS). Windows 8 has much tighter security in its applications, so much so that you can't even take a screenshot in a metro app, because if a user has split the screen to hold two apps, you could potentially capture information from the other application.
Please correct me if I'm wrong, but I've encountered this problem before and have found no viable solution.

Run Windows Phone App in background without UI

I am developing a Windows phone 8 app that need to run only in background with UI. Is there any way I can run the app in the background, or without actually being open?
It depends upon what you want to do in the background. Generally speaking you can't implement something like a Windows service that will startup automatically when the phone is launched.
That said you can run your app in the background within given limitations. Check out MSDN for detailed information.
Why all these limitations you might ask yourself? It's to provide a good battery life to the user.
Edit:
For the periodic agent to start running the app must be started once. Further the agent must update a live tile (user must pin it to the start screen) or the app has to be once opened every 14 days.
Another option might be using push notifications to trigger an update..

Is three a way for a Chrome App to reach user's file on hard drive with permission?

I'm developing a Chrome Packaged App with video playback feature.
First of all, I want to allow the user to stream online media (e.g. MP4 video), and at the same time, saving the video to a location chosen by the user. Is there a way to achieve so?
Also, I want to save the locations of media played by the user, and allow the user to play it later without locating it again. Do anyone have some ideas on that?
Thank you guys very much.
You should be able to do what you want. Your best bet currently is to use the chrome.fileSytem API, which lets you save files to a location chosen by the user. You can also use retainEntry and restoreEntry to allow you to play the files back in later sessions, however I don't believe that is not available in stable channel yet (it is currently restricted to the dev channel, but should be available for general use in version 31).
Also check out the chrome.mediaGalleries API. It is designed to provide access to media, however it doesn't provide the write capabilities you need yet.
Streaming can be done using HTML5 Video tag.
Please check :
http://html5doctor.com/the-video-element/
Also, you can use plugins like :
http://www.videojs.com/

Windows Phone 8: How to remove the delay of a Pivot control?

I want to use the Pivot control in my Windows Phone 8 app. It all works great except for one little detail... it seems to have delay when I swipe between pivot items.
To explain what I am talking about. Please compare the following:
In Visual Studio, create a new project based on the "Windows Phone Pivot App" template. Run this on a device or in the emulator. Swipe left or right a couple of times.
Now open up the settings app or the native mail app on Windows Phone 8. Those apps use a Pivot as well. Now swipe left or right a couple of times again. Notice how fast new content is displayed every time you swipe!
So basically: I want to remove the "delay" I experience when using the stock Pivot control and instead have the same speed as the settings and mail app.
Can anyone help me out please?