Saturday , October 23 2021

Monthly Archives: February 2021

Android TabLayout Example using ViewPager and Fragments – Android Coding by DMTechnolab

Simplified Coding

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 »

PHP Rest API Framework SLIM to Create REST API – Android Coding by DMTechnolab

Simplified Coding

  <?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

Simplified Coding

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 »