Source Code Structure
We will now start exploring the source codes of Hello Kii in depth.
The following figure illustrates the source code structure. As shown in the figure, Hello Kii mobile app is composed of two Activities, one Application
class, and one Manifest file. We are keeping the structure simple by not using some sophisticated implementation like Fragment.
The HelloKii
class that inherits the Application
class is executed when the mobile app is launched. This is based on the description written in AndroidManifest.xml.
<application android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:name="HelloKii"
android:theme="@style/AppTheme">
You can see that the HelloKii
class is set in android:name
. This triggers the class to launch when the application starts.
AndroidManifest.xml
also defines that LoginActivity
opens when the application starts.
What's next?
We will explain how to initialize the Kii Cloud SDK in the HelloKii
class.