Let’s Code Better

  • How to Get Fabric API Key and Fabric Api Secret?

    Fabric.io is a platform that provides many services for building better apps, to grow performance and look into the insight of user and business behavior. The most useful feature provided by Fabric.io is Crashlytics, this is an error reporting tool which immediately reports issues in an application like warning, error or fatal crashes in an…

    Read more: How to Get Fabric API Key and Fabric Api Secret?
  • Ionic 3 Image Viewer Example – Load Assets Folder Images

    In this post, we will discuss on how to show local images in application asset’s images folder in Image / Photo viewer having basic functionalities like Pan, Zoom, Share download image on device etc.

    Read more: Ionic 3 Image Viewer Example – Load Assets Folder Images
  • Ionic 3 Copy to Clipboard Plugin ( Copy and Paste ) Ionic Native 3.x Version

    Clipboard is referred to a special memory space provided in the device, specialized to keep last copied data like text, images, files etc. Clipboard is a temporary space which is washed out as user copies new data and replaces existing data. In this tutorial we will implement Clipboard or Copy Paste plugin in Ionic 3…

    Read more: Ionic 3 Copy to Clipboard Plugin ( Copy and Paste ) Ionic Native 3.x Version
  • Ionic 4/5 – Add App Rating ( Rate Us 5 Stars ) Popup in Ionic 5 Application

    To get more rating or feedback from users of your application, we can show a model or popup to a user to rate your application on play or app store. Feedback for users helps to make your application better.  More rating and good feedback help an application to rank better in app stores. Here we will…

    Read more: Ionic 4/5 – Add App Rating ( Rate Us 5 Stars ) Popup in Ionic 5 Application
  • Ionic 3 Add Image/ Photo Viewer in Ionic Native 3.x Application

    In Photo galleries, we have multiple images to show at once, for looking into more details of a single image we need a view in which a user can select a single image and able to zoom, pan or share.

    Read more: Ionic 3 Add Image/ Photo Viewer in Ionic Native 3.x Application
  • Angular 7/6 – How to Implement Lazy Loading for Components Sample Application Example

    Lazy loading is an architectural design which is popular these days among new technologies. This concept is mainly used in complex and data-intensive applications. In Lazy loading only that module or component is loaded which is required on that point of time, this makes an application very fast and economic on memory consumption factors.

    Read more: Angular 7/6 – How to Implement Lazy Loading for Components Sample Application Example
  • Ionic 5|4 How to Integrate Google AdMob Advertisements

    Article Updated for Ionic 5 Google’s AdMob provides a mobile application monetization platform. The developers of Native and Hybrid applications can monetize their application earn revenue out of it. It is the most beloved monetization options available for mobile app developers. Google AdMob provides a good source to earn from a free application and it…

    Read more: Ionic 5|4 How to Integrate Google AdMob Advertisements
  • YouTube Data API v3 1M Units Limits Explained!

    When we come across a term Quota in a Google API, it makes a strange feeling and buzz around many Questions like What if I exceed this limit? Will Google ask for money if my Qauta exceeds? What is the meaning of these limits when I use Key in an API? Now If you want to use any…

    Read more: YouTube Data API v3 1M Units Limits Explained!
  • Integrate Angular Material in Ionic 3

    Angular’s team build Google’s Material design-based framework known as Angular Material. This framework is based on principles of Google material design, you can read more about it here. Today we will discuss, on how we can fuse the beauty of Angular Material and its powerful components with Ionic 3 framework. At the end of this tutorial,…

    Read more: Integrate Angular Material in Ionic 3
  • jQuery – Show Tooltip on Long Text with Ellipsis AKA DOTDOT

    Sometimes in grids, we have long strings of data to show in cells, but they not only distort the UI but also make all data visible even when not necessary. So to resolve these scenarios what we can do is to show access data in tooltip on hover and by default exceeding data from a…

    Read more: jQuery – Show Tooltip on Long Text with Ellipsis AKA DOTDOT
  • Implement Realtime Firebase Database in a Webpage from Scratch

    Firebase Real-time Databases use WebSockets to keep an eye on data changes on the server side and those changes are reflected in real time on the client side. Here we will create a simple example webpage using Firebase Real-time Database, this will be a “Hello World” type example explaining the basic method to read write…

    Read more: Implement Realtime Firebase Database in a Webpage from Scratch
  • Angular 12 How to Check All/ Uncheck All Checkbox List

    In this tutorial, we will learn how to check all and uncheck all checkboxes in the checkbox list using a master or parent checkbox in Angular. We will create an example application demonstrating the check all uncheck all features.

    Read more: Angular 12 How to Check All/ Uncheck All Checkbox List
  • Create Multiple Columns ListView from JSON Data using Retrofit2 in Android Example

    In this example, we will create a sample application with single activity having a ListView with custom BaseAdapter to have multi columns with data from JSON object which we will get from dummy JSON file on the server. To make real server requests we will use Retrofit2. This example app will discuss a challenge to…

    Read more: Create Multiple Columns ListView from JSON Data using Retrofit2 in Android Example
  • Resolved! com.google.gson.internal.LinkedTreeMap cannot be cast to

    This post is a quick hack to resolve this issue if any of you facing a similar issue. In the Android application, I am using retrofit2 and okhttp3 to communicate remove services written in PHP and sending JSON data. There is an activity in which I have to show server JSON response in a ListView, but…

    Read more: Resolved! com.google.gson.internal.LinkedTreeMap cannot be cast to
  • Add List Item in ListView Android Example

    Sample Code to Add List items Dynamically in ListView Android

    Read more: Add List Item in ListView Android Example
  • Show Progress Bar with Text and Title in Android

    In an Android application using web services or any other operations like downloading data or any process which may take time to get completed, it is always a good social behavior to show a decent progress message. A simple loader image can’t tell much about the process going on. So here we will discuss three methods…

    Read more: Show Progress Bar with Text and Title in Android
  • Ionic 5 Check App Version Name, Code and Package Name Using Ionic Native Plugin

    In this Ionic 5/4 tutorial, we’ll learn How to check application version code and name, application package id using the Cordova and Ionic Native plugin. Also, we will discuss how to change the version of the Ionic application for the next production release. In the Ionic application, we may need application-related information like Application Name,…

    Read more: Ionic 5 Check App Version Name, Code and Package Name Using Ionic Native Plugin
  • Android Background Geolocation Service Without Any Kill | Part 2

    Android location services are very popular these days, they provide the location of a device in the form of latitude and longitude coordinates using with we can track the location up to 10 meters of accuracy. Location services provide many other parameters of a device like speed, the direction of movement, human-readable address using Geocoder…

    Read more: Android Background Geolocation Service Without Any Kill | Part 2
  • Android Background Geolocation Service Without Any Kill | Part 1

    Android location services are very popular these days, they provide the location of a device in the form of latitude and longitude coordinates using with we can track the location up to 10 meters of accuracy. Location services provide many other parameters of a device like speed, the direction of movement, human-readable address using Geocoder…

    Read more: Android Background Geolocation Service Without Any Kill | Part 1
  • Resolved! – Error 1935. An error occurred during the installation of assembly component

    Last week my friend ordered RDP ThinBook 1130-ECW from Amazon. This is really a good netbook having the weight of 1.2KG and a configuration nice for lite office work. You can see this link and reviews, we will only discuss a problem I faced during installation of MS office 2007 and Open office in this…

    Read more: Resolved! – Error 1935. An error occurred during the installation of assembly component
  • How to Run Background Service in Vivo Mobiles

    Following are steps to Enable Background operations or Service in the background. Customized Android Operating Systems add some strict limitations on background services to boost up battery life and make the device perform better. Many mobile companies use them on customized OS like Xiaomi uses MIUI, Oppo uses ColorOS, Vivo use FuntouchOS and Huawei EMUI.…

    Read more: How to Run Background Service in Vivo Mobiles
  • How to Run Background Service in Xiaomi Mobiles

    Following are steps to Enable Background operations or Service in the background. Customized Android Operating Systems add some strict limitations on background services to boost up battery life and make the device perform better. Many mobile companies use them on customized OS like Xiaomi uses MIUI, Oppo uses ColorOS, Vivo use FuntouchOS and Huawei EMUI.…

    Read more: How to Run Background Service in Xiaomi Mobiles
  • Resolved! Uncaught (in promise) DOMException: Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported

    In my previous post, we created a Google Map Static API image using a Get URL. In one of my project, there was a requirement of HTML conversion into PDF document. So I wanted to add that Map Image into that PDF document. I used html2canvas and jsPDF libraries for that. When I was trying to…

    Read more: Resolved! Uncaught (in promise) DOMException: Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported
  • Convert Google Map into Image with Markers and Paths.

    In one of my application, there was a google map showing the route of a person traveled in a selected day. I was trying to convert that HTML section into downloadable PDF format, which should have that dynamic map as well. So I tried to convert that HTML section into the canvas, but unfortunately as…

    Read more: Convert Google Map into Image with Markers and Paths.
  • Generate Multipage PDF using Single Canvas of HTML Document using jsPDF

    jsPDF is a nice library to convert HTML content into PDF. We can put the different type of elements in PDF from HTML like an icon, images, text, CSS styles. Here we will discuss an example of jsPDF to convert long HTML page into PDF document which will be generated client-side and download.

    Read more: Generate Multipage PDF using Single Canvas of HTML Document using jsPDF