Tag: How to

How to hide virtual keyboard in android using Java?

There are times when you want to hide the virtual keyboard in android. You can easily do that using the InputMethodManager. How to hide virtual keyboard in android using Java ? Just call the hideSoftInputFromWindow method of the InputMethodManager class by passing the token of the current window that contains the focussed view. Below is a sample code snippet demonstrating the usage of InputMethodManager to…

C Program to find the LCM of two numbers

Problem Write a program in C to find the LCM(Lowest common multiples) of the two numbers given by the user. How to find the LCM of two numbers in C ? Lowest common multiples of two integers refers to the smallest numbers that is perfectly divisble by both the numbers given as input where the value of the remainder is zero. Here’s a program in…

How to Get Unique Device ID from Windows Phone 8 Using C#?

Do you want to get the unique device id of the Window phone 8 programatically using C#? , you can do it using the DeviceExtendedProperties defined in the Microsoft.Phone.Info name and use the “DeviceUniqueId” property name to get the device id in byte array and then convert it to base 64 string . How to Get Unique Device ID from Windows Phone Using C#? Below…