[Android] Mobile defender Project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.