---------------------------------------------
---- Building OpenFeint With Your Project:
---------------------------------------------
1. Register an application using the OpenFeint developer dashboard at https://api.openfeint.com
2. Download the latest version of OpenFeint for Android
3. Extract the package
4. Copy libs/OpenFeint.jar into the libs/ subfolder of your Android project
5. Copy the res/ and assets/ folder into your Android project folder
6. Open up your AndroidManifest.xml file and add the following activities inside your
Optionally, if your app is fullscreen, you can use "android:style/Theme.NoTitleBar_Fullscreen" as the theme for these activities.
7. Add the following permissions to AndroidManifest.xml outside of your
8. Add OpenFeint.jar to your CLASSPATH. In Eclipse:
* Right-click on your project and click Properties.
* Click 'Java Build Path'
* Click 'Libraries'
* Click 'Add JARs...'
* Navigate to OpenFeint.jar and click Ok
9. Initialize OpenFeint. This is typically done in the onCreate() method of your main activity (main menu):
OpenFeintSettings settings = new OpenFeintSettings("App Name", "App Key", "App Secret", "App ID");
OpenFeint.initialize(this, new OpenFeintDelegate() {});
Note that you must provide your game's name, key, secret, and id to OpenFeintSettings. You can find these in the developer dashboard at https://api.openfeint.com
10. Make sure that OpenFeint is notified whenever your top-level activity changes. Typically this is done in onResume():
@Override
public void onResume() {
super.onResume();
OpenFeint.setCurrentActivity(this);
}
This only needs to be done for fullscreen Activities (i.e. overlays) and not for Activities that OpenFeint.initialize(). If you're a one-Activity application, you don't need to worry about it.
'Dev. 참고자료' 카테고리의 다른 글
프로그래밍 코딩시의 명명법 (1) | 2012.07.26 |
---|---|
(ascii) 특수문자의 발음 - 프로그래밍 기초 (0) | 2012.07.25 |
자바자격증의 종류와 자바자격증의 가치 (0) | 2012.07.25 |
자바/안드로이드에서 사용하는 국가 코드 (0) | 2012.05.21 |
국내 open api 사이트 정리 (0) | 2012.03.16 |