CaptureElement was not found , missing assembly reference - windows-phone-8.1

I am using Visual Studio 2013 Express, developing new camera app for windows mobile 8.1 , getting error :
<CaptureElement x:Name="myCaptureElement"
HorizontalAlignment="Left"
Width="320" Height="240" />
CaptureElement was not found, missing assembly reference . .

As you have mentioned, you are targeting WP8.1 Silverlight - and as MSDN says, CaptureElement class is olny for Runtime:
Windows Phone 8.1 [Windows Runtime apps only]
If you need to take a photo in Silverlight, you may think of using Camera Capture Task, which:
Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1
You may also have a look at this nice article.

Related

SocketActivityTrigger and pushNotifications

Why I need to check pushNotifications capability, when I use SocketActivityTrigger? What is the purpose of it?
You don't.
Push notification capability (ID_CAP_PUSH_NOTIFICATION) is for Windows Phone 8/8.1 Silverlight.
Both Windows Runtime 8.1 and UWP (Windows 10) do not have a push notifications capability, see the list of all capabilities in UWP.
If you check the official sample for SocketActivityTrigger, you'll see it only uses capabilities for internet connectivity.
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="privateNetworkClientServer" />
</Capabilities>

Windows 10 Mobile Direct3D

I have a C++ project targeted for Windows Phone 8.1 that uses Direct3D11,
I tried using that project with Windows 10 Mobile device but at fails in the following line:
hr = D3D11CreateDevice(NULL,
D3D_DRIVER_TYPE_HARDWARE,NULL,
D3D11_CREATE_DEVICE_DEBUG,
featureLevels,
sizeof(featureLevels) / sizeof(*featureLevels),
D3D11_SDK_VERSION,
&m_d3dDevice,
&featureLevel,
NULL);
returning error code 0x887A002D -> DXGI_ERROR_SDK_COMPONENT_MISSING,
Any idea how i can make this work on a Windows 10 Mobile device (Preferably without migrating the project to a universal application project)?
I have found the solution,
This is caused because graphics tools feature is not enabled on the device,
To enable the feature on the mobile device:
1) Open Visual Studio 2015
2) Click Debug -> Graphics -> Start Diagnostics
3) On the mobile device go to Settings -> Updates and install the update

Why I can't create a file in pictures library successfully based on Windows Phone Silverlight 8.1?

In my WP Silverlight 8.1 App, the following codes would throw a UnauthorizedAccessException, and tell me that Access is denied, but it works very well on Universal Apps.
StorageFolder storageFolder = KnownFolders.PicturesLibrary;
StorageFile file = await storageFolder.CreateFileAsync("mytest.dat", CreationCollisionOption.ReplaceExisting);
To access the pictures library on Windows Phone 8.1 you must have the following capability in your package.appxmanifest file:
<Capabilities>
<Capability Name="picturesLibrary" />
</Capabilities>
Given that you already have enabled ID_CAP_MEDIALIB_PHOTO, my guess is that in WP81 Silverlight you need to use Microsoft.Xna.Framework.Media.MediaLibrary.SavePicture.

Cocos2d-X how to change Android minSDKVersion

I have created my cocos2d-X application using the create android script. I now want to lower the min sdk version in the Android Manifest, but that gives me an error t
Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
How do i fix this ? Will i have to create a new project with lower SDK Version ?
Kind Regards,
Muhammad Mateen
You can change in Cocos2d-x in Application.mk file
Like this
APP_PLATFORM := android-9

XAP build is not installing on Window Phone 8?

Does anybody know about building details for Windows Phone 8 in Kony Studio?.
I have installed all the requirements for Windows Phone 8 Device . But, I am unable to run on emulator due to Hyper V settings. Because my processor haven't Virtualization technology. Even though I can build and get XAP file for Windows Phone 8.
XAP File is installed successfully and but is not running. It closed after showed splash screen.
Just to be clear, Kony fully supports using the Windows 8 emulator. There are some configurations that you want to tweak to get it to work ( I've done it successfully myself. )
Before trying to run the emulator with Kony, make sure that you can start the Windows 8 emulator itself.
In the properties of your project, have the following setting: Properties - > Native - > Windows Phone 7 & Above - > Windows Phone 8 - > Application UI -> Supported Resolutions Label - > All the resolutions should be checked
You need to change the capabilities supported by the emulator; again, from the project properties: Properties - > Native - > Windows Phone 7 & Above - > Windows Phone 8 - > Application UI ->Capabilities - > 3 Capabilities should be removed : ID_CAP_GAMESERVICES, ID_CAP_WALLET_PAYMENTINSTRUMENTS, ID_CAP_WALLET_SECUREELEMENT
You need a publisher ID generated; again from project properties: Properties - > Native - > Windows Phone 7 & Above - > Windows Phone 8 - > Application UI ->Packaging->Publisher ID-> Id must be present. Press the Generate button to create.
You then build your application, and use the Windows Phone Application Deployment tool, pointing the XAP to the build directory where your Win phone XAP was created.