Nishtha Thakur has Published 582 Articles

How to get local date in android using local date API class?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:34:55

This example demonstrate about How to get local date in android using local date API class.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. ... Read More

How to exit iPhone application gracefully?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:28:13

There are times we would like to close our application due to some reason, for example if there is no internet connection and you’d like to kill the app, or any other reason according to the application. Though apple prefers not quitting the application, hence it is not supported in ... Read More

How to disable the network in iOS Simulator?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:23:06

Sometimes while testing our app on simulator we need to test for case where no internet is available. This can be achieved in multiple ways.Below are some of the possible ways to do itEasiest but not the most correct way is to disconnect your mac from the LAN Cable is ... Read More

How to hide Back Button on navigation bar on iPhone/iPad?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:17:29

To hide the back button on navigation bar we’ll have to either set the navigation button as nil and then hide it or hide it directly.Let’s create a project, add 2 view controller and Embed them in navigation controller. Let’s see how this project looks when run without any code ... Read More

What is bit stuffing in computer networks?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:15:39

DefinitionBit stuffing is the mechanism of inserting one or more non-information bits into a message to be transmitted, to break up the message sequence, for synchronization purpose.Purpose of Bit StuffingIn Data Link layer, the stream of bits from the physical layer is divided into data frames. The data frames can ... Read More

High-level Data Link Control (HDLC)

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:14:44

High-level Data Link Control (HDLC) is a group of communication protocols of the data link layer for transmitting data between network points or nodes. Since it is a data link protocol, data is organized into frames. A frame is transmitted via the network to the destination that verifies its successful ... Read More

Error control in Data Link Layer

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:06:19

Error control in data link layer is the process of detecting and correcting data frames that have been corrupted or lost during transmission.In case of lost or corrupted frames, the receiver does not receive the correct data-frame and sender is ignorant about the loss. Data link layer follows a technique ... Read More

Forward Error Correction (FEC)

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 12:47:33

Forward error correction (FEC) is an error correction technique to detect and correct a limited number of errors in transmitted data without the need for retransmission.In this method, the sender sends a redundant error-correcting code along with the data frame. The receiver performs necessary checks based upon the additional redundant ... Read More

Error Correcting Codes - Low-Density Parity Check Codes

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 12:42:34

Error Correcting CodesError-correcting codes (ECC) are a sequence of numbers generated by specific algorithms for detecting and removing errors in data that has been transmitted over noisy channels. Error correcting codes ascertain the exact number of bits that has been corrupted and the location of the corrupted bits, within the ... Read More

How to explain Android Shared preferences with example?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 07:31:58

Using share preference, we can store or retrieve values as key and value pair. There are five different methods are available in share preference as shown below −Edit() − It going to edit shared preference valuescommit() − it going to commit shared preference values in xml fileapply() − It going ... Read More

Advertisements