1 / 14

ANDROID PACKET MONITOR

ANDROID PACKET MONITOR. Backend. By: Chisha Malama Supervisor: Dr. WD Tucker Co-Supervisor: Mr. M Norman. FRONTEND BACKEND COMMUNICATION. Frontend App Developed by Mr J Martins. Backend App Developed by Mr C Malama. Android OS. WHAT IS ANDROID PACKET MONITOR. Monitors data usage

hewitt
Télécharger la présentation

ANDROID PACKET MONITOR

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ANDROID PACKET MONITOR Backend By: Chisha Malama Supervisor: Dr. WD Tucker Co-Supervisor: Mr. M Norman

  2. FRONTEND BACKEND COMMUNICATION Frontend App Developed by Mr J Martins Backend App • Developed by MrC Malama Android OS

  3. WHAT IS ANDROID PACKET MONITOR • Monitors data usage • Adds a cost to data usage • Works on Android OS • Runs in the background • Stores data usage accumulatively

  4. How does it work • Tracks bytes being sent/received • Detects the application sending/receiving bytes • Uses a database to store all collected information • Is able to retrieve totals based on each application

  5. DATABSE TABLE: Wi-Fi/3G

  6. Database to backend app SQLite Database Backend App ContentProvider Class WifiReadWrite class Backend App ContentProvider Class ThreeGReadWrite class

  7. Classes and communication ANDROID OS Wi-Fi TRAFFIC CORE CLASS MAIN CLASS ANDROID OS 3G DATA TRAFFIC WifiReadWrite Class ThreeGReadWrite Class SQLite Database ContentProvider Class

  8. MEDIATOR Frontend App Mediator Backend App

  9. FRONTEND APP MEDIATOR BACKENDAPP ANDROID OS Wi-Fi TRAFFIC CORE CLASS MAIN CLASS ANDROID OS 3G DATA TRAFFIC WifiReadWrite Class ThreeGReadWrite Class SQLite Database ContentProvider Class

  10. Some methods Private long getTotalReceivedTraffic(){ TrafficStatisticstrf = new TrafficStatistics() long sntbytes sntbytes = trf.getTotalbytesSent() return sntbytes } Private long getTotalSentTraffic(){ TrafficStatisticstrf = new TrafficStatistics() long rtbytes rtbytes= trf.getTotalbytesReceived() return rtbytes }

  11. Bytes conversion • Byte = 8 bits • Kilobyte = 1024 bytes • Megabyte = 1024 Kilobytes or 1.048.576 (1024 x 1024) bytes or 8.388.608 bits • Gigabyte = 1024 Megabytes or 1.073.741.824 bytes • Terabyte = 1024 Gigabytes or 1.099.511.627.776 bytes

  12. Project plan

  13. Prototype demo • We shall track all the bytes that are being sent or received. • Show total bytes that have been used without specifying which application is using it.

  14. REFERENCES • Leslie, Ben (13 November 2007). "Native C application for Android". Benno's blog. Retrieved 2009-09-04. • Chen, Jason (12 May 2008). "The Top 50 Applications". Android Developers Blog. Retrieved 2009-09-04. • http://source.android.com/source/building-devices.html • "Complications looming for Android developers". androidandme.com. 2009-11-06. Retrieved 2010-01-15.

More Related