Skip to main content

Transport Layer Protocols

There are two fundamental protocols in the transport layer  1. TCP Transmission Control Protocol-- connection-oriented protocol 2. UDP User Datagram Protocol -- connectionless protocol Connection-oriented communication : establishes a logical (virtual) connection prior to sending data. Connectionless communication : sends data right away without establishing a logical connection Qn why do we have transport layer protocal?  IP provides a weak, but efficient service model (best-effort ) How should hosts send into the network?      i.)Flow Control      ii.) Too fast is bad; too slow is not efficient IP packets are addressed to a host           How to decide which application gets which packets?         NOTE TRASPORT LAYER IS RESPONSIBLE FOR PROCESS TO PROCESS DELIVERY PORTS port is a communication endpoints  Since there are many applications running on a co...

Android

Developer Guides

Welcome to the Android developer guides. These documents teach you how to build Android apps using APIs in the Android framework and other libraries. If you're brand new to Android and want to jump into code, start with the Build Your First App tutorial. And check out these other resources to learn Android development: Codelabs: Short, self-paced tutorials that each cover a discrete topic. Most codelabs step you through the process of building a small app, or adding a new feature to an existing app. Courses: Guided training paths that teach you how to build Android apps. Online training: If you prefer to learn online with videos, check out the Developing Android Apps with Kotlin course on Udacity (trailer embedded here), and other online courses below. Otherwise, the following is a small selection of essential developer guides that you should be familiar with.

Let get started with frist android app

What is Android?

Android is a mobile operating system currently developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. And as we said before, Android offers a unified approach to application development for mobile devices. Android is an open-source operating system named Android. Google has made the code for all the low-level "stuff" as well as the needed middleware to power and use an electronic device, and gave Android freely to anyone who wants to write code and build the operating system from it. There is even a full application framework included, so third-party apps can be built and installed, then made available for the user to run as they like. The "proper" name for this is the Android Open Source Project, and this is what people mean when they say things like Android is open and free. Android, in this iteration, is free for anyone to use as they like.

Steps one
  1. First we have to have installed the Java Development Kit (JDK) from Oracle. If you do not, please you should download the latest JDK from the Oracle’s special sectionhere
  2. Then download android studio in a faster internet speed

Android Project Structure

Before we try to make our first Android application, we should first see the basic parts of an Android application project, in order to recognize them and be able to understand them better. Activities The Activities are the main Java classes, that contain the Android code with which we are going to develop, what do we want the application to do

• Layouts The Layouts are the main xml files, that contain the Android xml code with which we are going to develop, how will our application views look like. • Values The Layouts are the main xml files, that contain the Android xml code with which we are going to develop, how will our application views look like. – Animation Resources – Color State List Resource – Drawable Resources – Layout Resource – Menu Resource – String Resources – Style Resource • Drawables A drawable resource is a general concept for a graphic that can be drawn to the screen. There are several different types of drawables: – Bitmap File A bitmap graphic file (.png, .jpg, or .gif). Creates a BitmapDrawable. – Nine-Patch File A PNG file with stretchable regions to allow image resizing based on content (.9.png). Creates a NinePatchDrawable. – Layer List A Drawable that manages an array of other Drawables. These are drawn in array order, so the element with the largest index is be drawn on top. Creates a LayerDrawable. – State List An XML file that references different bitmap graphics for different states (for example, to use a different image when a button is pressed). Creates a StateListDrawable. – Level List An XML file that defines a drawable that manages a number of alternate Drawables, each assigned a maximum numerical value. Creates a LevelListDrawable. – Transition Drawable An XML file that defines a drawable that can cross-fade between two drawable resources. Creates a TransitionDrawable. – Inset Drawable An XML file that defines a drawable that insets another drawable by a specified distance. This is useful when a View needs a background drawble that is smaller than the View’s actual bounds. – Clip Drawable An XML file that defines a drawable that clips another Drawable based on this Drawable’s current level value. Creates a ClipDrawable. – Scale Drawable An XML file that defines a drawable that changes the size of another Drawable based on its current

Comments

Popular posts from this blog

computer tricks you must know in 2020

The top 3 Computer tricks  There are lots of hidden tricks present on the computer/laptop that are unknown to most of the users. Here I have written the top 14 computer tips and tricks [2020] to let you know all the hidden tricks that are present on your computer.   1. Clear Useless Temporary Data There are lots of temporary data present in your laptop/computer machine which should be cleared in some certain time. To clear the temporary data from your windows, click on the  windows logo  search  ‘run’  and open it. Now type  %temp%  and hit enter, there will be lots of useless folders and files you have to select and delete all the files and folders. Clearing temporary data will boost your Computer(PC) performance and free the hard drive space. 2. Play media into chrome browser Sometimes you don’t have any media player to play audios and videos. In this case, you can use your Chrome browser as a media player. To play audio or video s...

How USB Works

  Universal Serial Bus, or USB for short provides a single, standardized, easy to use way to connect devices to a computer. It uses a much higher data transfer rate than many common serial data formats. You can attach up to 127 individual devices to your computer using USB. USB can also supply enough power to smaller USB devices taking away the need to plug them into an external power source. This comes in handy for remote notebook useage. Some common examples of USB devices include: Printers Scanners Mice Keyboards Joysticks Digital cameras Webcams Speakers External hard drives If the device you are installing is new to the computer, Windows will auto detect it and asks for the driver disk if needed. If the device has already been installed, the computer will start using the device right away. USB devices can be connected and disconnected at any time making them hot swappable. Typical USB connectors have an A connector on one side and a B connector on the other. You can have other...

amazing tricks to learn 2020

10 hidden Google tricks we bet you didn’t know! Google has changed our lives forever, hasn’t it? Moreover, It’s kind of hard to imagine a world where Google does not exist… This Einstein of search engines is also very sneaky! Here are 10 Google tricks you need to try right away! We bet you are going to love these! 2.   Askew/Tilt When someone is trying to search something on google send them the askew link and watch the reaction. Askew/Tilt will tilt the google page and the user watching it for the first time will be shocked. Try it with your friends to see their reactions. 3.   Zerg Rush Search Zerg Rush and see your Google results disappearing one by one. The search will take you to a google page where you can see the alphabets erasing and falling all the results one by one. 4.   Blink HTML Go to google and search Blink HTML. You can see all the words blinking at a time. Try this! 5.   Party Like It’s 1998 If your friend is using a high-speed internet connecti...