Wiki source code of Google Android Client: Application Developer Guide
Last modified by sasindarukshan on 2012/08/04 13:53
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Client Architecture = | ||
2 | |||
3 | {{box image="client-archi.PNG"}} | ||
4 | Fig: client simple architecture | ||
5 | {{/box}} | ||
6 | |||
7 | {{box image="app flow.PNG"}} | ||
8 | Fig: Application activity flow | ||
9 | {{/box}} | ||
10 | |||
11 | |||
12 | = Creating your Client app = | ||
13 | |||
14 | |||
15 | |||
16 | Client apps are in the xwiki-android-client module. | ||
17 | |||
18 | == Conventions == | ||
19 | |||
20 | Name your package as follows. | ||
21 | {{code}}org.xwiki.android.client.<your-app>{{/code}} | ||
22 | |||
23 | In the application manifest define the main starting point activity of you app as follows: | ||
24 | |||
25 | {{code language="xml"}}<activity | ||
26 | android:name=".blog.Blogger" | ||
27 | android:icon="@drawable/blog" | ||
28 | android:label="Blog Application" > | ||
29 | <intent-filter> | ||
30 | <action android:name="xwiki.android.action.MAIN" /> {{/code}}[[image:1.PNG]] | ||
31 | {{code language="xml"}} <category android:name="xwiki.android.category.LAUNCHER" /> {{/code}}[[image:2.PNG]] | ||
32 | {{code language="xml"}} | ||
33 | </intent-filter> | ||
34 | </activity>{{/code}} | ||
35 | |||
36 | |||
37 | [[image:1.PNG]] Declare as a Main activity in the Xwiki Client. (set of client apps) | ||
38 | [[image:2.PNG]] Show the icon of this activity in the XWiki Launch pad | ||
39 | |||
40 | [[image:app launch pad.PNG]] | ||
41 | |||
42 | Fig: XWiki App Launch Pad |