friends - basic Demo

Description

This sample uses the features of the friends library.
At least two CTR systems for establishing a friend relationship are required to run this demo.

Required Environment

The HOME Menu package and a wireless access point to connect to are required.

How to Use

Input Operation
A Button. Displays whether login succeeded.
B Button. Cannot be used at the current time.
X Button. Updates the game mode.
START Exits the demo.

Notes

  1. Make connection settings by running the debug_connect demo.
  2. Make connection settings using NetworkSetting.csu, included in the CTR-SDK
  3. Make connection settings on the HOME Menu.

Execution Procedure

Start the HOME Menu and select the Friend List.
After registering each other as friends, go online with both systems.
Next, return to the development menu on either of the CTR systems and run the demo.
When successfully connected to the wireless access point, a log such as the following is displayed.

client: initialize ac
client: AP connecting...
access point connection is established.
Start EventDispatchThread.
PrincipalId:8049
MY PROFILE
region:0
country:255
area:255
language:0
platform:2
screenname:F
FRIEND INFO
0th friend PrincipalId:7692 LOCALFRIENDCODE:15741769547520229021
FRIEND RELATIONSHIP ESTABLISHED
region:0
country:1
area:0
language:0
platform:2
--------------------------------
PRESS A : LOGIN
PRESS B : LOGOUT
PRESS X : UPDATE GAME MODE
PRESS START : EXIT PROGRAM
--------------------------------
NOTIFICATION_ONLINE

Manipulate the content displayed on the log screen or on the Friend List screen of the other CTR as necessary.

Revision History

2011/02/02
Initial version.

CONFIDENTIAL