Open in app

Sign In

Write

Sign In

Amit Gupta
Amit Gupta

2 Followers

Home

About

May 19

Handling Google Prominent Disclosure Guidelines In Android App

Hi folks, I have written this article to shed light on the Prominent Disclosure policy which is made mandatory by Google for uploading apps on the play store. A couple of months ago, Google launched a new policy to handle compliance of Prominent Disclosure dialogs for Android applications. We connected…

Android Permissions

4 min read

Handling Google Prominent Disclosure Guidelines In Android App
Handling Google Prominent Disclosure Guidelines In Android App
Android Permissions

4 min read


May 19

Basics of Image loading

// Loader image - will be shown before loading image int loader = R.drawable.loader; // Imageview to show ImageView image = (ImageView) findViewById(R.id.image)…

Image Loading And Caching

2 min read

Image Loading And Caching

2 min read


Jan 12, 2022

SSL Pinning in Android

I have seen many people are confused for SSL pinning in Android , So I want to share my experience for it and I will be happy to see comments if anything in this article is written wrong. What is SSL Pinning: According to the documentation, SSL stands for Secure…

Ssl Pinning

5 min read

Ssl Pinning

5 min read


Dec 24, 2021

Find All Permutation of a given String in Easy Way

See possible permutations of string “ABC” in the picture Now what can we see from the picture that for first step, We have to rotate character at first position to every next position in given String ABC. in 2nd step , we have to rotate 2nd character position with every…

Permutation

1 min read

Find All Permutation of a given String in Easy Way
Find All Permutation of a given String in Easy Way
Permutation

1 min read


Nov 10, 2021

Image Not loaded sometime and first time using Picasso in Android

Problem Statement: Sometime we don’t get call back from Picasso third party library when image loading process is completed and our image Views just keep showing the placeholder and not the real image. Sometime our animation also does not work if it is dependent on Image load completion call back…

Picasso

3 min read

Picasso

3 min read


Aug 5, 2021

How Gradle Build Works in Android

Explaining here , How Gradle LifeCycle Works during build phase: 1.) Initialization Phase (Setting.gradle file) -> All Projects are listed in this file since it is required to make new Instance for every module Project so that Gradle can make queue to run build.gradle …

Nosuchmethoderror

2 min read

Nosuchmethoderror

2 min read


May 22, 2021

Given an array of positive numbers, where each element represents the max number of jumps that can…

Given an array of positive numbers, where each element represents the max number of jumps that can be made forward from that element, write a program to find the minimum number of jumps needed to reach the end of the array (starting from the first element). If an element is 0, then we cannot move through that element. package practice; public class ArrayJump { public int countMinJumps(int[] jumps) { if (jumps == null || jumps.length < 2) { return 0; } int[] minJumps = new int[jumps.length]; minJumps[0] = 0;

Jumparray

1 min read

Jumparray

1 min read


May 19, 2021

Faster, ThreadSafe, TTL supported Cache

I am writing the basic cache technique here to make it faster, Thread Safe, and with cache Expiry Support. Component used: LinkedHashMap a.) For saving Entry in map to get value in O(1) b.) To remove oldest entry from Cache map if size exceeds from a limit with accessOrder property…

Cache

6 min read

Cache

6 min read


May 13, 2021

DFS Famous Top 25 Questions

Depth First Search (DFS) Implementation Generate list of possible words from a character matrix Find length of the longest path in the matrix with consecutive characters Replace all occurrences of 0 that are surrounded by 1 in a binary matrix Replace all occurrences of 0 that are not surrounded by…

DFS

1 min read

DFS

1 min read


Apr 21, 2021

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

class Solution { public List<String> generateParenthesis(int n) { List<String> output = new ArrayList<String>(); if(n == 0){ return output…

Balanced Parenthesis

1 min read

Given n pairs of parentheses, write a function to generate all combinations of well-formed…
Given n pairs of parentheses, write a function to generate all combinations of well-formed…
Balanced Parenthesis

1 min read

Amit Gupta

Amit Gupta

2 Followers

Principal Software Engineer , Mobile Engineering

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams