Apple MapKit – Loading Maps, Finding User Location, Searching for a Location,...
In this demo we will be doing the following things using Apple MapKit and Google Maps API. Load Maps Add Annotation Search for a Location Decode an Address Find route between locations For starting we...
View ArticleSimple Example on using CAMERA Access permission in Android Marshmallow.
Below example asks for camera permission in an Android Marshmallow Device. Add Camera permission to the manifest <uses-permission android:name="android.permission.CAMERA" /> For asking for...
View ArticleCustom TableView in iOS Swift
In this post we will see how we can create custom tableview cells in Swift. Let’s Start… Create a new project and name it the way you like. For creating Custom TableView we have to do below things 1....
View ArticleCustom SeekBar in Android With Labels in Bottom.
In this article I will be making a SeekBar as shown in the below screenshot. CustomSeekBar Class We will create a custom class for creating the custom Seekbar. I named it “CustomSeekBar.java” package...
View ArticleCreate PDF in iOS
The UIKit framework provides a set of functions for generating PDF content using native drawing code. These functions let you create a graphics context that targets a PDF file or PDF data object. You...
View ArticleGoogle introduces ‘Reviews from the web’; will show it in search
Google has announced ‘Review from the web’ feature for businesses, which will show user-generated reviews, along with reviews by critics directly in the search results. According to a blog post, Google...
View ArticleError Handling in Swift
When calling a method that may cause a failure, you normally pass it with an NSError object (as a pointer). If there is an error, the object will be set with the corresponding error. You then check if...
View ArticleonRequestPermissionsResult not called on Fragments
This is a common mistake that people make when coding for marshmallow. When in AppCompatActivity, you should use ActivityCompat.requestPermissions; When in android.support.v4.app.Fragment, you should...
View ArticleHow to create a simple repeating Job using JobScheduler in Android.
JobScheduler class is used to schedule Jobs in Android. JobScheduler was added recently in API 21, so below that it will not work. Here is a simple example… Schedule a job that runs every 5 seconds. We...
View ArticleAndroid studio : Gradle project sync failed error – How to Solve
This is the most common errors that we see in Android Studio and very often it is easy to fix. Just follow these simple steps File -> Invalidate caches / Restart Shutdown Android Studio...
View ArticleFailed to resolve: com.google.firebase:firebase Errors in Android Studio
Firebase errors usually comes when you have an outdated SDK. So the simple solution is to update the SDK. Open the SDK manager and check for the “extras” branch. Now check the Google Play Services and...
View ArticleHow to Solve No matching client found Error in Android Studio
No matching client found Error usually comes when you are using the FireBase SDK in your project. This is because you are missing the the ‘google-services.json’ file in your project. You may have added...
View ArticleTypewriter Animation in Android TextView.
Here is a simple class to animate a textview just like a Typewriter. https://dl.dropboxusercontent.com/u/91846918/CoderzHeaven%20images/typewriter_tv_video.mp4 Typewriter package...
View ArticleIntroduction to Android Canvas – Simple Example
The Canvas can be used to draw graphics in android. It provides methods to draw oval, rectangle, picture, text, line etc. The Paint class is used with canvas to draw objects. It holds the information...
View ArticleHow to enable Default Layout Animations in Android?
This Activity shows a simple layout animation. Here we add a new Button to the layout with “APPEARING” animation. You can have a variety of Default animations. Activity package...
View ArticleSimple Activity Scale Transitions on Android
Below simple code explains how you can do a simple activity transitions in Android Intent intent = new Intent(this, SecondActivity.class); viewGroup.addView(new Button(this)); if (Build.VERSION.SDK_INT...
View ArticleImportant Steps to improve WebView Performance in Android
A Quick note on WebView A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the...
View ArticleMaterial Design Circular Reveal Animation Demo in Android.
Material Design has changed the way users interact with the apps. Reveal is a new animation introduced in Android L that animates the view’s clipping boundaries. Reveal animations provide users visual...
View ArticleUnderstanding Shared Element Transition in Android.
Hi all, In Today’s tutorial we will see how we can do a shared element transition between activities in android. What we will do. We have two activities First activity has a TextView and two images....
View ArticleLoading webpages using JavaScript in Android WebView / Executing JavaScript...
I think everyone has checked my previous post on how to improve Android WebView performance. If not, check it here Improve Android WebView Perfomance Now we will see how we can load a webpage...
View Article