Tuesday, September 3, 2013

HTC One - NFC Issue

If you want to Send Data through NFC from any smart phone to HTC One make sure sender phone is higher than the HTC One, make sure the camera of your sender phone is almost at the top white line of HTC One.

*No need to enable Bluetooth or anything, just enable NFC in both phone.

Tuesday, August 13, 2013

You don't have any devices - Google Play website

Go to Settings > Apps > All > Scroll Down And Select Google Play Store > Force stop and clear data.
Also do the same for "Google Play Services" (Just for the safe side)
Then open the play store again on your device and accept the terms and conditions.

Wait 15 minutes or 30 minutes or 1 hour, you will see your device. 

Monday, June 24, 2013

Enable AirPrint on Windows (32/64Bit) with iOS 5+ Support

Solution # 1

Instructions:
After extraction you should have three files:
- "AirPrint_Installer.exe"
- "AirPrint iOS 5 FIX - 32Bit.reg"
- "AirPrint iOS 5 FIX - 64Bit.reg"

1. Run "AirPrint_Installer.exe" and then click on "Install AirPrint Service".

2. Run the "AirPrint iOS 5 FIX - 32Bit.reg" or "AirPrint iOS 5 FIX - 64Bit.reg" to install the iOS 5 fix (Choose the correct file for you operating system, 32 Bit or 64 Bit Windows).

3. Go back to "AirPrint_Installer.exe", make sure "Service Startup" is set to "Auto" and click "Start".

4. Restart computer.

If there is a locked icon next to the printer on the iOS device enable the guest account in windows (Control Panel > User Accounts > Manage Another Account > Turn the Guest Account on). Then in the "AirPrint_Installer.exe" choose to use Guest Account Auth and tick the "Enable Guest Account" box. Then click "Update". You will then need to restart. If you want windows to automatically log you in on startup, type "netplwiz" into the start menu search box, hit enter. Uncheck the box that says “Users must enter a user name and password to use this computer”, and then hit Apply. You’ll see a username and password box. Enter in the appropriate information here and hit OK..


Solution # 2
Enable the guest account on the windows 7 machine.
Restart the Airprint service.

Wednesday, May 22, 2013

Android - Creating a Navigation Drawer

Following Link explains in detail how a drawer navigation can be added to an android application using the new guidelines & pattern explained in Google I/O 2013.

http://gmariotti.blogspot.com/2013/05/creating-navigation-drawer.html

PS;
For Devices having OS Honeycomb or greater.

Thursday, February 21, 2013

C# - Run Only One Instance of An Application/Singleton Application

Place the following code in Main function of Program.cs class


[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SetForegroundWindow(IntPtr hWnd);

bool createdNew = true;
using (Mutex mutex = new Mutex(true, Application.ProductName, out createdNew))
{
        if (createdNew)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
        else
        {
            Process current = Process.GetCurrentProcess();
            foreach (Process process in Process.GetProcessesByName(current.ProcessName))
            {
                 if (process.Id != current.Id)
                 {
                      SetForegroundWindow(process.MainWindowHandle);
                      break;
                 }
             }
         }
}

Monday, January 7, 2013

Android - Get Device's Unique Identifier(UID)

String deviceId = Secure.getString(this.getContentResolver(),
                Secure.ANDROID_ID);
returns the Android ID as an unique 64-bit hex string.