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 CyanogenMod 13 (Android 6.0 Marshmallow) 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 CM13 zip build file from here https://download.cyanogenmod.org/?device=mako
download Google Open G-Apps from here http://opengapps.org/?api=6.0&variant=pico

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

activate TWRP SideLoad option 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

22 November 2015

Windows AdDuplex NuGet support

The best way to integrate AdDuplex into your project is through NuGet system, and not Visual Studio Gallery on MSDN.

This prevent Visual Studio Designer from Unhandled Exceptions.

So, if you already added Reference on installed AdDuplex support from Visual Studio Gallery on MSDN, remove it, and add corresponding NuGet packages for AdDuplex support.

Then in Windows 10 Universal project:

Add a namespace declaration to your page
xmlns:adduplex="using:AdDuplex"

Add an AdControl to your page:
< adduplex:AdControl AdUnitId="xxxxxx" AppKey="xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" />

Then in Windows 8.1 Store project:

Add a namespace declaration to your page:
xmlns:adduplex="using:AdDuplex.Universal.Controls.Win.XAML"

Add an AdControl to your page:
< adduplex:AdControl AdUnitId="xxxxxx" AppKey="xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" />

Then in Windows 8.1 Phone project:

Add a namespace declaration to your page:
xmlns:adduplex="using:AdDuplex.Universal.Controls.WinPhone.XAML"


Add an AdControl to your page:
< adduplex:AdControl AdUnitId="xxxxxx" AppKey="xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" />

Happy coding !


           

19 October 2015

How to fix MS Office 2016 file associations

If you lost file associations after MS Office 2016 installation, then go to Control Panel - Programs and Features, select Change on right click of the Microsoft Office 2016 item.

Then choose Quick Repair and the problem schould be fixed...

21 September 2015

Setup Windows God mode

This is hidden Windows Icon called God Mode, witch enable you many hidden Control Panel settings. Procedure for creating this God mode icon is:

Step 1: Right click on desktop

Step 2: Click Create folder.

Step 3: Name new folder like this : GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} and press Enter.

Step 4. Enjoy God mode

20 September 2015

How to fix JavaScript IntelliSense in Visual Studio

If you have situation, that after some update in Visual Studio (TypeScript, for example), when you edit a JavaScript file, IntelliSense not work, here is a fix procedure:

Make sure your computer has an internet connection, and
If the Tools for Universal Windows Apps Development are still installed:

Go to Programs and Features, select Visual Studio 2015, click Change.
In Visual Studio setup, click Modify.
Deselect the feature Tools for Universal Windows App Development.
Select Tools for Universal Windows App Development again, and click Update.

If you have already uninstalled the Tools for Universal Windows Apps Development:
Reinstall Tools for Universal Windows App Development.

Or, take the following steps to reinstall the JavaScript project system and language service:
Download the installer for your edition of Visual Studio, such as, vs_community.exe.
Open a command window, and run the following command:
vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive

Change directories to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE.
Run the following commands
devenv /updateconfiguration
devenv /clearcache

16 September 2015

How to recover missing default volume icon in system tray on Windows 10

If you have missing volume icon in system tray on Windows 10, then you should run Registry Editor, with open Run by typing Win+R buttons. Enter "regedit" which means we are editing registry. In here select key 

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Current Version\TrayNotify 

Here find couple of registries name IconStreams and PastIconStreams
Select those and delete them if exists.

Restart Windows Explorer or MS Windows, and your volume icon should be recovered.



How to restart Windows Update service

If your Windows Update Control Panel applet cannot start update process with button "Try again",
then you should press Win+X for Quick Menu and choose Command Prompt (Admin), and type:


  • net stop wuauserv
  • net start wuauserv
After that commands, response should be - successfully, and you can now restart Windows Update Control Panel applet with no problem.

09 September 2015

How to setup Windows Android Intel HAXM AVD Emulator

This is how to setup Windows 7, 8, 8.1 and 10 for Android Intel HAXM AVD Emulator.

In Administrator Command Prompt (Win+X) type:

C:\>bcdedit /copy {current} /d "No Hyper-V" 
The entry was successfully copied to {ff-23-113-824e-5c5144ea}. 

C:\>bcdedit /set {ff-23-113-824e-5c5144ea} hypervisorlaunchtype off 
The operation completed successfully.

P.S.:
In order to access the new boot menu, I select Settings (Windows Key + C) then Power, and Restart but hold down shift on the keyboard while clicking Restart with the mouse.