Showing posts with label MS Windows Phone. Show all posts
Showing posts with label MS Windows Phone. Show all posts

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 !


           

28 January 2015

Parse News RSS 2.0 image in C#

If you want to parse News RSS 2.0 image from link, for example > http://codecanyon.net/feeds/new-codecanyon-items.atom

The following code can be used to match all img src in the source text and to populate list with value of src attribute.

private static IEnumerable<string> GetImagesInHTMLString(string htmlString)
        {
            var images = new List<string>();
            const string pattern = Imgpattern;
            var rgx = new Regex(pattern, RegexOptions.IgnoreCase);
            MatchCollection matches = rgx.Matches(htmlString);

            for (int i = 0, l = matches.Count; i < l; i++)
            {
                if (matches[i].Value.Contains(".jpg") || matches[i].Value.Contains(".png"))
                {
                    var ms = Regex.Matches(matches[i].Value, Urlpattern);
                    if (ms.Count > 0)
                    {
                        if (!string.IsNullOrEmpty(ms[0].Value))
                            images.Add(ms[0].Value.Replace("\"", string.Empty));
                    }
                }
            }

            return images;
        }

07 September 2014

29 July 2014

How to disable Frame Rate Counter in Windows 8 Applications

To disable Frame Rate Counter in Windows 8 Applications there should enter next line in MainPage.xaml.cs on public MainPage() method :

public MainPage()
        {
            this.InitializeComponent();
            Application.Current.DebugSettings.EnableFrameRateCounter = false;
         }


23 July 2014

Windows Phone 8 and SQLite deploy to device error

On the Build tab, you’ll see Conditional compilation symbols under the General header, containing a default value of SILVERLIGHT;WINDOWS_PHONE on a Windows Phone app project. Change the value to SILVERLIGHT;WINDOWS_PHONE;USE_WP8_NATIVE_SQLITE and save the project file.

06 April 2014

Microsoft Visual Studio development versions and target platforms

It's a little bit confusing to choose which version of Visual Studio is for desired Windows Phone or Windows Store platform. So I create this table :

Platform
Development
MS Windows Phone 7
MS Visual Studio 2010 Express for Windows Phone

MS Visual Studio 2012 Express for Windows Phone
MS Windows Phone 8
MS Visual Studio 2012 Express for Windows Phone
MS Windows Phone 8.1
MS Visual Studio 2013 Express for Windows Update 2 RC
MS Windows 8 Store Application
MS Visual Studio 2012 Express for Windows
MS Windows 8.1 Store Application
MS Visual Studio 2013 Express for Windows Update 2 RC


05 November 2013

Getting 'System.IO.FileNotFoundException' in Windows Phone Project with Background Agent

If you start getting 'System.IO.FileNotFoundException' in Windows Phone Project with Background Agent, than you probably missed to add Reference in main project on background agent.

02 October 2010

MS Windows Mobile 6.5 - How to return default lock screen

To return default lock screen in MS Windows Mobile 6.5 in some cooked ROM (NRG, TAEL and other), you should remove these registry keys :

[HKEY_LOCAL_MACHINE\Security\Shell\Lock]
"CustomLockScreensMask"=dword:00000013
"CustomLockScreensPath"="\\Windows\\LockScreen"

29 September 2010

How to import Google Earth POI.KML file into IGO8

POI (from POIplaza)

1 Turn off the write protection of the Dreimgo Memory Card.
2 Connect the memory card or the navigation device to PC,
then create the following path on the memory card: igo8/content/userdata/POI.
3 Download, unzip and copy the the downloaded .kml files to the above map.
4 Restart your navigation device.
5 Run the navigation software and swich to Advanced mode. Choose the Manage POI icon.
6 Choose downloaded POIs (kml file); then choose Edit and set the distance of POI icon visibility.
The default icon is Google Earth’s globe.
7 In the Navigation menu choose Find POI, and choose as Destination.

Note: some POIs might not be reachable on the map, if the map is not detailed enough.

Speedcam iGO8

1 Download as speedcam the iGO8_txt.zip file to a folder on your PC.
2 Unzip the two files, speedcam.txt and POIplaza-iG08 Notes.txt.
3 Copy the speedcam.txt file to the Storage card/igo8/content/speedcam.
4 Restart iGO8, the file will automatically update the database.
5 There will now be three files in the speedcam directory, speedcam.spdb, speedcam.txt and SpeedcamUpdates.spud.
6 Allow the device to detect a GPS signal. When this is done the speedcam locations will be active.
7 Check Settings/Warnings has Speed Camera Warning enabled.

