Notes on Android projects

捕获

lomeal is the main interface package. other packages are the library to support lomeal.

 

捕获
package api encapsulates apis allows app talking to the server.

factory package use factory design pattern to generate new classes

gson package contains database apis using gson

model package contains the data base models. data are exchanged by gson.  use annotation @DatabaseField @SerializedName and keyword transient to talk to database. gson it’s like hibernate. object-to database. no need write direct sql as it’s hard to maintain.

service package contain two main servcies. direct service and  ServiceTask.java. service runs in one process and multiple threads

ulti package contains utility suppport classes

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s