Tag Archives: ANDROID

How to save CheckBox values in SQlite Database and Load it later?

By | March 13, 2012

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 »

Now you can upload APK’s up to 4 GB.

By | March 6, 2012

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 »

Now you can upload APK’s up to 4 GB.

By | March 6, 2012

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 »

Now you can upload APK's up to 4 GB.

By | March 6, 2012

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 »

Google Alternative of Siri Likely to come out in Q4 2012.

By | March 4, 2012

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 »

A Simple Layout with two listViews.

By | March 2, 2012

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.

ListView with Sections in android.

By | February 24, 2012

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 »

How to use global variables in android? -Part 2

By | February 20, 2012

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 »

Evi more intelligent than Siri and Iris

By | February 18, 2012

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 »

Listening to checkBox stateChange in Android

By | February 14, 2012

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 »

How to change the activity orientation through java code in android?

By | February 11, 2012

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.

CustomAlert without any custom Layout in android.

By | February 6, 2012

We can create a dialog with custom alert dialog with our xml in android. But for making simple alerts we can make custom alerts through code itself. Here is a simple function for this. Here I am having a Listview and an edittext with two buttons in the alertBox. Please leave your valuable comments on… Read More »

Apply Custom Theme for your activity in android.

By | February 5, 2012

In today’s tutorial I will show how to apply custom theme for your activity in android. Android has several built in themes for applying to your activity but you can also provide your own custom themes for your activity. Now we will start creating an activity with a custom theme applied. Create a fresh project… Read More »

Show Alert in cocos2D Android.

By | February 4, 2012

Here is a simple example showing alert in android cocos2D. For this I am using an example from my previous android cocos2D tutorial.. So please read that tutorial before reading this because the I am using the classes and files from it. I am only changing the Gamelayer.java file to show an Alert Dialog when… Read More »

Android removes the need of Menu button from devices with ActionBar.

By | January 28, 2012

Hello all.. The latest development in android is that google has removed the menu button from android, instead they provide something called the actionbar like in the Honeycomb devices. Google introduced the ActionBar class as the standard solution to make actions from the user options immediately visible and quick to invoke The ActionBar looks like… Read More »

Working with SQLite databases through command Line in android.

By | January 23, 2012

Hello all, In todays tutorial I will show you how to work with sqlite databases in android through command line. Advantages 1. You can browse any number of databases. 2. You can write any queries and execute. First go through these tutorials to get a glance of how to work with sqlite databases in android.… Read More »

Starting PhoneGap for ANDROID.

By | January 4, 2012

Hello everyone…. In today’s tutorial I will show how to start with a HelloWorld Application in PhoneGap for ANDROID. So what is PhoneGap PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. Follow these steps exactly to build the helloworld… Read More »

Using WebView to call a function in android java code or How to use a WebViewClient in android?

By | January 1, 2012

Hello everyone Today I will explain how will you call a function that is defined inside the java android code from a webview. For this we need to add a webviewclient in android for the WebView we are adding in the xml. Then we have to register the webviewclient with the WebView we are creating… Read More »