Hello all.. This is a simple example to check whether your android device supports Bluetooth or not. May be currently all devices may have bluetooth support, but still ………….
Hi, For replacing a substring in C Sharp/C#, use the following lines of code.
Hi, In order to search for a particular character in a C++ string, use the following code.
Hello everyone.. In one of my tutorials I have shown you how to upload an image in android.. In todays tutorial I will show you how to download an image into your phone programatically. I am just picking up an image url from google to show the download. Previously I have shown three other methods… Read More »
Today we will see how to check whether there is any internet connection available to your phone in android.If any of the internet connection is available then the below function returns true otherwise false. Dont forget to add these two permissions in the manifest file. Press the +1 button to share it across the web… Read More »
Hi all….. Today I will show you how to do a simple and beautiful text animation while switching the text in a textView in android The advantage is that you don’t need a seperate xml file for animation in this program, all is done inside the java code. This is the main java file. Here… Read More »
Hi, In order to find whether a given string starts with a particular string or not in JAVA, use the following code.
Hello all.. ScrollBars are our basic needs in a UI if we have to show a content that do not fit fully into our layout. A normal scrollBar doesn’t look so beautiful, but don’t worry ANDROID is so customizable that you can customize your scrollBar also. Here is a simple demo to make a custom… Read More »
Merging layout is an excellent feature in android. Separate xml can be included in a single xml. For this first i create a main.xml file In the bottom you can see that i have included a xml file named footer2button.xml The Merged layout will be like this
Hello everyone.. In today’s tutorial I will show you how to use camera in ANDROID in your program. In this tutorial we will be having a button which will open the camera and after taking the photo it will show it in an imageView. Note: This program will work only in the real device not… Read More »
Hi, For creating a new file using JAVA, use the following code.
Hi, Given below is a code snippet which will demonstrate an exception handling in Java with Divide by zero error. 🙂
Hi, Given below is a simple concatenation example in JAVA where two strings are joined together to form a single string. And…the output will be.. “CoderzHeaven” 🙂
Hi, For searching for a particular substring from a starting index of a string and get the starting index of it in JAVA, use the following sample of code. It will print out the starting index of the substring ‘co’ (the second ‘co’), that is 6. 🙂
Hi, For searching for a particular character from a string and getting the index of that particular character, use the following code. It will print out the index of ‘o’, that’s 1. 🙂
Hi, In order to get the UUID of an iPhone, iPod or iPad, do the following in your code. Here ‘myUUIDStr’ will contain the UUID of your specified iOS device. 🙂
Hi, In order to make a UITextField a Password Field / Password Mode do the following. In your .h class file, In your .m class file, This will make your UITextField in a Password entry mode or a Password Field. 🙂
Hi, In order to set the font type of UITextView, do the following. In your .h class file, In your .m class file, This will set ‘urTextView’ with font name ‘Arial Rounded MT Bold’ with font size 18. 🙂
Hi, In order to make a UITextField with out or no border, do like this. In your .h class file, In your .m class file, Thus you will get a UITextField named urTextField without border. 🙂
Hi, In order to sort the elements in a string array in C Sharp/C#, we use the sort() method. Given below is a simple example using sort() method to sort the elements in a string array. It will print out, Sorted string Array: urStringArray = apple urStringArray = coderz urStringArray = heaven123 urStringArray = heaven777… Read More »
Here is a simple example to show how to use seek Bar in android. Create a new project and place this code in it. The main.xml file The strings.xml file. Here is another example to show How to get the current progress on your SeekBar in android? Please leave your valuable cmments
Hello…. In today’s tutorial I will show you how to style your text in ANDROID. This is a simple example to show how styling is done using XML in android. This will also show you how to get a string from the resources in java code. First create a new project and name it “StyleTextDemo”… Read More »
Hi, As you know an exception is an error that occurs during the runtime. Here is a simple exception handling example using C Sharp/C#. 🙂
Hi, This is how you can simply rename a namespace in C Sharp/C#, This will print out ‘Hello’! 🙂