“10 Legends 1000 Quotes” – A free app for Windows Phone users.


Here come update of my app “10 Legends 1000 Quotes” in the windows phone store. This application is free for all windows phone users. If you love to read quotes and would like to read best quotes said by world famous legends then you should try this app.

About App -

10 Legends and 1000 Quotes is best Windows Phone 8 app for those who love legends and get inspiration from their quotes.

Legends are :- Mahatma Gandhi, Albert Einstein, Gautam Buddha, Martin Luther, Nelson Mandela, Dalai Lama, Abraham Lincoln, Aristotle, William Shakespeare and Oscar Wild.

Features -
** Detail biography of 10 Legends
** Around 100 quotes of each legends
** 1000 Quotes Collections.
** You Share quotes to Social Sites.
** You can message quotes to others.
** Copy and Paste features, You can copy each and every quotes to share on other places.

Download App -
Get Free 10 Legends 1000 Quotes

Note – WP users are really loving this app. I got many feedback regarding to add more legends and their biography. so stay tuned to get more features in coming version.

Screenshots -

Posted in General, Uncategorized, Windows Phone, Windows Phone App | Tagged , , , | Leave a comment

“Compare World Time” – A free app for Windows Phone Users to find and compare date and time of different countries and places


Here come my one more windows phone application in the windows phone store. This application is free for all windows phone users. With the help of this application, someone can easily find the exact time of any places and moreover they can compare time between different places. Its works simply as World Time Converter.

About App -
A simple yet elegant World Time application with almost all countries and their capital to add. Compare World Time app help you to view times of different places around the globe.It provides a list of predefined zones from which you can select and you can also add custom defined zones.
Features -
* One screen application. Add and delete from the same screen.
* Search for a city or country
* Long Press on a row to Delete

Download App -
Get free Compare World Time App -[Download]

Note – I am going to implement some more and Interesting features in this app. If you have any suggestions or feedback. please ping me. I’ll happy to listen your Ideas.

Screenshot -

I hope you liked this app. :)

Posted in General, Windows Phone, Windows Phone App | Tagged , , | Leave a comment

How to solve “Not enough memory” error and Windows Phone 8 Emulator does not start in Windows 8.1


If you are a Windows Phone developer and have upgraded your system from windows 8 to windows 8.1 then you might have faced “Not enough memory” error problem. If you are facing same problem then stop worrying, Microsoft exposed the symptom, reasons and solution of “Not enough memory” error message and Windows Phone 8 Emulator does not start in Windows 8.1
Here is the link – http://support.microsoft.com/kb/2911380

Reason -

If you are a windows 8.1 user and your system having less than 8 GB ram and moreover you are simultaneously running many programs with developing apps for windows phone, then it is quite obvious that Windows Phone 8 emulator won’t start and will throw a message as given below :

The Windows Phone Emulator wasn’t able to ensure the virtual machine was running: Something happened while starting a virtual machine: ‘Emulator Name’ could not initialize. (Virtual machine ID GUID) Not enough memory in the system to start the virtual machine Emulator Name with ram size 1024 megabytes. (Virtual machine ID GUID)”

rrk-wpmemoryerror

Ok fine, but a question can stuck in your mind that,
How same program used to run in windows 8 platform but it fails on windows 8.1 ?
Microsoft stated that this problem occurs in Windows 8.1 because the operating system is more conservative than the Windows 8 version about how it allocates memory to maintain consistently high performance. In Windows 8.1, Hyper-V memory management accounts for the memory that is consumed by programs before it starts any emulator instances. Hyper-V did not make this consideration in Windows 8.

Solution -

If the emulator still does not start, you can disable the Hyper-V runtime memory monitoring functionality by adding a MemoryReserve registry.

To do this, follow these steps:

Step 1) Start Registry Editor.
Step 2) Locate the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization
Step 3) Right-click the Virtualization folder, point to New, and then click DWORD Value.
Step 4) Type MemoryReserve, and then press Enter.
Step 5) Double-click MemoryReserve,
Step 6) Under Value data field, type 2048
Step 7) Select Decimal option and click OK
Step 8) Close Registry Editor
Step 9) Restart your system.

Note : Before you modify anything in registry file, make sure that you made the back up the registry for restoration in case any problems occur.

Posted in CodeProject, Tips&Tricks, Windows 8, Windows Phone | Tagged , , | Leave a comment

How to Save Image in Local Photos album of Windows Phone ?


Sometimes you may want to develop a windows phone app which containing many images to view like WallPaper app for Windows Phone LockScreen, Celebrity album, etc . It is quite easy to display images by using Image Control and passing source path to respective Image Control, but is it enough to just give functionality to see images only ? User always like to keep good images in their phone. so, In that condition user should have an app that can provide facility of save images also. This blog simply shows how you can write code that would allow user to save Image locally in their Save Image Photo album.

Implementation -

Here, you can see some piece of code which containing a function SaveImageToPhotoHub with few statements and a parameter type WriteableBitmap. This SaveImageToPhotoHub function returns either true or false output. To work with this function you just need to pass needed Image as parameter in SaveImageToPhotoHub function.

 private bool SaveImageToPhotoHub(WriteableBitmap bmp)
        {

            using (var mediaLibrary = new MediaLibrary())
            {
                using (var stream = new MemoryStream())
                {
                    var fileName = string.Format("Gs{0}.jpg", Guid.NewGuid());
                    bmp.SaveJpeg(stream, bmp.PixelWidth, bmp.PixelHeight, 0, 100);
                    stream.Seek(0, SeekOrigin.Begin);
                    var picture = mediaLibrary.SavePicture(fileName, stream);
                    if (picture.Name.Contains(fileName)) return true;
                }
            }
            return false;
        }

