XX for Android Design document

Source: Internet
Author: User

XX for Android Design document

 

[Android platform XX video chat/XX for Android]

Date: 2010.07.20.

Written by: Xu jianxiang

Web: http://www.anymobile.org

 

Modification record:

2010-07-20 Xu jianxiang

Xu jianxiang

 

Contents

 

1. Project Overview

1.1. Features

1.2. Development Environment

1.3. Runtime Environment

1.4. Glossary

2. System Architecture

3. Module Design

3.1. Android Message Communication

3.1.1. Intent

3.1.2. Broadcast Receiver

3.1.3. Thread Message

3.1.4. callback mechanism

3.1.5. Observer Mode

3.1.6. Listener

3.2. AV Engine Library

3.3. Protocol Library

4. Architecture

5. Process Design

5.1. Registration

5.2. log on

5.3. Cancel

5.4. Point-to-Point chat

5.4.1. Send text chat data

5.4.2. Accept text chat data

5.4.3. Send audio/video chat data

5.4.4. Accept audio and video multimedia data

5.4.5. proactively disable chat

5.4.6. The other party closes the chat

5.5. Invite a video chat via SMS

5.6. chatting in a chat room

5.7. Chat Room to point-to-point chat

5.7.1. actively invite chat friends

5.7.2. Accept chat invitation

5.8. WAP users and TCP proxy servers

6. Interface Design

6.1. JNI

6.2. PTS

6.3. AV Engine

7. Data Storage

7.1. Shared Preferences

7.2. SQLite Database

8. Porting Problems

8.1. io input/output problems

8.2. OS related

8.3. timer

8.4. socket network

8.5. log

References

 

1. Project Overview

 

1. Features

 

XX video chat mobile phones enable mobile video interaction on the Gbps network, so that mobile phone users can enjoy the 3G function. Global Communication is achieved without roaming fees, which greatly reduces communication costs. In addition, two-way video chat between mobile phones and PCs is also supported, so that people can "meet" anytime and anywhere ", make the world smaller.

 

XX for Android is the Android version of video chat software XX. It enables mobile users to chat with Amy or friends in the address book through point-to-point video, voice, and text, in addition, users can use video, voice, and text chat rooms.

 

1. 2. Development Environment

 

Windows XP + Cygwin/Ubuntu 10.3

JAVA:

IDE: JDK 1.5 + Eclipse3.5 + ADT0.9.6 + CDT 1.0.0

SDK: Android SDK

NDK: Android-NDK-r3

C/C ++:

Library C: bsd c library Lite version bionic

 

1. 3. Running Environment

 

Android 1.5 and later firmware versions

 

1. 4. Glossary

 

[Android] A Collection of mobile device software developed by OHA, including operating systems, middleware, and core applications.

 

2. System Architecture

 

It consists of four modules: UI interaction layer, JNI interface layer, core application layer, and system adaptation layer.

(Figure omitted)

 

UI interaction layer:

It mainly implements the human-computer interaction interface and some framework classes. It provides product functions in different scenarios. Each scenario can contain multiple interfaces, and each scenario can process specific notification messages.

 

JNI interface layer:

Linking Java with the C/C ++ code layer is the hub for interaction between the UI interaction layer and the PTS Protocol Module and the AV Engine. It provides top-down positive calls and bottom-up callback calling mechanisms.

 

System Adaptation Layer:

Provides wrapper implementation related to the system platform, such as io, OS, timer, and socket.

 

Core Application Layer:

The migrated core library, including the Protocol Library and the AV Engine library.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.