06 March 2015
prerequisite
- download and install openfire
- download and install spark
- download the XmppDemo
step 1.1 install openfire
- unzip openfire_3_9_3.zip to some path
- cd to /some/path/to/openfire/bin
- run openfire.exe
- click Launch Admin will open you browser
step 1.2 setup openfire
- on welcome to setup page choose language english(en)
- on server settings page
- domain: your computer name
- admin console port: 9090
- secure admin console port: 9091
- on database settings page choose embedded database
- on profile settings page choose default
- on administrator account page
- admin email address: admin
- new password: admin
- confirm password: admin
- on setup complete you can click login to the admin console
step 1.3 add a test user
- change to user/group tab click create new user
- on create user page
- username: gree2
- name: gree2
- email: **
- password: gree2
- confirm password: gree2
- click create user
- repeate step 2 create test
step 2.1 install spark
- run spark_2_6_3.exe
- follow the wizard
step 2.2 spark login
- run your spark program
- input login info
- username: gree2
- password: gree2
- server: 192.168.100.32
- click login
step 3 run android app
- clone the repo
- open with android studio
- just run it
- spark will receive a message: This message is from Android
blog comments powered by