Toast is a popup visible for a few seconds can be used to notify user with a message. Toast is being used to give feedback about an action has been performed in an application. Most noticeable factor that i noticed about the Toast is that it is independent from Activity. As a result of this […]
How To Screen Capture Programmatically In Android
In this article i will explain about taking the screenshot of the current screen with few lines of codes. It is a very handy and useful code if you play with screenshots of your app. It converts the view to a bitmap and save it in device storage for future use. I will write two […]
How To Give Gradient Effect To The Page Using XML
Similar PhotoShop Gradient Tool In Android we have the ability to create gradient effect to a view. This method does not require image creation. All we have to do is to create a gradient drawable and set it as the source or background of the view. Gradient Drawable Like a photoshop gradient tool, Gradient Drawable […]
How To Change Text Color Of setError Method
This tutorial is going to explain you about changing the default behaviour of a EditText View i,e setError() method. Changing the error text color is also a part of giving branding to the application and nowadays many popular applications do this. It is achieved by a utility class called SpannableStringBuilder. In this tutorial i will […]
4 Ways To Reduce APK Size
APK, Android Application Package, is in a zip file format. The Java/Kotlin/C++ code, and resources we are using in our android application are compiled and compressed into APK file. When a user installs an application from the Google Play store, it downloads its APK file and stores it in the data folder which is created […]
How To Update Gradle Plugin In Android Studio
This article will explain how to update Gradle plugin to latest version. You can check the latest version through this weblink where Gradle Team announces their latest releases https://gradle.org/releases/ Note: Gradle and Gradle Plugin are different. Android Plugin can run/update independent of Android Studio. Normally IDE will automatically ask you to update Gradle when you […]
How To Change Package Name In Android Studio
Have you ever encountered the headache of changing the package name and leaving it with some undesired name? if so through this article i can convince you that this is the one of the simplest task to do and it will take less than 1 minute if you are using Android Studio IDE. When thinking […]
Using Custom Fonts In Android Application Development
Using of custom fonts in android application development is not yet welcomed and we know fonts are major factor in defining the look and feel of User Interface. Android in the beginning was not giving any option to add custom fonts and it only shows the default font .i.e, the same font of the device. […]
Open Camera Instance Asynchronously
Is it possible for opening camera asynchronously? i would say “yes”. By Asynchronous task we can open camera in a separate thread. Opening camera is an expensive task for every android application. The speed of camera opening depends on the hardware capacity and present memory resource availability. Device with good hardware opens camera quickly. While […]
Create Triangle Shape Using XML In Android
Here in this article lets how to create a triangle shape using XML shape. No images needed for this method. With few lines of code we can create a triangle shape with desired color. Shape class only allows for creating rectangular and circular shapes. But with trick we can create triangle. It is very useful […]
Parsing JSON Data In Android
API development is the primary area where JSON is most widely used. Irrespective of which language (ie, JAVA, PHP, C etc) you use to develop or which platform are you in (i.e, Computer, Mobile etc) JSON data format is considered as the best method to use in data interchange. In this article i will explain […]
JSON Data Format : Explanation
What is JSON? JavaScript Object Notation, It is the data-interchange language independent format and it is easier to understand for both machines and humans. So it is widely used in the area of communication between different software systems. JSON can represent information about a single item or a collection of items. With less content JSON […]
Web Vs Native Vs Hybrid Mobile Development: A Comparison
When you are new to Mobile Application Development or you start a new project the first thought will be about the type of development i.e, Web vs Native vs Hybrid. You might have also heard that some has edge over others. But how do you know which is best for your need? I am a […]
Easiest Way To Add Google Map Into Your Android Project
Here in this article i will explain about the easiest way to integrate Google Map into your project. Google Map is one of the most widely used android app in the world. Many applications demand such a widget. So Google is giving this widget to developers as Play Service. If a product is given as […]
Color Opacity Using XML In Android
It is very easy to give color opacity effect in android. Best way to add transparency by percentage is by using alpha channel in android i,e 8 digit ARGB values, Alpha-Red-Green-Blue hexadecimal. Which is appending a 2 letter value to hexa code of a color. If you know alpha codes for transparency then you don’t […]