#dmtechnolab
Explore tagged Tumblr posts
Text
Abstract RecyclerView Adapter to Eliminate Some Boiler-plate Code - Android Coding by DMTechnolab
Abstract RecyclerView Adapter to Eliminate Some Boiler-plate Code – Android Coding by DMTechnolab
Hi everyone, in this post we will learn how to make one Abstract RecyclerView Adapter. Abstraction is an object-oriented programming concept, and we all learn it in our books. But the irony is that most of us do not use its power. Even I did not pay much attention to these OOP design concepts in my previous tutorials. But now I think the practical use of these concepts should be taught to all. We…

View On WordPress
2 notes
·
View notes
Link
What is the Ideal Size of an Emergency Fund? #emergencyfund
0 notes
Text
JavaScript Sprite Animation Tutorial using HTML5 Canvas - Android Coding by DMTechnolab
JavaScript Sprite Animation Tutorial using HTML5 Canvas – Android Coding by DMTechnolab
From a long time I am posting only about Android. So today I came up with a new interesting tutorial. In this post we will learn JavaScript Sprite Animation. You may have seen JavaScript Sprite Animation many times. All the 2d animations you see in the web most of them are made with JavaScript and HTML5. We can create really cool animations using JavaScript and HTML5 Canvas. To create our 2D…

View On WordPress
1 note
·
View note
Text
Android Paypal Integration Tutorial - Android Coding by DMTechnolab
Android Paypal Integration Tutorial – Android Coding by DMTechnolab
<?xml the version=“1.0” Encoding=“utf-8”?> <Relativism xmlns:Android=“http://schemas.android.com/apk/res/android” xmlns:equipment=“http://schemas.android.com/tools” Android:Layout_process=“match parent” Android:Layout_height=“match parent” Android:padding bottom=“@Dimen / activity_vertical_margin” Android:padding left=“@Dimen / activity_horgen_marin” Android:Paddingright=“@Dimen /…

View On WordPress
1 note
·
View note
Text
RecyclerView with Multiple View Types Tutorial - Android Coding by DMTechnolab
RecyclerView with Multiple View Types Tutorial – Android Coding by DMTechnolab
In this post we will learn building a complex list for our Android Application. In other words we will be building a RecyclerView with Multiple View Types. Most of the times in our android application we show a List. And sometimes it is needed that we want a list that contains different type of items in it. And this is what we will be learning in this post. We will build the following List in…

View On WordPress
0 notes
Text
Android Hilt Tutorial - Injecting Dependencies with Hilt - Android Coding by DMTechnolab
Android Hilt Tutorial – Injecting Dependencies with Hilt – Android Coding by DMTechnolab
You are welcome Android Hilt tutorial. I hope you all are aware of it Dependency injection. We use a lot of dependencies when building applications (or Android applications). Now you can manage all dependencies yourself (and you can manage it in advance if you are not using Dependency Injection). But there are many advantages to using dependency injection patterns and it is recommended that you…

View On WordPress
1 note
·
View note
Text
Android Espresso Tutorial - Testing Fragment in Isolation - Android Coding by DMTechnolab
Android Espresso Tutorial – Testing Fragment in Isolation – Android Coding by DMTechnolab
Welcome to another tutorial in the Android test series. And this post is called Android Espresso Tutorial which means that we are now moving to UI testing. Espresso is a test framework for writing automated UI tests for your Android application. With Espresso, we can simulate user interaction in our applications; A real user is using the app, but with Espresso, we will automate the process by…

View On WordPress
0 notes
Text
Android ViewModel Unit Test Tutorial - Android Coding by DMTechnolab
Android ViewModel Unit Test Tutorial – Android Coding by DMTechnolab
Hi guys welcome Android ViewModel Unit Test Tutorial. This post is also part of our Android test series. In this post, we will learn how to test our ViewModels. So far, we have learned how to write unit tests JUnit4 And using the instrumented unit test AndroidJUnit4. We also learned Test writing for cell database. Now, let’s start testing ViewModel. Android ViewModel Unit Test Tutorial I will…

