Quantcast
Channel: CoderzHeaven
Browsing all 528 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Simple 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 Article


Image may be NSFW.
Clik here to view.

Custom 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 Article

Image may be NSFW.
Clik here to view.

Custom 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 Article

Image may be NSFW.
Clik here to view.

Create 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 Article


Google 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 Article

Error 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 Article

onRequestPermissionsResult 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 Article


How 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 Article


Android 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 Article

Failed 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 Article

How 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 Article

Typewriter 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 Article


Image may be NSFW.
Clik here to view.

Introduction 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 Article

How 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 Article


Simple 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 Article

Important 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 Article


Material 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 Article

Understanding 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 Article

Loading 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
Browsing all 528 articles
Browse latest View live


Latest Images