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 …
Read More »Monthly Archives: February 2021
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 …
Read More »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 …
Read More »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 …
Read More »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 activity Is spread AppCompatActivity To apply Tablaout.OnTabSelectedListener{{ // this is our table Private Tablaout Tablat; // …
Read More »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 …
Read More »File Upload Progress Bar using PHP and jQuery Form Plugin – Android Coding by DMTechnolab
In this post we will learn how to make File upload progress bar. We have also covered a tutorial about ajax file upload. But in that tutorial, we were not showing the progress of file upload. A mandatory feature is to show the progress bar when the file is being …
Read More »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 …
Read More »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’, ‘username’, ‘password’)); $response = array(); $name = $app->request->post(‘name’); $username …
Read More »Android Marshmallow Permissions Example – Android Coding by DMTechnolab
The package The trap.Simplified coding.Running; Import Android.Clearly; Import Android.Content.in the evening.package manager; Import Android.Support.Annotation.No no; Import Android.Support.v4.App.Activity.com; Import Android.Support.v4.Content.Context.com; Import Android.Support.v7.App.AppCompatActivity; Import Android.The.Bundle; Import Android.Support.v7.Opinion.Menu.ActionMenuItemView; Import Android.Opinion.Opinion; Import Android.Widget.switch; Import Android.Widget.Toast; public class Main activity Is spread AppCompatActivity {{ // our button Private switch Button design; // Permission code that …
Read More »