Access Unique Android Device ID

Arjun Thakur
Updated on 30-Jul-2019 22:30:23

2K+ Views

If you want to check unique device id like IMEI number through programmatically we can do this by telephonic manger as shown below example −Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     Step 3 − Add the following code to src/MainActivity.javaimport android.Manifest; import android.annotation.SuppressLint; import android.app.ProgressDialog; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.annotation.RequiresApi; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.telephony.TelephonyManager; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import ... Read More

Count Total Bits in a Number using Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

806 Views

The total bits in a number can be counted by using its binary representation. An example of this is given as follows − Number = 9 Binary representation = 1001 Total bits = 4 A program that demonstrates this is given as follows. Example Live Demo public class Example { public static void main(String[] arg) { int num = 10; int n = num; int count = 0; while ... Read More

Telephone Modems

Samual Sam
Updated on 30-Jul-2019 22:30:23

2K+ Views

Modem is an abbreviation of “modulator demodulator”. It is a network device that modulates digital information or bits into analog signals for transmission at the sending end, and demodulates the analog signals to bits at the receiving end. Telephone modems enables data communication between two computers over voice – grade telephone lines. Purpose and Usage The computers are digital devices that are connected via analog local loops of the telephone networks. So, there is a need to convert the bits to analog signals so that they can be transmitted via the physical channels; and conversely convert analog signals in the ... Read More

Swap Two Variables in One Line in Java

Samual Sam
Updated on 30-Jul-2019 22:30:23

5K+ Views

Two variables can be swapped in one line in Java. This is done by using the given statement. x = x ^ y ^ (y = x); where x and y are the 2 variables. A program that demonstrates this is given as follows − Example Live Demo public class Example { public static void main (String[] args) { int x = 12, y = 25; System.out.println("Original values of x and y"); System.out.println("x = " ... Read More

First Generation (1G) Mobile Phones

Samual Sam
Updated on 30-Jul-2019 22:30:23

9K+ Views

Wireless cellular technology or mobile communications started with first generation mobile phones, popularly known as 1G. It was an analog telecommunications system, introduced in 1979 and continued to mid of the 1980s. History 1G mobile communication system was introduced in Japan in 1979 by Nippon Telegraph and Telephone (NTT). Initially, it started in Tokyo and within next five years expanded to cover the whole of Japan. In 1981, Nordic Mobile Telephone (NMT) was launched in European countries. In 1983, Ameritech launched 1G mobiles in the USA using Motorola mobile phones. Use of mobile communication system was then followed by several ... Read More

Check Visibility of Virtual Keyboard on Android

Ankith Reddy
Updated on 30-Jul-2019 22:30:23

989 Views

There are some situations, we should find keyboard is visible or not in particular activity. In this example we can check visibility of virtual keyboard on android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.             Step 3 − Add the following code to src/MainActivity.javaimport android.graphics.Rect; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.constraint.ConstraintLayout; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.view.ViewTreeObserver; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public ... Read More

Improved Mobile Telephone System

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

714 Views

Improved Mobile Telephone System (IMTS) was a radio system that linked to public switched telephone networks (PSTN) before the era of cellular mobiles. It was introduced in 1964 and was the wireless equivalent of landline dial up telephones. Features IMTS was a radio system for mobile telephones that was an improvement over the previous Mobile Telephone System (MTS). MTS supported half duplex communication. So, the communicating parties could not communicate simultaneously. IMTS supported full duplex communication, thus allowing both the user to talk and hear simultaneously. IMTS required a high power transmitter to be installed, preferably on the ... Read More

Data Over Cable Service Interface Specification (DOCSIS)

Samual Sam
Updated on 30-Jul-2019 22:30:23

630 Views

Data over cable service interface specification (DOCSIS) is an international telecommunications standard to provide high speed data to cable TV system over its existing hybrid fiber-coaxial (HFC) infrastructure. It is used for providing cable Internet access as well as supporting high definition televisions. Versions of DOCSIS DOSCIS 1.0 − It was the first version for cable modem system DOSCIS 2.0 − It enhanced upstream data from computer to the operator to allow services requiring equal data transfer in both uplink and downlink, like IP telephony. DOSCIS 3.0 − It supports IPv6 standard. It is marked by increase in transmission ... Read More

Circuit Switched vs Packet Switched Networks

Samual Sam
Updated on 30-Jul-2019 22:30:23

5K+ Views

Definitions Circuit Switched Networks − Circuit switched networks are connection-oriented networks. Here, a dedicated route is established between the source and the destination and the entire message is transferred through it. Packet Switched Networks − Packet switched networks are connectionless networks. Here, the message is divided and grouped into a number of units called packets that are individually routed from the source to the destination. Comparisons Differences with respect to technology Serial Number Circuit – Switching Packet – Switching 1 It is a connection oriented network switching technique. It is a connectionless network switching technique. ... Read More

Frequency Division Duplex

Samual Sam
Updated on 30-Jul-2019 22:30:23

3K+ Views

Frequency division duplex (FDD) is a communication technique where the connected parties can communicate with each other in both directions through use of separate frequency bands for transmitting and receiving. Since FDD uses different frequency bands for upstream data and downstream data, the sending and the receiving signals do not interfere with each other. FDD in Cellular Networks Cellular networks use FDD to separate the channels. One block of the electromagnetic spectrum is allocated for uplink, which carries data from mobile phones to a base station. A different block of the spectrum is allocated to downlink, carrying data ... Read More

Advertisements