Articles on Trending Technologies

Technical articles with clear explanations and examples

How to use nested array in android listview?

Anuradha Nanda
Anuradha Nanda
Updated on 26-Jun-2020 682 Views

This example demonstrate about How to use a nested array in android listview.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         In the code, we have taken listview to show array values.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class MainActivity extends AppCompatActivity {    ListView list; ...

Read More

How to sort string array in android listview?

Fendadis John
Fendadis John
Updated on 26-Jun-2020 687 Views

This example demonstrate about How to sort string array in android listview.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         In the code, we have taken listview to show a sorted arrayStep 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import java.util.Arrays; public class MainActivity extends AppCompatActivity {    ListView list;    String[] array = {"2", "5", ...

Read More

How to reverse of integer array in android listview?

Arushi
Arushi
Updated on 26-Jun-2020 456 Views

This example demonstrate about How to reverse of integer array in android listview.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         In the code, we have taken listview to show reversed arrayStep 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class MainActivity extends AppCompatActivity {    ListView list;    int[] ...

Read More

How has the use of drones revolutionized certain professions?

Dev Kumar
Dev Kumar
Updated on 26-Jun-2020 140 Views

Drones are a next-generation technology with far-reaching implications for several industries with a large logistics footprint. As with many other innovations and inventions, drones were also developed by the military specifically for surveillance in sensitive areas. Let's consider the impact of drones on the operations of the security forces especially in a vast country like India with all the challenges that it faces from multiple sources of discord.If we take the LOC (Line of Control) which divides the state of Jammu & Kashmir from those parts of the state that are under the illegal occupation of Pakistan, we find that ...

Read More

What is the significance of Red Fort?

siddhartha kotamraju
siddhartha kotamraju
Updated on 26-Jun-2020 4K+ Views

The Red Fort is located in the city of Delhi in India. It has a great history as it was the main residence of Mughal emperors for nearly 200 years (until 1857).The red fort is the center of Delhi and it houses a large number of museums. Not only the accommodation for the emperors but also it was the center for Mughal state politics and for setting events that impact the region critically.Its construction was started in the year 1639 by the 5th Mughal emperor Shah Jahan as the place of his fortified capital Shahjahanabad. The name Red Fort comes ...

Read More

How can I enable MySQL slow query log without restarting MySQL?

George John
George John
Updated on 26-Jun-2020 2K+ Views

We can enable the MySQL slow query log with the help of SET statement.The following is the syntax.SET GLOBAL slow_query_log = 'Value';In the above syntax, value can be filled with ON/OFF. To enable slow query log, let us see the query.mysql> SET GLOBAL slow_query_log = 'ON'; Query OK, 0 rows affected (0.00 sec)To check if the slow query is ON, implement the following query −mysql> SHOW GLOBAL VARIABLES LIKE 'slow\_%'; Here is the output.+---------------------+--------------------------+ | Variable_name       | Value                    | +---------------------+--------------------------+ | slow_launch_time    | 2       ...

Read More

How to print number of paragraphs in textview in android?

Anuradha Nanda
Anuradha Nanda
Updated on 26-Jun-2020 936 Views

This example demonstrate about How to print number of paragraphs in textview in 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.         In the above code, we have taken textview to show paragraph and toast will show the information about number of paragraphs.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends AppCompatActivity {    TextView ...

Read More

Block movement without overlap in Z-80

Ankith Reddy
Ankith Reddy
Updated on 26-Jun-2020 230 Views

In this section, we will see how we can use the Zilog Z-80 Microprocessor to move a block of data to another location. There is one assumption, there is sufficient distance between source and destination. So blocks are non-overlapping. Basically the block movement is not exact moving, it is copying the data to other locations.The number of items in the block is given at location 5000H, and the block is located at position 5050H.So before movement, the items in the memory is looking like this.AddressValue5000H04H...5050H89H5051H7AH5052H2FH5053H56H...Now, we are writing a program at location 8000H to move the block contents to other ...

Read More

How to print integer array in android Log?

Fendadis John
Fendadis John
Updated on 26-Jun-2020 895 Views

This example demonstrate about How to print integer array in android Log.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         In the code, we have taken listview to show integer arrayStep 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class MainActivity extends AppCompatActivity {    ListView list;   ...

Read More

What are Error-Detecting Codes?

Arjun Thakur
Arjun Thakur
Updated on 26-Jun-2020 27K+ Views

Error-detecting codes are a sequence of numbers generated by specific procedures for detecting errors in data that has been transmitted over computer networks.When bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. The corrupted bits leads to spurious data being received by the receiver and are called errors.Error – detecting codes ensures messages to be encoded before they are sent over noisy channels. The encoding is done in a manner so that the decoder at the receiving end can detect whether there are errors in the incoming signal with high ...

Read More
Showing 48131–48140 of 61,248 articles
Advertisements