introduce


By following the quick Integration documentation, you can easily integrate the functionality provided by BBSSDK into your application and then use BBSSDK for development.
Before integration, you can also download the source code project of Sample (including format files such as pdfOffice open in application). Once opened with Android Studio, compile the demo application provided on the site.
Its Github open source address is as follows:
https://github.com/MobClub/BBSSDK-for-Android
Obtain the AppKey
Application of MobSDK appkey process may refer to: http://bbs.mob.com/forum.php?mod=viewthread&tid=8212&extra=page%3D1
Configure Gradle
1. Add the following script to your root module build.gradle:



2. Add MobSDK plugin and extension in build.gradle using BBSSDK module, such as:



Theme indicates the interface style used. For now, the BBSSDK has two interface styles: theme0 and theme1.
For detailed descriptions of ShareSDK and MobLink, refer to their respective integration documentation.
Add code
Initialize the MobSDK
If you don’t set appliAction’s class name in AndroidManifest, MobSDK will set this to com.mob.mobApplication, but if you do, call it in your own Application class:
MobSDK.init(this);
To initialize the MobSDK.
2. Initialize the theme
BBSTheme0.init();
or
BBSTheme1.init();
Make sure that the theme is the same as the build.gradle configuration above
3. Add the main interface of the forum
Add the following configuration to your layout or the interface you want to add



Add MainView to your interface and call the loadData() method to load the data:
MainViewInterface mainView=(MainViewInterface)findViewById(ResHelper.getIdRes(this,”mainView”));
mainView.loadData();
4. Confuse Settings
BBSSDK has been obfuscated. If it is obfuscated again, unexpected errors may occur. Please add the following configuration to your obfuscated script and skip the obfuscated operation of BBSSDK:
-keep classcom.mob.**{*; }
-keep classcn.sharesdk.**{*; }
Five, matters needing attention
1. BBSSDK adds an open source GUI library by default. If you don’t need this library, you can disable it by setting “GUI False” under BBSSDK
2. MobSDK provides the latest version integration for BBSSDK by default. If you want to lock a certain version, you can set “version” under BBSSDK to use this version permanently
3. If a module that uses MobSDK is dependent on other modules, please make sure that the module that depends on it also introduces the MobSDK plugin, or add it to this module’s Gradle:



For more information, go to http://bbssdk.mob.com/
Later, we will bring you iOS to create mobile forum APP tutorial, please pay attention.