Custom Spinner in Android Redone using BaseAdapter..

By | June 25, 2013

I have already shown another example of creating custom spinner in android in this post. That was by extending the ArrayAdapter class, Now it’s using the baseAdapter class. You all knew that a spinner or combobox is an inbuilt widget in android. And Like any other widgets spinners are also customizable. Here is a simple… Read More »

How to draw Arcs in Android using canvas?

By | April 19, 2013

This is a simple example showing how to draw Arcs in android, You can use this to create piecharts or someother similar thing you want. Here we have 3 classes. 1. GraphicsActivity.java 2. MainActivity.java 3. PictureLayout.java GraphicsActivity.java PictureLayout.java MainActivity.java Download the complete source code from here.

How to call a function in background in Xcode(iPhone)?

By | December 10, 2012

“performSelectorInBackground” will call anyfunction to execute in background and you can also pass string parameters with this method or if you want to pass more params then pass the parameters as an object. [self performSelectorInBackground:@selector(myBackgroundMethod:) withObject:@”String Params”];

Samsung Year in Review: Galaxy Triumphs, Apple Losses

By | December 30, 2012

Samsung produces a number of products – from kitchen appliances to PCs – but it was the company’s mobile division that made the most headlines in 2012. The Korea-based company dominated the mobile phone space, introducing several new Galaxy devices throughout the year. But it couldn’t shake one its biggest rivals, Apple, which proved to… Read More »

How to copy a file to another saved in SDCARD in Android?

By | May 9, 2013

Hello all… This tutorial explains how to copy a file contents to another in Android. The file to copy is saved in SDCARD, however you can change the path to save it in your application sandbox. if you want to save it in your sandbox, change the path to /data/data/your_packagename/your_file.extension Now we will see the… Read More »

Apple fined by China court for copyright violation

By | December 28, 2012

A court in China has ordered Apple to pay compensation to eight Chinese writers and two companies for violating their copyrights. They had claimed that unlicensed electronic versions of their books had been sold on Apple’s online store. The court ordered Apple to pay them 1.03m yuan ($165,000; £100,000) in compensation, according to the official… Read More »

How to store an Image from Android to a SQlite and retrieve it?

By | January 4, 2019

Hello all… In today’s post I will show you how to store an image in an SQLite database and retrieve it. First I will just create a Database Helper Class for adding and reading from the Database. Our Database contains only one table “Images” with two columns “id” and “image”. Note : If you want… Read More »

Cheaper, slimmer Google Nexus 7 rumored for Q1 2013

By | December 22, 2012

Google may be readying a revamped model of the middle sibling in its Nexus line of Android devices for as early as the first quarter of 2013, if the supply-chain snoops at Taiwanese tech news site DigiTimes are correct. Sources in the tech manufacturing sector are whispering that the Chocolate Factory and its manufacturing partner… Read More »

Google – working on a secret phone called the “X-Phone”

By | December 22, 2012

Google is working on what the company is internally calling the “X Phone” that it hopes will provide a credible challenge to Apple and Samsung, reveals the Wall Street Journal. Google is using Motorola, which it acquired seven months ago for $12.5 billion, to design a phone that will supposedly have new features unlike any… Read More »

Samsung’s New Galaxy Grand with Dual-SIM, 5-Inch Display

By | December 19, 2012

Samsung has added the Grand, a new midrange smartphone, to its Android-running Galaxy lineup. At a glance, it strongly resembles the Galaxy S III, though Grand features a larger, though lower-resolution display—a 5-inch WVGA TFT LCD compared with the 4.8-inch HD Super AMOLED on the Galaxy S III—and will be available in a dual Subscriber… Read More »

A better Google News experience on tablets

By | December 18, 2012

There’s something special about reading news on your tablet. Indeed, swiping through articles brings to mind the familiar feeling of flipping through a favorite magazine or newspaper. Starting today, Google News feels even more natural and fluid on tablet devices. For example: You can find new articles, news sources, and even topics of interest with… Read More »

Samsung Galaxy S3 will get Android 4.1 Jelly Bean this Friday

By | December 17, 2012

US Cellular has announced that it would be rolling Jelly Bean out to its Samsung Galaxy S3 starting this Friday, December 21st. This would make it the fifth and final upgrade needing to go out to the Samsung Galaxy S3 here in the United States as all major carriers, including Verizon, will have been offering… Read More »

CoverFlow in Android – Complete implementation with source code.

By | May 12, 2013

Have you seen the coverflow in iPhone. This is the Android implementation of CoverFlow. Please leave your comments if this article is helpful for you. Let’s see how. This is the CoverFlow class that extends the Gallery. Now the main activity that implements the coverflow. OK Done. Now go on and Run your project. Download… Read More »

Best Buy offering Samsung Galaxy S III for $49 on December 16th

By | December 16, 2012

” Best Buy has been known to have some pretty good deals, but this one should have any Android fan pretty excited. Tomorrow only, Best Buy will be offering the famed Galaxy S III for only $49.99 with a new or renewed contract. This offer is good for all four major carriers: Verizon, AT&T, Sprint… Read More »

How to crop an Image in Android?

By | February 12, 2016

This is a sample program that launches the camera and crop the captured image. Check this link to another crop image example. http://www.coderzheaven.com/2011/03/15/crop-an-image-in-android/ This is the layout xml. activity_main.xml Now this is the Main Java File that implements the crop functionality. Here we are using the “com.android.camera.action.CROP” Intent to crop the Image passing the captured… Read More »

How to call a function using a String in Android and also pass parameters along with it.

By | December 12, 2012

Hi all … Today’s post is all about calling functions using Simple Strings. Here we will do two things. 1. Call a function without parameters. 2. Call a function with parameters. This is the class which contains the functions that we are going to call using “simple Strings”. Now this is the main activity that… Read More »

How to create Swiping Windows in Android from Android 2.1 onwards?

By | February 21, 2013

Have you seen the Google Play application in your Android phone. Wondered about how they implemented swiping windows in it. Don’t Worry, Here is an example which implements it. Here we will create three pages which can be swiped to access it. These are the three layouts for the three sections. section1.xml section2.xml section3.xml Now… Read More »

How to load a spinner with values from SQlite Database in android?

By | November 18, 2012

Here is a simple example showing how to load a database values in a spinner in android. OK we will start. This is the layout for the spinner row. spinner_row.xml This is the layout for the interface. activity_main.xml Now this is the MainActivity.java file that uses the spinner and the database. Join the Forum discussion… Read More »

How to pass an Object from One Activity to another in Android.

By | October 22, 2012

Hello all This is a simple post that shows How to pass an Object from One Activity to another in Android. I am going to pass the following object from One Activity to another. MyObject{ String name; String website; } This is the class that defines the Object. This is the first activity that sends… Read More »

How to pass an arraylist value from one activity to another in android?

By | January 9, 2018

This simple example shows how to pass an ArrayList from one activity to another in Android. This is the first activity on which we are sending the arrayList. MainActivity Now this is the Second activity in which we are receiving the passed arrayList. SecondActivity Please check the Logcat for the Output. Source code You can… Read More »

ActionBar with Search Option and other options in Android.

By | May 9, 2013

I have already shown some examples with ActionBar. This is the example showing how to start with ActionBar in android. 1. Android removes the need of Menu button from devices with ActionBar. 2. How to start with ActionBar in Android? 3. Dynamically Adding, Removing, Toggling and Removing all ActionBar Tabs in Android – Part 2?… Read More »

How to use NumberFormat Class in Android? – Rounding a number in android, formatting, getting decimal values etc in android.

By | September 25, 2012