WriteableBitmap provides a BitmapSource that can be written to and updated. To declare WritableBitmap class you must include System.Windows.Media.Imaging namespace

using System.Windows.Media.Imaging;

MediaLibrary is a class which is used to access songs, playlists, and pictures in the device’s media library. To acess MediaLibrary class you need to include Microsoft.Xna.Framework.Media namespace

using Microsoft.Xna.Framework.Media;

SaveJpeg is an Extentions method which is responsible to encodes a WriteableBitmap object into a JPEG stream, with parameters for setting the target width and height of the JPEG file.

SavePicture is a method of MediaLibrary class which saves the image contained in the stream object to the media library, and then returns that saved image as a picture object.

To acess MemoryStream class you need to include System.IO namespace.

using System.IO;

Now take a look how to use the above method for saving image.

private void Save_Click(object sender, EventArgs e)
        {
            WriteableBitmap bmp = new WriteableBitmap(imgview, null);
            if (SaveImageToPhotoHub(bmp))
            {
                MessageBox.Show("Image Saved", "Information", MessageBoxButton.OK);
            }
            else
            {
                MessageBox.Show("Error : Image Not Saved", "Information", MessageBoxButton.OK);
            }
        }

Here, imgView is an Image Control which is placed in xaml part


Note :- To run this code properly your app should have capabilities to access Windows Phone windows phone media library hub. You can simply do this by checking ID_CAP_MEDIALIB_PHOTO from capabilities tab of WMAppManifest.xml

Isn’t it so easy to learn how to save image locally on Windows Phone device. I hope you liked this article and this will help you while writing code for your app.

Posted in C#, CodeProject, Tips&Tricks, Windows Phone, Windows Phone App | Tagged , , , , | Leave a comment

How to Solve issues of Internet not working with Windows Phone 8 emulator.


If you are facing issues while connecting Internet with Windows Phone 8 emulator during deployment process and getting error message like “Windows Phone emulator was not able to connect to Windows Phone operating system. Phone didn’t respond to connect request” or on opening IE(Internet Explorer) of Windows Phone emulator, getting message “We can’t connect to search right now. Make sure airplane mode is turned off, or check your cellular data or Wi-Fi connection” even you system is connected with Internet connection. However when you deploy same Windows Phone application of Windows Phone device(developer unlocked), it works fine without any issues. I can understand this one is weird to consider that same application is behaving differently with same wi-fi connection. I experienced same feeling after upgrading from Visual Studio 2012 to Visual Studio 2013 IDE with Windows 8 OS to Windows 8.1 OS though it was working fine on Windows 8 With Visual Studio 2012. I have tried many tips & tricks available on many websites, blogs and even on MSDN website-[Troubleshooting the Windows Phone 8 Emulator] but I was unable to solve the issues. Finally after using some more steps I am able to connect Internet with Windows phone 8 emulator using WI-FI.

Possible Solution to solve Internet Issues with Windows Phone 8 emulator : 

Follow given steps -

Step 1- Move to “Control Panel\All Control Panel Items\Administrative Tools”, Here remove each and every Virtual Machines listen under.
Step 2 - Remove Hyper-V and then Restart the System.
Step 3 - After restarting, Install Hyper-V once again.
Step 4 - Open Visual Studio and Run any Windows Phone 8 app to start the emulator.
Step 5 - It will create again all needed Virtual Machines( you can notice from Hyper-V Manager tools)
Step 6 - While loading emulator, it will prompt for letting the emulator access the internet. say yes.
Step 7 - Let the emulator and your project fully load
Step 8 - Now you need to shutdown the emulator( by closing directly or use Shift + F5) and close the Visual Studio.
Step 9 - Now Open Network and Sharing Centre
Step 10 - Click change Adapter Settings (Listed on the left hand side)
Step 11 - Now you will see there - “Control Panel\Network and Internet\Network” Connections. some new adapter created by HyperV, they should be called “vEthernet(…)”
Step 12 - Here, You need to focus on the vEthernet( Virtual Switch) and vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)
Step 13 - Now right click on vEthernet( Virtual Switch) and click on the properties and navigate to the sharing tab.
Step 14 - Here, Choose Allow other Network users to connect and choose the vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch) as the adapter and then save the changes and close Windows.
Step 15-  Now open the properties on vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)
Step 16 - Here, You need to disable Internet Protocol Version 6 and double click on Internet Protocol Version 4
Step 17 - Now, Use the following IP address: 169.254.169.177 Subnet mask:255.255.0.0
Step 18 - After entering IP address and Subnet mask. You need to click on advanced button, under the IP settings tab, and then assign an interface metric: 1
Step 19 - Now Open your Visual Studio and run the Windows Phone 8 project.
Step 20 - Open Internet by using Search button or Internet Explorer of emulator and check Internet access.(Make sure your Wi-fi is working properly)

In my case, It works fine and I’ve shared this tips among some guys and they all solved the issues of Internet with Windows Phone 8 emulator. Hope this might help you also.

Posted in CodeProject, Tips&Tricks, Windows Phone | Tagged , | Leave a comment