In this tutorial we will be making a simple application to save a person details using Core Data. Here we will have two models or it can be said as Database tables – Model1 and Model2. Below are the basic things about Core Data… Core Data Stack The key objects of the stack are the… Read More »
Here is a simple programs that creates two buttons programatically and sets its constraints.
Hello all, In Today’s article we will be discussing about the SyncAdapters in Android. SyncAdapter is just a simple plugin like structure for syncing your server and Device. Check out this post about Account authenticator before proceeding. Why do we use SyncAdapter instead of Using Alarm Manger to Sync? Automated execution Sync can be requested… Read More »
The Java Generics programming is introduced in J2SE 5 to deal with type-safe objects. Advantage of Java Generics There are mainly 3 advantages of generics. They are as follows: 1) Type-safety : We can hold only a single type of objects in generics. It doesn’t allow to store other objects. 2) Type casting is not… Read More »
Here in this demo we will try to create a Custom authenticator. The account manager is a centralized service offered by Android system. Any application can get the list of accounts and request the user to utilize its auth tokens. Basically it contains a list of Accounts, each one is identified by: 1. Account name:… Read More »
1. How to start with ActionBar in Android? With Android 3.0 Google eliminated the need of hardware menu button which is replaced by Action Bars. Here is a quick example on how to use ActionBars. First create a new project and name it ActionBarExample. Now create a folder named “menu” in res folder and create… Read More »
Below functions takes the current date and time and formats it to give a date-time string. You can customise it in the way you want. The string that the below function generates will be like this – 23-Dec-2014 4:23 PM Use “MMMM” for “December” and “MMM” for “Dec” in month.
Hi all, In Today’s Tutorial I will help you to make a simple chat application in Android using Google Cloud Messaging. I am using PHP as server side script. Here are the things you need to follow to make this application. 1. You need to register to Google for GCM. 2. You need a server… Read More »
The name “localhost” is just a loopback to your own computer. 1. ACCESSING LOCALHOST ON ANDROID DEVICE. To access it on your Android Device, you need to find the computer’s IP address. The most general way of finding this info, which works on both Mac and Linux, is to go into the Terminal and type… Read More »
Hi all, I have already showed you how to implement in app purchase in Android. Please go through this post before reading this article. This is how the MainActivity source code will look like. You can download the complete source code from here itself.
This article covers how do you create a tab based application in an ISOS Application. At first you Create a new Project and Click on Single View Application and name it accordingly. After creation of the project, open the storyboard and you can see a single view controller which is connected to class ViewController. Just… Read More »
Hey all, In Today’s article you will study about the implementation of UICollectionView in iOS. It is similar to GridView in Android. First drag a UICollectionView [Not the Collection View Controller] in your interface and let it be there. we will come back to it later. We are going to create a UICollectionView with custom… Read More »
The goal of @property directive in iOS is to create the getters and setters for that object so that you can access it in your program. It allows you to specify the behavior of a public property on a semantic level, and it takes care of the implementation details for you. This article also tells… Read More »
Hi all, Today I will show you how you can download an image showing complete progress. Make sure that you have an interface like the below image. You should link all the interface views with the corresponding variables in ViewController.h ViewController.h ViewController.m You can download the complete source code from here.
First we will write a class that extends UIView to create a Custom PopUp Create a Cocoa file and name it CustomPopUp You should get two files CustomPopUp.h and CustomPopUp.m CustomPopUp.h CustomPopUp.m I have a sample interface like this. Now the ViewController.m MAKE SURE YOU HOOK UP THE BUTTONS TO THEIR CORRESPONDING FUNCTIONS. You can… Read More »
Make sure you setup the server and have gone through this post before reading this article. You can read more about NSURLConnection Class from here. https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/index.html#//apple_ref/occ/instm/NSURLConnection/ Here In this article I am going to select an image from the gallery and upload to a server using 1. Synchronous method 2. Asynchronous method – different ways.… Read More »
Hey all, This is a simple post showing how you can open the “Gallery” or “Photos” application in iOS. The Sample UI should look like this. Screenshot selecting image from the Gallery. Now to the code. ViewController.m ViewController.m We add “UINavigationControllerDelegate,UIImagePickerControllerDelegate” to get the events after selecting the image from the Gallery. The below function… Read More »
First Make sure you have this kind of layout and you have linked all the views to their respective variables. For server side I am using XAMPP for Localhost for now and My php file will be residing in Applications ▸ XAMPP ▸ xamppfiles ▸ htdocs You can download “XAMPP For Mac” from this link.… Read More »
The static keyword is used in java mainly for memory management. We may apply static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than instance of the class. The static can be: variable (also known as class variable) method (also known as class method) block nested class Static… Read More »
A layout animation is a pre-loaded animation that the system runs each time you make a change to the layout configuration. All you need to do is set an attribute in the layout to tell the Android system to animate these layout changes, and system-default animations are carried out for you. Create the Layout In… Read More »
This sample code checks whether the android device is connected to Internet and if it is connected to internet, it is connected to Wifi or Not? MAKE SURE YOU ADD BELOW PERMISSION TO THE ANDROID MANIFEST
Hey everyone, Today we will see how we can use storyboards in an application. First we will Create a sample project named “StoryBoardDemo” Now we will Add the Navigation Controller For that Go To Menu -> Editor >Embed In -> NavigationController Now Double Click on the Title Bar and Add the title “Companies” Now Drag… Read More »
If you are trying to access a file (PHP or java) residing in your server in your own machine, then you have to use a specific IP to access it. If it is public, then use the other System’s IP 1. If it is localhost, In Android you use it as 10.0.2.2 The localhost refers… Read More »
This example shows how to Open Camera, Take Photo, Save it, Load it in iOS. Before this make sure that you have two buttons and one imageview in the Interface (image above) and link them to appropriate actions and variables ViewController.h” ViewController.m
Hi all, In today’s tutorial we will study how we can customize a UITableView using “Prototype Cells” in iOS which was introduced in XCode 5.0. First Create a new Project and Name it “CustomTBLView”. Now you will get the Main.storyBoard file with other ViewController and Delegate Files. Open Main.storyBoard and “Drag” a TableView on to… Read More »