">mixi Developer Center (mDC)

mixi Connect

mixi Connect (English) » mixi Graph API » mixi API SDK for Android™ » Notes

Notes

Operation check on the emulator

Be sure to check the operation status on actual devices. This is because an official mixi app must be installed. We are making preparations to provide the apk that can be executed on the emulator in the near future.

Using ProGuard

ProGuard is automatically applied when output a signed apk file is output using an Export Signed Application Package in Eclipse. Note that you must specify the appropriate configuration file here. (You do not need to specify the configuration file when creating a package without ProGuard, but since ProGuard is applied by default, it is recommended that the file be used.)

When you install an app in the emulator by selecting [Run] on Eclipse or on an actual device, ProGuard is not applied. Therefore, the app may suddenly behave differently when you create a signed apk. It is recommended that you check its behavior periodically as functions are completed.

Add the following item in the default.properties file.

proguard.config=proguard.cfg

Then add the following in the proguard.cfg file, which was created immediately below the Android project when you created it.

-keep class jp.mixi.android.sdk.MixiDialog$JsHandler {
  public void post(java.lang.String, java.lang.String);
}
-keep class jp.mixi.android.IRemoteAuthenticator

You may need to add the following description if required (depending on the application you are creating).

-keep public class * extends android.app.Activity {
  public void *(android.view.View);
}

TOP OF THIS PAGE