The package structure of the code is organized according to the module, and the business between each module is independent.
Popular Nets
---- player Com.funshion.android.player
---- Download module com.funshion.android.download
---- Networking com.funshion.android.network
Package structure of code organized by type
----- Interface com.tsh.activity
----- Custom Interface Com.tsh.ui
----- Business Logic com.tsh.engine For example: Networking
----- Persistent com.tsh.db Database
Com.tsh.db.dao
----- Background Service Com.tsh.service
----- receive broadcast com.tsh.receiver
API interface for-----public com.tsh.utils
The anti-compilation code can know the package structure of someone else's code
[Android] creation of the project
Using the Friends League to count the usage of each Android system,Http://www.umindex.com/devices/android_os
The minimum version is 4.0
Maximum version is 4.4.4
In the manifest file, the maximum SDK version is not filled in, the high version will not be installed
Welcome interface,splashactivity
[Android] UI for the Splash Welcome interface
Display logofor easy publicity
Initialization of application Data
Check version information
Check Network
Check Copyright
The main interface removes the title bar
Inside the manifest file, set the theme,android:theme="@android: Style/theme.black.notitlebar"
Shadow Effect of text
Set Shadow color android:shadowcolor="#ff0000"
Set Shadow x - axis offset android:shadowdx="1"
Set Shadow y - axis cheap android:shadowdy="1"
Set the radius of the shadow android:shadowradius="1"
The development environment does not see shadow effects
ID of the naming specification control _ Interface _ functions such as:tv_splash_version
Add a Load Box
With the control ProgressBar, the layout is centered horizontally, below the version information,layout_below="@id/xxx"
Get version information of due process
Gets the packagemanager object, calling the Getpackagermanager () method
Call the getpackageinfo () of the packagemanager object to get thepackage information to the packageinfo object, Parameters: Package Name, additional information
The package name can be used getpackagename () to get
Gets the versionname property of the PackageInfo object , which is the version name
CTRL + SHIFT + O Quick Guide Package
[Android] Mobile defender Project