18 August 2016

How to replace AdMediator control with AdControl in UWP

If you developed application in Windows App Studio for Universal Windows 10 platform and generate source code for further developing in Visual Studio, than :

* Install Microsoft Store Services SDK

Open MS Visual Studio and working project, than :

* remove refence on Microsoft Advertising Universal SDK
* open Layouts\Controls\AdvertisingControl.xaml
* replace

xmlns:Universal="using:Microsoft.AdMediator.Universal"
with
xmlns:Universal="using:Microsoft.Advertising.WinRT.UI"

* replace
<Universal:AdMediatorControl
with
<Universal:AdControl

Select AdControl in Design window and enter these Miscellaneous properties :
* AdUnitId
* ApplicationId
which you prepared in Windows Dev Center - Monetization section

Rebuild project and thats it.




14 August 2016

Windows 10 Apps crash fix (Weather, etc)

If you expirience Windows 10 Apps crash or close, it is likely that the problem is being caused by inadequate access permission to the C:\Program Files\WindowsApps

Go to the directory and right click it and click in Properties, then check the security tab and give access permission to your user (set yourself as directory owner). 

This should solve the problem of any application within the WindowsApp directory that is crashing.

18 March 2016

Install Custom ROM on LG Nexus 4

Install adb and fastboot on your PC

download TWRP 3.0.2-0 from here https://dl.twrp.me/mako/
download CM 14.1 zip build file from here https://download.cyanogenmod.org/?device=mako
download Google Open G-Apps (arm 7.1 nano) from here http://opengapps.org/

check connected device with
> adb devices

reboot phone with
> adb reboot bootloader

install TWRP using fastboot
reboot phone into bootloader using down volume and power buttons
> fastboot oem unlock
reboot phone and go back into bootloader
> fastboot flash recovery twrp-...-mako.img

go straight from bootloader into recovery

use the TWRP menu to

- wipe System, Data and Dalvik Cache

back to TWRP main menu to

use adb to send build zip file to /sdcard
> adb push cm-13.0-...-mako.zip /sdcard

use adb to send zip file to /sdcard
> adb push open_gapps-arm-6.0-pico-....zip /sdcard

use the TWRP Install menu option to

- install both zip files

reboot and wait five minutes