View On WordPress
0 notes
Text
Android Unit Test Room Database - Android Coding by DMTechnolab
Android Unit Test Room Database – Android Coding by DMTechnolab
In the previous post we learned Writing the first unit test In our Android project. Now the time has come to level things a little. The title of this post is “Android Unit Test Room Database”; We will focus on testing the database of rooms this time. I think what you usually do is you write your database code, and then you manually check the database inspector to see if your code is working. It…

View On WordPress
0 notes
Text
Android Unit Test Tutorial - Writing Your First Unit Test - Android Coding by DMTechnolab
Android Unit Test Tutorial – Writing Your First Unit Test – Android Coding by DMTechnolab
Hey guys, so you can write or code Android apps. But do you test them? Yes, I know that everyone compiles and watches the app, whether it is working or not. But do you write code to test? Do you test every function and every module? If you know your answer, this Android unit test tutorial is for you. I think you want to write tests for the app now, and don’t worry if you’re not sure where to…

View On WordPress
0 notes
Text
Android View Binding or Data Binding? [2 easy use cases] - Android Coding by DMTechnolab
Android View Binding or Data Binding? [2 easy use cases] – Android Coding by DMTechnolab
That question has certainly outlived its time in android development. With Kotlin synthetics deprecated now is also gaining popularity. Ever since Data Bindings introduction developers were very happy about it and some developers like me were a little bit confused with questions like. What is the difference between View Binding and Data Binding? What should I use for my project? Which one is…
View On WordPress
0 notes
Text
Retrofit Authenticator Refresh Token Tutorial - Android Coding by DMTechnolab
Retrofit Authenticator Refresh Token Tutorial – Android Coding by DMTechnolab
Ever heard of the latest token? The refresh token can get you a new access token, without prompting the user to login again. In this post we will learn how you can use Retrofit Authenticator to refresh tokens. And refresh token means getting a new access token with the help of refresh token. Building Backend API Now, to follow this post you need to know about access tokens and refresh tokens, and…
View On WordPress
0 notes
Text
Picasso Android Tutorial - Android Picasso Image Loader Library - Android Coding by DMTechnolab
Picasso Android Tutorial – Android Picasso Image Loader Library – Android Coding by DMTechnolab
Hello friends, today we will learn how we can use picasso android Library developed by Trap. Picasso one of the most popular library for Android. It is a very simple and powerful library for image downloading and caching. There are also some alternative libraries such as Volley. I have already published a tutorial about Using Android volley library to load image from internet. In this post we…

View On WordPress
0 notes
Text
Android TabLayout Example using ViewPager and Fragments - Android Coding by DMTechnolab
Android TabLayout Example using ViewPager and Fragments – Android Coding by DMTechnolab
The package The trap.Simplified coding.androidtablayout; Import Android.Support.The design.Widget.Tablaout; Import Android.Support.v4.Opinion.Observer; Import Android.Support.v7.App.AppCompatActivity; Import Android.The.Bundle; Import Android.Support.v7.Widget.Toolbar; // Implementing the interface ontabsledleastener for our mainactivity // This interface will help swipe ideas public class Main…
View On WordPress
0 notes
Text
PHP Restful API Framework SLIM to Create REST API - Android Coding by DMTechnolab
PHP Restful API Framework SLIM to Create REST API – Android Coding by DMTechnolab
<? php class DbOperation {{ // database connection link
Private With $;
// class constructor
The ceremony __conversation())
{{
// Getting the DbConnect.php file
require once dirname()__FILE__) . ‘/DbConnect.php’;
// Create a DbConnect object to connect to the database
$ Db = New DbConnect());
// starting our connection link of this class
// By calling method connect of DbConnect class
This…

View On WordPress
0 notes
Text
PHP Rest API Framework SLIM to Create REST API - Android Coding by DMTechnolab
PHP Rest API Framework SLIM to Create REST API – Android Coding by DMTechnolab
<?php
//including the required files
require_once ‘../include/DbOperation.php’;
require ‘.././libs/Slim/Slim.php’;
SlimSlim::registerAutoloader();
$app = new SlimSlim();
/* *
* URL: http://localhost/StudentApp/v1/createstudent
* Parameters: name, username, password
* Method: POST
* */
$app->post(‘/createstudent’, function () use ($app) {
verifyRequiredParams(array(‘name’,…

View On WordPress
0 notes