Mar 24Design Pattern Usage in JAVA and KotlinDesign Pattern Usage in JAVA and Kotlin What is Design Pattern and Why we needed it? Design Pattern provide a well performed solution for a specific problem/task. …Design Pattern Kotlin5 min read
Mar 2Sorting AlgorithmsSorting Algorithms The efficiency of the algorithms is calculated based on two things 1.Time Complexity 2.Space Complexity Time Complexity is defined as number of times the particular iteration is needed to be executed not the time of execution because it may vary due to processor speed. Space Complexity is the…Sorting Algorithms3 min read
Feb 25Quick Sort AlgorithmQuick Sort Algorithm Quick Sort Algorithm is one has a really good average runtime it is based on divide and conquer it takes particular element as an pivot and Perform partitions the given array around the picked pivot. Best Case: The best case occurs when the partition process always picks…Quicksort1 min read
Feb 15Android Code Coverage Using JacocoAndroid Code Coverage Using Jacoco Hi friends today we see how to implement jacoco in our existing project. What is Jacoco? Jacoco is a type of code coverage tool we use to test unit test case it show the line code covered lets add the implementation in app gradle file …Jacoco2 min read
Dec 7, 2021How to create Gradient Button using JetPack ComposeHow to create Gradient Button using JetPack Compose Hi Today we look on to how to create a gradient button using JetPack Compose first we will be creating a kotlin class named GradientButton inside we will be creating a composable fun GradientButton with input parameter text in the form of…Jetpack2 min read
Nov 23, 2021Scope Function in KotlinScope Function in Kotlin What is Scope Function? Scope Function execute a block of code within context of object.That is if you perform this function on an object inside an lambda expresssion then the scope inside the expression will be executed that is called Scope Function Types Of Scope Function …Kotlin Scope Functions3 min read
Nov 22, 2021Implementing onBoarding ViewPager Using JetPack ComposeImplementing onBoarding ViewPager Using JetPack Compose Lets jump straight in to the example Necessary implementation to the app level build gradle file // Paging Compose implementation "com.google.accompanist:accompanist-pager:0.13.0" implementation "com.google.accompanist:accompanist-pager-indicators:0.13.0" implementation "androidx.hilt:hilt-navigation-fragment:1.0.0" implementation "androidx.hilt:hilt-navigation-compose:1.0.0-alpha03" implementation "androidx.navigation:navigation-compose:2.4.0-alpha04" implementation "androidx.compose.runtime:runtime-livedata:$compose_version" implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"…Jetpack3 min read
Nov 15, 2021How to implement camera Capture and save Image using Jetpack composeHow to implement camera Capture and save Image using Jetpack compose For this we need to implement camerax in our app level gradle file def camerax_version = "1.0.2" implementation "androidx.camera:camera-core:${camerax_version}" implementation "androidx.camera:camera-camera2:${camerax_version}" implementation "androidx.camera:camera-lifecycle:${camerax_version}" implementation "androidx.camera:camera-view:1.0.0-alpha29"Jetpack4 min read
Nov 10, 2021Handling Multiple Permission using Jetpack ComposeHandling Multiple Permission using Jetpack Compose Hi Friends todays we look in to how to handle multiple permission using Jetpack compose so in this example we use CAMERA and RECORD_AUDIO Permission First we have to add google accompanist implementation in our app build gradle which make the permission process easy …Jetpack2 min read
Nov 8, 2021Flow vs SharedFlowFlow vs SharedFlow what is Flow? Flow is an interface , its just emit value it doesn't store any value on screen rotation it will be started from first. we use flow if you want to emit any api response to view or any multiple emit need to be done. …Flow1 min read