How can my Windows Phone 8 app make the hardware volume switch target Media + Apps instead of Ringer + Notifications without media being played at the time?
If your app has the ID_CAP_MEDIALIB_PLAYBACK capability specified in the manifest, the volume ringer should show Media by default. You don't have to actually be playing media at the time.
Related
I see more apps on the Windows Phone depends on the Phone Model.
GroupOn, Nokia apps, App folder are some of the apps I mean. I can only install these apps if I've Lumia Phone. Else I can't install.
Like that, I wish to develop an app only for the Lumia devices. How could I develop ?
Manufacturers and operators have the ability to add apps either when devices are provisioned or via separate app stores.
You'll need to work with the manufacturer to set this up.
This is normally done for apps they've developed themselves or have some kind of exclusivity deal with the app. They don't have public ways for developers to request this.
There's no way to release an app in the store and make it only available to specific devices. I've seen a few apps that are intended for only a few devices with comments in the store description to indicate this but there's no way to stop people with other devices installing - and inevitably leaving bad reviews.
Why would you want to limit your potential user base anyway? Especially when non-Nokia devices are less than 10% of the market anyway.
You'll find it very difficult to get your app for download by device only without working with the OEM to get your app into their own collection on the Store.
If you're thinking of making your app Nokia only, get in touch with the Nokia Developer Program and see if you can get in that way.
Do you want to ask that only Nokia user can see your app other user can't like Samsung or HTC then you can't there is chance if QA team pass your code.........
try to access device info (line name)
if you found device name Lumia then open your application else just exit from application
private void initialize(object sender)
{
string deviceDetails = "Device detail";
deviceDetails += DeviceStatus.DeviceName + ",";
MessageBox.Show(deviceDetails);
//to know whether device supports smooth streaming of multi resolution video
if (deviceDetails.equals("..your supportes device 1..") || deviceDetails.equals("..your supportes device 2.."))
{
MessageBox.Show("Supported");
//open application go further
}
else
{
MessageBox.Show("Not supported");
//close your application
}
}
I am new to windows phone and developing an app to change general to silent mode while reaching a place.
How can i access windows phone profile settings silent/vibrate? is there any way to change profile using GPS while reaching on a specific location?
Or is there any way to create a new profile settings and using these settings instead of built-in one?
It is not possible to access the silent, vibrate and volume settings in the current Windows Phone SDK.
Similair question: How to access silent/vibrate mode for windows phone using C#?
While Microsoft appears to have a robust video capture API for Windows Phone 8, it appears that any videos captured must be stored in the application's local storage, which is not accessible from the File Explorer when the WinPhone 8 device is connected to a Windows 8 PC.
Also, the app cannot store the videos anywhere the user could easily copy them from the phone. It is limited to its own isolated file system. This stackOverflow posting explains how the Win8 phone is locked down:
Windows Phone 8: Media file access
So, I can capture and store a video, but how do I get it off the phone to somewhere a user can manipulate it?
If you want those captured video off your phone then you can email/share it using ShareMediaTask & then can get that video out off the phone.
May be its not worth your requirement but if the purpose is to get it out off phone then it will help.
I am trying to capture video using a custom app on windows phone 8.
I am following the guidelines as per the link here.
I am clueless on how to set the resolutoin for the captured video. Currently it is being recorded at a resolution of 640x480 by default.
You are using the VideoCaptureDevice class which is the Windows Phone 7.5 API for recording video. That API by design is limited to 640*480.
If you want more control over the recorded video, you should use the new Windows Phone 8 API: AudioVideoCaptureDevice which has a SetCaptureResolutionAsync method. Of course, it will require a Windows Phone 8 device.
I have written an app that performs some lengthy operations, such as web requests, in a background thread. My problem is that after a while the automatic screen lock turns the screen off and my operations are aborted.
Is there a way to prevent the screen to be automatically turned off during these operations? Or is it in some way possible to keep running while screen is turned off?
I know there are ways to prevent the screen to turn off while debugging, but i need this behavior in the hands of the end user. Therefore I can not rely on some setting being set on the phone, but rather some programmatic solution.
The screen can be forced to stay on using the UserIdleDetectionMode property of the current PhoneApplicationService.
To disable automatic screen lock:
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
To enable it again:
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Enabled;
More information can be found on MSDN
I know this question is about Windows Phone 8, but I had a hard time figuring out the way for Windows Phone 8.1 (Universal XAML Apps).
Use:
var displayRequest = new Windows.System.Display.DisplayRequest();
displayRequest.RequestActive();
Apps that show video or run for extended periods without user input can request that the display remain on by calling DisplayRequest::RequestActive. When a display request is activated, the device's display remains on while the app is visible. When the user moves the app out of the foreground, the system deactivates the app's display requests and reactivates them when the app returns to the foreground.
See: http://msdn.microsoft.com/en-us/library/windows/apps/br241816.aspx