This document provides information about an IP application for Android. It discusses the Android operating system architecture and key concepts like the emulator. The document then describes how the IP application checks for a network connection before sending a file to a specific IP address. It outlines the steps to choose a file from the device and click send once a connection is available. The software requirements for developing the IP application are also listed.
2. Contents
Android & android Application
Android Operating System
IP Application
Emulator
Software Requirement
3. Android & Android Application
Android is a software stack for mobile device that includes an operating
system, middleware and key application
Android Application is a software application running on the android platform.
Because the Android platform is built for mobile device ,a typical Android app
is design for a smartphone or a tablet pc running on the Android OS .
4. Android Operating System
There is four layer in android
operating :
Linux Kernal
Libraries and Android Runtime
Application Framework
Applications
5. IP Application
Most apps don’t work in isolation, rather, they
connect to an online service to retrieve and send
data
IP Application is a simple application responsible for
sending file to server
First Checking the Network Connection
Then send the file to specific IP
6. Checking the Network Connection
To provide a good user experience, you should be
checking whether the user has a network connection
before making the request. Add the following method
to Main Activity:
7. Cont.
isNetworkconnection() checks the device has an active Internet
connection as follows:
Retrieves an instance of the connectivityManager class from the
current application context.
Retrieves an instance of the NetworkInfo class that represents the
current network connection this will be null if no network is available
.
Check if there is an available network connection and the device is
connected.
8. Cont.
This code first checks to see if there is a network connection. If there is one,
the app makes the network request, otherwise it displays an alert to the user
instead.
10. send the file to specific IP
If the connection is available
write the specific IP
Chose the file from your device
Click send
11. Emulator
Android Emulator is used to run, debug and test the android application. If
you don't have the real device, it can be the best way to run, debug and
test the application.It uses an open source processor emulator technology
called QEMU.