Android Tutorials for Beginners

Learn Android very Easily and Step by Step with this blog.

😀😻🟠 Romantic DP for Whatsapp 🥰😎

Tuesday, July 16, 2024

How To Create a Dialog in Android

›
 Creating a Dialog is quite easy in Android. void showDialogToPurchase () { AlertDialog . Builder builder = new AlertDialog .Builder( th...
2 comments:
Friday, December 2, 2022

How do i find what my ip address is

›
All network devices have an unique IP Address. It can be IP4 or IP6 address. How do i find what my ip address is To find your IP address on ...
2 comments:

What is server address in vpn

›
 VPN Offeres a convenient way to hide your IP Address.You can access blocked websites and URLS using VPN. What is server address in VPN For ...
Friday, November 4, 2022

PHP code for String Tokenize

›
 PHP code for String Tokenize <?php $string =  "Hello Kamal. How are you Doing?" ; $token = strtok($string,  " " ); w...
1 comment:
Thursday, September 29, 2022

C++ Code to check two given String are Anagram are not

›
  What is Anagram :  An  anagram  is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all t...

C++ Code for Rat in Maze Problem

›
 Rat in Maze problem : This is a famous problem solving coding question. There is a grid filled with 1 and 0, There is a rat at position 0,0...

C++ Code to Add two numbers without using + operator

›
 C++ Code to Add two numbers without using + operator      #include <iostream> #include <math.h> using namespace std; int add(in...

C++ Code to Add 1 in a number without using + or -

›
 C++ Code to Add 1 in a number without using + or - C++ Code int add1(int num) {     int mask=1;     if(num>=0)// if number is +ve     { ...

0 at odd places and 1 at even places

›
 0 at odd places and 1 at even places C++ Code #include <iostream> using namespace std; void arrange(int a[],int n) {      int i=0,zer...
2 comments:

C++ Code A sorted array rotated find the the point from where it is rotated

›
  A sorted array rotated find the the point from where it is rotated C ++ Code #include <iostream> using namespace std; int find(int a...
1 comment:

JAVA Code to get Current Date and Time

›
In JAVA, we can use   GregorianCalendar class to get current Date and Time.  JAVA Code to get Current Date and Time Code :  public class Tes...
Wednesday, September 14, 2022

How to remove extension from string in PHP

›
  How to remove extension from string in PHP There are multiple ways to remove extension from a file name in PHP   <?php     // Initializ...
1 comment:
Saturday, October 2, 2021

Code to get WiFi MAC Address of Device in Android

›
 In Android we can get the MAC Address of a Device Code to get WiFi MAC Address of Device in Android if ( android.os.Build . VERSION . SDK_I...
4 comments:

Check Internet Connection Type In Android

›
 In Android we can check whether the Device is Connected to Internet or Not. If Connected to Internet, we can check the type of connection l...
Saturday, December 26, 2020

JAVA Code to Rename all files in a folder

›
JAVA Code to Rename all files in a folder import java.io.*; public class RenameFileNames  {      public static void main(String[] args)     ...
6 comments:
Tuesday, November 24, 2020

Code to Check Internet Connection in Android 8 and above

›
 Code to Check Internet Connection in Android 8 and above public boolean isInternetConnected(Context context) { int result = 0 ; // Re...
1 comment:
Wednesday, September 30, 2020

Showing Snackbar with action button in Android

›
Showing Snackbar with  action button in Android  void showSnackBarWithMessage(String message) { final Snackbar snack = Snackbar. make ( ...
2 comments:
Friday, July 31, 2020

JAVA Code to find distance between two GPS Coordinates

›
Here is a JAVA Program to find the distance between two GPS Coordinates.        static double latitude1 = 40.6971494;        static do...
3 comments:

JAVA Code to convert Bytes into MB

›
Here is the JAVA Code to convert bytes in MB upto 1 decimal place. public void getSizeInMB()     {         long sizeinBytes = 200*1024;...
21 comments:

JAVA Code to get Date with Month and Time

›
                                GregorianCalendar  gc=new GregorianCalendar();     gc.setTimeInMillis(System.currentTimeMillis()); ...
2 comments:
›
Home
View web version
Powered by Blogger.