Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS4274 TERM PROJECT 2010 SOLE : SHARING OF LIVING EXPERIENCES Team Members: Tan Gui Han Wilson Duy Vinh Chuc Damien Catala Cheng Zhi Xiang.

Similar presentations


Presentation on theme: "CS4274 TERM PROJECT 2010 SOLE : SHARING OF LIVING EXPERIENCES Team Members: Tan Gui Han Wilson Duy Vinh Chuc Damien Catala Cheng Zhi Xiang."— Presentation transcript:

1 CS4274 TERM PROJECT 2010 SOLE : SHARING OF LIVING EXPERIENCES Team Members: Tan Gui Han Wilson Duy Vinh Chuc Damien Catala Cheng Zhi Xiang

2 IN PHASE 1… Communicate with Maps Engine to retrieve current location. (Phase 1) Register to Coalition to allow communication between 2 PSGs (Phase 1)

3 FOR PHASE 2 OF PROJECT Integrate Application with Google Maps Communicate with LASPD to obtain IP address and Port of SOLE-AS server in current location Allow users to add in their experiences about a particular location / space. Title Name of restaurant / store Ratings Comments Private / Public Allow users to retrieve experience about the location. Public -> Query the AS server Private -> Retrieve experience from the user itself

4

5 SYSTEM DESIGN Integration with Google Maps Allows user to visually see experiences around his location. Allows user to set his Name. Maps interface is shown when the user launches the application.

6 SYSTEM DESIGN Screenshot of Experience GUI: Creation of ExperienceViewing of ExperienceSpecific fields for each location

7 SYSTEM DESIGN AS SERVER SWING based GUI for AS server Manage general information of the AsServer Control connection and display all the request in a console Many future features could be implemented

8 IMPLEMENTATION DETAILS - GOOGLE MAPS INTERFACE The MapsDemo class is the main Activity of the Android application. Starts service to: Communicate with Map Engine to retrieve location using BSSID and Map Coordinates Use LASPD to get IP and Port of AS server Communicate with SOLE AS server to retrieve all experiences in the area Constantly update its location by checking for changes in BSSID of Wi-Fi Router Update the IP address of the user.

9 IMPLEMENTATION DETAILS - GOOGLE MAP ACTIVITY The Google Map Activity is responsible for ensuring that all the information required by the GUI is added to the Intent before it is invoked.

10 Adding Experience Taps on screen and choose add Query location using coordinates Returns name of location 2 2 1 1 Connect to SOLE AS Server via Sockets 3 3 If Public, store entire experience in Sole-AS Server If Private, store short experience in server 4 4 If its private experience, store entire experience on local Database. Display Map. 5 5

11 Retrieving Experience (Public) Taps on marker and choose get 1 1 Connect to SOLE AS Server via Sockets 2 2 3 3 Display Experience. Returns Experience

12 Retrieving Experience (Private) Taps on marker and choose get 1 1 Connect to SOLE AS Server via Sockets 2 2 Returns Short Experience Query using MAC address Returns IP and Port of Creator Connect to Creator, Asks for permission, Queries for full experience Returns full experience from local server 3 3 4 4

13 IMPLEMENTATION DETAILS - SOLE-AS SERVER DESIGN Initial plan to use RMI for communication between PSG and AS server. Problem: RMI library not part of JVM for Android Hence, we switched back to using traditional socket. Implemented to emulate RMI functionalities See next slide for diagram.

14 IMPLEMENTATION DETAILS - SOLE-AS SERVER DESIGN

15 IMPLEMENTATION DETAILS - MANAGEMENT OF PRIVATE EXPERIENCES User has to be able to choose if experience he wants to share is private or public. Public experience – Stored in AS Server (MySQL) Private experience – Stored locally (MySQLite) Has to get permission from other user All experiences (public + private) have some data stored on the public SOLE-AS server Private only have ID and Title stored (short_experience) See next slide for diagram

16 IMPLEMENTATION DETAILS - MANAGEMENT OF PRIVATE EXPERIENCES

17 DIFFICULTIES ENCOUNTERED Android Emulator cannot accept incoming socket connections. Tried using port redirection but failed Also, we only had 1 mobile phone to use for testing. Hence, it was difficult to test communication between Application and Map Engine / Coalition Solved problem by using personal android phone and writing a PSG simulator on java to simulate PSG on phone

18 DIFFICULTIES ENCOUNTERED Unfamiliar with details about Android Programming Eg. Modify Manifest files to access the Internet Solved by self study and research on internet Also, the project requires us to use many libraries that have already been created. Some of them are difficult to use due to lack of documentation and some features were unclear. Solved by regular meetings with TA, Chen Penghe who clarified all our doubts.

19 FUTURE DEVELOPMENT Include XML layout file into the SOLE-AS server such that the GUI Activity can retrieve its layout directly from the server. Provide User interface to allow change in layout Allow users to take a photo or other multimedia and include it in an experience.

20 DEMO

21 B ACK U P S LIDE : D ROID D RAW


Download ppt "CS4274 TERM PROJECT 2010 SOLE : SHARING OF LIVING EXPERIENCES Team Members: Tan Gui Han Wilson Duy Vinh Chuc Damien Catala Cheng Zhi Xiang."

Similar presentations


Ads by Google