Note: conversion of speedcam files is time consuming especially in case of a large file.
During conversion an 'init warning messages' message is visible.

31 August 2010

Exchange Activesync support in Hotmail

Microsoft has made Exchange Activesync support in Hotmail official, meaning according to Microsoft, 300 million mobile devices will be able to take advantage of direct push support from the web mail service.

The settings to enable to service on compatible devices (which does not fully include Android devices yet) are:

Server / URL
m.hotmail.com

Username
Enter full email address, for example: someone@example.com

Domain
Leave this blank

SSL
Enable this

Certificate
Accept the SSL certificate when prompted

Mail, Contacts, Calendar, Tasks
All can be enabled (see the Solution Center article for exceptions on some phones)

Windows Mobile users who do not have an existing Exchange Activesync account will not be able to benefit from a free hosted exchange solution without using Microsoft’s Windows Live client, while of course Windows Phone 7 users will be able to use multiple Exchange accounts directly

26 August 2010

Enable only Wifi Internet on HTC Windows Mobile

start->settings->connections->connections

Mobtel Telenor Internet
My Work Network

Go to advanced->select My Wok Network [the first button over composition rules]

Here select "work" for everything.

Now, without 3G, the phone connects to internet only if you have an active wifi, otherways doesn't connect.

28 July 2010

How to flash HTC Touch Pro from memory card

(This is for GSM):
(http://forum.xda-developers.com/showthread.php?t=448008)
Flashing via MicroSD Card
1. Make sure your microSD is Formatted to fat32 using a PC (you dont have to delete all files but it is safer if you do)
2. Download your prefered Radio from the Raphael Rom Develpoment Page and unzip/unrar it to your computer
3. Goto the Radios Folder and rename the .nbh file to RAPHIMG.nbh
4. Copy the RAPHIMG.nbh file to the root of your microSD Card
5. Plug the microSD Card into the phone
6. Press and hold the volume down button, then press the reset button with the stylus. Release the volume down button when bootloader tricolour screen appears
7. Follow the onscreen instructions to start flashing
8. After the flash finishes press the reset button with the stylus to reset the device

6. JOB DONE. Well Done YOU DID IT!!

20 July 2010

Fix Windows Mobile Device Center on Windows 7 64bit

The driver installation may not have completed successfully. If you think this may be the case, follow these steps:
1. Keep your device connected
2. From the desktop, go to Start > Start Search
3. Enter "Device Manager" or "devmgmt.msc" to launch the Device Manager window
4. Look under the "Network adapters" node for "Microsoft Windows Mobile Remote Adapter". If this is not present, skip to step 5. Otherwise, right-click "Microsoft Windows Mobile Remote Adapter" and choose to "Uninstall"
5. Look under the "Mobile Devices" node for "Microsoft USB Sync". If this is not present, skip to step 6. Otherwise, right-click "Microsoft USB Sync" and choose to "Uninstall"
6. Disconnect and reconnect your device. Your device driver will re-install and Windows Mobile Device Center will launch.
Additional Information: http://www.microsoft.com/windowsmobile/en-us/help/synchronize/device-center-troubleshooting.mspx

20 May 2010

MS HotFix for problem with 1 year recurrences synchronization (Pocket Outlook - ActiveSync - MS Outlook 2007)

I experiencing problem with Pocket Outlook and MS Outlook 2007 synchronization. Problem is that appointments which has recurrence set to 1 year like birthdays, anniversaries ... are correctly transferred from PC -> PDA (when edited by MS Outlook 2007), but when I made some modification to such appointments in PDA with Pocket Outlook (for example changing reminder time, name, ...) then after next synchronization when changes from PDA -> PC were sent the 1 year recurrence is changed to 12 years!!! And the worst and most frustrating thing is that when I synchronizing between two PCs then all appointments with such settings are changed from 1 year to 12 years!!!

Here is a hotfix that is supposed to fix the 12 year problem that has been driving me crazy:

http://support.microsoft.com/?kbid=981048

19 May 2010

HTC Touch Pro TAEL ROM My Location fix

In some cases, brilliant TAEL ROM don't update weather for My Location...

It did not work at all regardless of the many ROMs tried so I figured it must be my phone company blocking the Weather updating...... After much trial and error I discovered my phone company configuration through "Connection Setup" is putting in a proxy server on the internet connection settings... By simply unticking the proxy it works now AWESOME!!.... Everything else seems fine, and the proxy dosent seen to be needed...