Show Current Location on Google Map in Android

Azhar
Updated on 30-Aug-2019 14:02:32

7K+ Views

This example demonstrates how do I show current location on a google map 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 dependency in the build.gradle (Module: app)implementation 'com.google.android.gms:play-services-maps:17.0.0' implementation 'com.google.android.gms:play-services-location:17.0.0'Step 4 − Add the following code to src/MainActivity.javaimport android.Manifest; import android.content.pm.PackageManager; import android.location.Location; import android.os.Bundle; import android.widget.Toast; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.location.FusedLocationProviderClient; import com.google.android.gms.location.LocationServices; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.MarkerOptions; import com.google.android.gms.tasks.OnSuccessListener; import com.google.android.gms.tasks.Task; import androidx.annotation.NonNull; import androidx.core.app.ActivityCompat; ... Read More

Windows 10 Toast Notifications with Python

Pavitra
Updated on 30-Aug-2019 12:55:21

1K+ Views

We can create a notifier for the events that occurred in Windows using Python. This is very simple with the win10toast module. If you are familiar with the Toast in Android then understanding the Toast notifications with Python is a piece of cake. We can generate notifications whenever an event occurs as a remainder. Let's see.Run the following command in command-line to install win10toast modulepip install win10toastIf the module successfully installed then, you will get the following result when you run the command.Collecting win10toast Downloading https://files.pythonhosted.org/packages/d4/ba/95c0ea87d9bcad68b90d8cb130a313b939c88d8338a2fed7c11eaee972fe/win10toast-0.9-py2.py3-none-any.whl Collecting pypiwin32 (from win10toast) Downloading https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl Requirement already satisfied: setuptools in c:\users\hafeezulkareem\anaconda3\lib\site-packages (from win10toast) ... Read More

What is Carrier Ethernet?

Moumita
Updated on 30-Aug-2019 12:35:05

2K+ Views

Carrier Ethernet is an application of Ethernet technology that allows network providers to offer Ethernet services to their customers and to use Ethernet technology. It enables Internet access and communication among local area networks (LANs) of business, academic, private and government organizations.The services and standards of carrier Ethernet have been defined by the Metro Ethernet Forum (MEF). MEF has also developed certification programs and it promotes the global adoption of carrier Ethernet.Carrier Ethernet versus EthernetThe primary attributes of Carrier Ethernet that differentiates it from Ethernet are −A carrier Ethernet network provides service to many organizations, while an Ethernet LAN renders ... Read More

Retrospective on Ethernet

Moumita
Updated on 30-Aug-2019 12:31:55

599 Views

Ethernet is a set of technologies and protocols that are used primarily in LANs. It was first standardized in the 1980s as IEEE 802.3 standard. It has been around since its inception and has seen different phases of development. A few other technologies have seen such consistency in usability.Advantages of EthernetEthernet is simple and reliable.It is economical since it mostly uses inexpensive twisted-pair cables.It is easily maintainable. It does not require installing any software, except for installing the network drivers.It is very less prone to failures. Once the network components are in place and correctly connected, it works perfectly.It can ... Read More

10 Gigabit Ethernet

Moumita
Updated on 30-Aug-2019 12:28:44

3K+ Views

In computer networks, 10-Gigabit Ethernet is the family of Ethernet technologies that achieve maximum rates up to 10 gigabits per second (10 Gbps). It is also known as 10GE, 10GbE or 10 GigE. It is defined by the IEEE 802.3ae-2002 standard.10GE is a thousand times faster than standard Ethernet and supports only full-duplex communication. Multimode fiber having 0.85μ frequency is used for medium distances and single-mode fiber having 1.5μ frequency is used for long distances.Varieties of Gigabit EthernetThe popular varieties of fast Ethernet are 1000Base-SX, 1000Base-LX, 1000BASE-T and 1000Base-CX.10GBase-SRDefined by IEEE 802.3ae standardUses fiber optic cablesMaximum segment length is 300 ... Read More

Jumbo Frames in Computer Network

Moumita
Updated on 30-Aug-2019 12:26:37

1K+ Views

In computer networks, jumbo frames are Ethernet frames with payload size greater than 1500 bytes. Here, 1500 bytes is the maximum transmission unit (MTU) set by IEEE 802.3 standard. The maximum size of the jumbo frames is 9000 bytes.FeaturesJumbo frames are generally used in local area networks (LANs) with high data transmission rates of 1 Gbps (gigabits per second).Jumbo frames are usually supported by a wide range of Gigabit Ethernet switches and Gigabit Ethernet network interface cards (NIC). Besides, a few fast Ethernet switches and fast Ethernet NIC also support them.The interfaces must operate at speeds of 1000Mbps.They can be ... Read More

The Original Fast Ethernet Cabling

Moumita
Updated on 30-Aug-2019 12:14:34

432 Views

Cabling in Fast Ethernet is done using both copper wires and fiber optic cables. Fast Ethernet carries data traffic at 100 Mbps (Megabits per second) in local area networks (LAN). So, the cabling should be able to handle this data speed. Earlier copper wires cannot be used for their inability to transmit 100 Mbps data over 100 meters.Cabling in Common Varieties of Fast EthernetThe common varieties of fast Ethernet are 100-Base-TX, 100-BASE-FX and 100-Base-T4.Cabling in 100-Base-T4This has four pairs of UTP of Category 3, two of which are bi-directional and the other two are unidirectional.Each twisted pair is capable of ... Read More

Gigabit Ethernet Cabling

Moumita
Updated on 30-Aug-2019 11:59:06

626 Views

Gigabit Ethernet can be deployed using both copper wires and fiber optic cables. Since they target to achieve data rates of 1 gigabit per second (1 Gbps), they require encoding – decoding a bit within a nanosecond. This was achieved first in the 1000BASE-CX version.Cabling in Common Varieties of Gigabit EthernetThe popular varieties of fast Ethernet are 1000Base-SX, 1000Base-LX, 1000BASE-T and 1000Base-CX.Cabling in 1000BASE-TUses four pairs of unshielded twisted pair (UTP) cablesGenerally uses Category 5/5e UTP, but can also use Category 6 and Category 7Maximum segment length is 100 metersCabling in 1000BASE-CXUses shielded twisted-pair cables (STP) with DE-9 or 8P8C ... Read More

Frame Bursting in Computer Network

Moumita
Updated on 30-Aug-2019 11:56:21

1K+ Views

Frame bursting is a transmission technique used at the data link layer of the OSI model to increase the rate of transmission of data frames. It can be effectively deployed in Gigabit Ethernets to increase network throughput. It is specified in the draft 802.11e QoS specification.By this technique, a sender can transmit a series of frames in succession, without surrendering control on the transmission medium. A set of smaller frames may be concatenated to form a large frame that is transmitted at one go.TechniqueFirstly, we consider a situation without frame bursting −Suppose that a station needs to send three short ... Read More

What is Multistation Access Unit (MSAU)

Moumita
Updated on 30-Aug-2019 11:49:26

1K+ Views

A multistation access unit (MSAU), also called a media access unit (MAU), is a central device that acts as Ethernet transceivers in local area networks. It is used to connect network stations or nodes in LANs and operates according to the principle of token ring. The multiple stations are connected in a star topology physically but are internally wired into a logical ring.The following figure shows a MSAU having 8 ports shown in black squares and numbered from 1 to 8, each of which can be connected to a device. Additionally, it has two ports ring-out (RO) and ring-in (RI) ... Read More

Advertisements