How to check whether SDCARD in mounted in android?
This simple code snippet checks whether SDCARD is mounted in an android device or not.
This simple code snippet checks whether SDCARD is mounted in an android device or not.
Hello all…… Someone has been asking me how to play a video in android in fullscreen. Then I made some surfing in the internet and found a solution. You can check out how to play a video in android here and to check whether the video has completed playing here. The only change was to… Read More »
Hello…….. This post is just a simple demonstration to show a way to store a checkbox value in a database and reload it. Here I am storing only a value of a single checkbox and reloading it. But you can make changes in the code to save the id and value of the checkbox in… Read More »
Hello everyone… I have shown in my previous tutorials on how to create notification in android and cancel it. This is the post showing this . Now today I am going to show how to send data when you click on the notification message. Here I am creating two activities. One the main activity that… Read More »
1. Support for Mobile Payments Android phones which have android gingerbread option will help you pay all your bills through your mobile phone. No need to wait in line or switch on your computer to pay bills. Sit in your office and pay your bills using android OS gingerbread. 2. One Touch Copy and Paste… Read More »
Yes, Google has announced that from now on you can upload APK’s up to 4GB. This is an effort to accommodate apps that require more local storage. Previously Google had made a limitation of 50MB for apps but due to the intervention of high speed 3D games and other Google has decided to increase the… Read More »
Yes, Google has announced that from now on you can upload APK’s up to 4GB. This is an effort to accommodate apps that require more local storage. Previously Google had made a limitation of 50MB for apps but due to the intervention of high speed 3D games and other Google has decided to increase the… Read More »
Yes, Google has announced that from now on you can upload APK’s up to 4GB. This is an effort to accommodate apps that require more local storage. Previously Google had made a limitation of 50MB for apps but due to the intervention of high speed 3D games and other Google has decided to increase the… Read More »
Hello all……. In today’s post I will show you how to use Calendar in android. Actually it is really easy to use calendar in android. For that android provides a calendar widget. We use calendar class to show the Calendar widget. Here is the java source code for this example. This is the main.xml for… Read More »
Yes, Google is planning to release an alternative for Siri in the near future. According to google the new Alternative will be called “the Assistant”. Assistant will go beyond what Siri can do according to google. As first reported by Tech Crunch, it seems Google is prepping a major release of its voice assistant this… Read More »
Here is a simple example to show two listviews horizintally in android. here is the java code that sets up the list. Here is the main.xml file. Here is the layout for each row in the list . Here is the complete source code for this example.
Hello all……….. Android has been absoultely wonderful for customizing widgets. I have shown a lot of example to customize ListViews, spinners etc. Today I will show you how to customize gridviews. Using this method you can actually place anything inside a gridview even a webview also. So here we start. We customize a gridview by… Read More »
Hello all…. This is a simple example showing how to sort a string array which is a arraylist in android. we sort the array using the “Collections” class in android. Here is a simple example Take a look at the LogCat for the output.
Hello all………. We have seen many posts about ListViews like creating a listview, adding data to it, customizing a listview etc. Take a look at some of these examples 1. Single Selection ListView in android 2. Flitering a ListView using an input from an EditText in Android. 3. How to create a custom ListView in… Read More »
Features include GENERAL 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 900 / 2100 – LT26i HSDPA 850 / 1900 / 2100 – LT26a BODY Dimensions 128 x 64 x 10.6 mm Weight 144 g – Touch-sensitive controls DISPLAY Type LED-backlit LCD, capacitive touchscreen, 16M colors Size 720 x 1280… Read More »
Features include GENERAL 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 900 / 2100 – LT26i HSDPA 850 / 1900 / 2100 – LT26a BODY Dimensions 128 x 64 x 10.6 mm Weight 144 g – Touch-sensitive controls DISPLAY Type LED-backlit LCD, capacitive touchscreen, 16M colors Size 720 x 1280… Read More »
Features include GENERAL 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 900 / 2100 – LT26i HSDPA 850 / 1900 / 2100 – LT26a BODY Dimensions 128 x 64 x 10.6 mm Weight 144 g – Touch-sensitive controls DISPLAY Type LED-backlit LCD, capacitive touchscreen, 16M colors Size 720 x 1280… Read More »
Hello all…. In a previous post I showed a method to share global variables across your android application. Those were done using a static class. Now today I will show you another way of sharing global variables across the application Check these posts for sharing data across the application. 1. http://coderzheaven.com/2011/05/global-variables-in-android/ 2. http://coderzheaven.com/2011/05/global-variables-in-android%e2%80%a6/ 3. http://coderzheaven.com/2011/03/passing-data-between-intents-in-android/… Read More »
Ever Since the launch of Siri in iOS smartphones has become more user friendly and funny for people. After that Iris was launched a rival for Siri, this too was a big hit. A little bit about Siri The application uses a natural language user interface to answer questions, make recommendations, and perform actions by… Read More »
We know Angry Birds have conquered almost all tablets and now the completely new edition is launching this March. Acoording to the reports the new game will be launched on March. Angry Birds Space already has an official website with an image of a slingshot on the Moon overlooking Earth. The official blog spot says… Read More »
Hello all……. In todays post I will show you how to listen to an EditText input in Android. Often we need this in our applications. We implement this with the help of TextWatcher class. Here is the java code for this. Here I am checking whether the input value in the edittext is between 20… Read More »
The simplest way to create a Scrolling TextView in android is to place it inside a ScrollView. Here is a sample xml file with a scrollable TextView.
This is a simple example showing how to listen to checkbox in android. To check whether the checkbox is in on state or in off state just add a listener to the checkbox you want to listen. This is how we do this. ch.setOnCheckedChangeListener(new OnCheckedChangeListener() { }); This is the layout contaning a checkbox. This… Read More »
Digital Clock is a very useful widget in android to show time in your application. Here is a simple demo on using digital Clock widget. First In the layout file copy this file. This creates a digital clock widget in the UI which will automatically update the time from the device. Now in the java… Read More »
Here is a simple way to change the orientation of the activity in android Through java code we do this…. Through xml we do this Following are two other values that you can specify in the android:screenOrientation attribute: ➤➤ portrait — Portrait mode ➤➤ sensor — Based on the accelerometer Please leave your valuable comments.