Here we are going to create custom transitions for a fragment. We will create transitions using Java classes by extending the Transition Class in Android. ChangeColor.java is the java class that extends transition. ChangeColor.java CustomTransitionFragment is the Fragment to which we are going to apply the transition. The MainActivity that adds the fragment. Download the… Read More »
Hi all… Yet another post on Google Maps.. In this demo I will show you how to show a route between two places in Google Maps V2. Hope you have gone through my previous posts before. If not please check here. You need to set up Maps Correctly for it to load. Lets… Read More »
This demo explains how you can create a Custom Notification in Android old and New versions. The notification appears expanded in Versions > 16. Let’s jump into the code… Below is the MainActivity that creates the notification. You can download the complete Android Studio Source Code from here.. Send your comments to firstname.lastname@example.org
Like Google Sign-In for Android, you will need a configuration file. Go to the below link and create a configuration file be giving your ios-bundle identifier. [https://developers.google.com/identity/sign-in/ios/start] Here I will be explain with the help of CocoaPods for integrating the Google SignIn SDK with the app. So first you need to install CocoaPods. For that… Read More »
ActionBarActivity is now deprecated.. Check out what Google says about using AppCombat. The AppCompat Support Library started with humble, but important beginnings: a single consistent Action Bar for all API 7 and higher devices. In revision 21, it took on new responsibility: bringing material color palette, widget tinting, Toolbar support, and more to all API… Read More »
Hi all, In today’s tutorial lets see 1. How we can add a Google Map to our Android project using Android Studio? 2. Showing a location in the Google Map. 3. Adding Markers in Google Map. 4. Getting location on Tapping on Marker info Window in Google Maps. Before you start coding, make sure Android… Read More »
How to implement Google Sign in Android Apps. Create a new project in Android Studio and name it DemoSignIn. 1. Get Google Configuration File (google-services.json). Follow the steps that google says and get the Configuration file. Go to this link and get it (https://developers.google.com/identity/sign-in/android/start-integrating). 2. After that go to your root “App” directory and copy… Read More »
Want to show App Banners in your website? Apple has a new way to show banners in your website. All you have to do is add a meta tag to the portion of your web site: where ‘YOUR_APP_ID’ is your app’s id. More options If you also have an affiliate code you can include your… Read More »
What is a Static library? A static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling… Read More »
1. To create apps with material design: Review the material design specification. Apply the material theme to your app. Create your layouts following material design guidelines. Specify the elevation of your views to cast shadows. Use system widgets for lists and cards. Customize the animations in your app. 2. Apply the Material Theme To apply… Read More »
Here is a simple and faster way to download a file from the internet in Android.
Below Sample code shows you how to download images from a url with progress in the notification bar. “NLService” Class is the actual Notification Listener class that can hear events in your notification. But before everything you need to be sure that, you have enabled notification access for your app. Make sure you add the… Read More »
Here is a simple demo on how to use “NSNotificationCenter” in swift. NSNotificationCenter is particularly useful when there are multiple class or struct instances that need to take action based on something that happens elsewhere in your application. To Register the notification… we will call Now to trigger the notification… The “notificationKey” should be unique… Read More »
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 »