Windows phone profile control programmatically - windows-phone-8

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#?

Related

Launch a Windows Phone app with android AAR (NFC)

I have a device with a hard-coded NFC tag that opens an Android app based on an Android Application Record (AAR). Basically it calls an Android app to open with type android.com:pkg and payload com.something.Something.
I have researched on how to launch my Windows Phone app with that existing tag, but in the end I have only found that Windows Phone can launch an app if the NFC tag is adequately programmed to open the Windows Phone app ID or the custom protocol registered in my app. But it is very important that I use the existing NFC tag which opens the Android app ID.
What is curious is that my Windows 10 Mobile detects this existing NFC tag to want to open the app when I touch it with my phone and prompts me if I want to launch an app? But the app with that ID isn't installed so I did a research on how to put this app ID on my Windows Phone app but in the end I only got deployment errors.
Android Application Records (AAR) cannot be used to launch Windows apps. Windows uses a different system to launch apps (Launch Record). The main probem is that Windows uses a different scheme to identify apps (not a Java package name as Android does). Moreover, Windows apps cannot be set to be automatically launched based on the data contained in an AAR, hence, it's not possible to build some custom filter that starts your Windows app based on that AAR.
The workaround that's currently known seems to be what's discussed in Cross platform launch records with extra data on Windows Phone and Android. Though this requires modification of the data structures on the tag side.

OneDrive not available in FilePicker

I am playing alittle with windows phone 8.1 app creating. Using C# and phone emulator in VS2013. I have read on microsoft's page that i should be able to see OneDrive in standard file picker (msdn.microsoft.com/en-US/en-en/library/windows/apps/dn263258.aspx):
Use the built-in Windows features.
Whenever possible, use the Windows features and UI to host or interact
with OneDrive. For instance, use the file picker provided by the
Windows.Storage.Pickers namespace for opening and saving files. As
another example, have your app use the Windows application data APIs
to save smaller pieces of data across a user's devices.
I am using standard code from tutorial like:
openPicker.FileTypeFilter.Add("*");
StorageFile file = await openPicker.PickSingleFileAsync();
and it works but there is no OneDrive to choose. I have internet connection on emulated device and i am logged in to OneDrive.
Have you integrated your file picker with the OneDrive contract?: http://msdn.microsoft.com/en-us/library/windows/apps/hh465192.aspx
You can also use the Live SDK single sign-on feature for Windows Phone here: http://msdn.microsoft.com/en-us/library/dn631823.aspx This way, your app should work for your testing purposes because you are already signed in.
I hope this helps!

How to Determine App Capabilities in Windows Phone 8

According to http://msdn.microsoft.com/en-us/library/windowsphone/develop/gg180730(v=vs.105).aspx#BKMK_wp8apps The Windows Phone SDK 8.0 does not contain tools to detect the capabilities required for apps that target Windows Phone 8. When you submit an app that targets Windows Phone 8 to the Store, capabilities are not analyzed and the app manifest file is not regenerated or corrected. In my application I am using CameraCaptureTask and ShareMediaTask to first capture a picture and then share. By default in my WMAppManifest file I had ID_CAP_MEDIALIB_PHOTO, ID_CAP_NETWORKING, and ID_CAP_SENSORS. I do in fact use the MediaLibrary t gather a photo path for the ShareMediaTask, so I have left that capability in WMAppManifest. Do I need the other two as well if the actual image capture and sharing occurs not within my application but within the CameraCaptureTask and ShareMediaTask?
The ShareMediaTask does not have any capability requirements.
The CameraCaptureTask only requires that you specify the camera hardware capability.
For reference, the rules are defined in :
"C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\Marketplace\Rules.xml"

medialibrary in windows phone 8

I have developed an app for windows phone in windows phone 7.Everything is fine in windows phone 7.
But when i upgraded it for windows phone 8,I found that the listbox of images is not showing in a page.After debugging
I found that media library is returning null,thats why listbox of images not showing any images
After searching over internet I found that for accessing media library images we have to first open windows phone's native photo app(native pictures).So I did it ,windows phone 8 emulator.Now it is working,but every time I have to open this native photo app,then I have to open my app,then only its working..Actually I dont have windows phone device,I just installed windows phone 8 sdk and tested it..
So my question is,Is there any way to directly access the media library with out opening native photo app,so that user dont have to open his native app every time before opening my app
You don't have to worry, that problem won't affect Windows Phone 8 devices, it only concerns the emulator.
Here's how I access media library's album and pictures:
https://multiphotochooser.codeplex.com/
You could check on the source code to know how to achieve your goal.

Programmatically communicate with Windows 8 Music Player

I would like to know if it is possible to programmatically communicate with the default Windows 8 Music Player (Windows store app).
For example, when is it start/finish playing a new song, what is the name of the song etc.
I vaguely have an impression that WinRT app are based on COM/DCOM, so I suspect there maybe a way to expose that to be consume by external program. Is my assumption correct?
Windows store apps are "sandboxed" apps. You can't communicate with other WinRT apps. So you can't access what's being played in Music app of Windows 8 app.
The only way a windows app can communicate with it's host environment is through what is called Activation Protocol which basically opens another app. So metro media players can't provide info about what they are doing to other apps.
Also a metro app can ask a file to be opened by default handler of host system.
So the answer is no. There can't be a way for the media player to inform other apps about it's status.
Windows metro Apps are more similar to a Silverlight app than a COM/DCOM component.