1.2.1 Developing Android Apps with Eclipse + ADT + SDK
Category Android Basic Tutorial
1. Preface
Here we have two options to choose from, either directly using the packaged ADT Bundle for developing Android or configuring it ourselves. Since Google has abandoned the update of ADT and the official website has also removed the download link, here we provide the latest version of the ADT Bundle before Google gave up the update for everyone to download!
2. Directly Using the Packaged Eclipse
32-bit version: adt-bundle-windows-x86-20140702.zip (Baidu Cloud) 64-bit version: adt-bundle-windows-x86_64-20140702.zip (Google link) Download and unzip, then jump directly to 4. to create a Hello World project!
3. Configuring Eclipse + ADT + SDK Yourself
You can download Eclipse from the official Eclipse website: Eclipse Official Download and SDK and ADT can be downloaded from AndroidDevTools: AndroidDevTools Official Website This provides us with many tools related to Android development, and there is no need for scientific Internet access, a must-have development website! Be sure to bookmark it! There may be some issues between different versions of configurations! The author uses an old version (very old), and those who need it can also download it: Eclipse: eclipse-jee-helios-win32.zip ADT: ADT-15.0.0.zip SDK: android-sdk-windows.rar The construction process is as follows: 1. Unzip Eclipse: Find eclipse.exe in the unzipped folder and run it, set the location where the project code is stored (workspace) after running 2. ADT configuration: Click the menu bar in order: help -> Install new software -> Add -> Local... -> Select the folder after downloading and unzipping ADT -> accept -> Restart Eclipse -> Check if the Android icon appears on the menu bar PS: There may be a warning during this period, just ignore it~ 3. SDK unzip and configuration: Click the menu bar in order: windows -> Rreferences -> Android -> Select the unzipped SDK package -> OK -> Open and re-verify 4. Create AVD (Android emulator): Click the menu bar in order: Phone icon -> New -> Select the system version -> Skin screen resolution -> Set the size of the SD card -> Complete -> Start ! PS: The first time you start AVD may be very slow, so you need to wait~
4. Creating and Running the First Program Hello World Project
1. New -> Android App Project If you can't find it, you can go to Other -> android to find it, it's the same: 2. Then enter the project information in order: 3. Run the created program 4. See the running effect on the emulator:
5. Analysis of the Project Directory Structure
Let's first take a look at our project directory diagram:
src directory: Contains all the program code files required by the App, and most of the time we are here to write our Java code.
gen directory: Only pay attention to the R.java file, which is automatically generated by ADT, and it defines an R class, which can be regarded as an id (resource number) dictionary, containing the ids of user interfaces, graphics, strings, and other resources, and we usually use resources through the R file, and the compiler will also look at this resource list, and unused resources will not be compiled, which can save space for the App.
assets directory: Stores resources, and will not generate resource ids under R.java, and needs to be accessed using the AssetsManager class.
libs directory: Stores some jar packages, such as v4, v7 compatibility packages, or some third-party packages.
res resource directory: Stores resources, drawable: stores image resources; layout: stores interface
2.5.4 Basic Usage of AutoCompleteTextView (Auto-Complete Text Box)
2.5.8 Detailed Explanation of Notification (Status Bar Notification)
2.6.4 Simple Usage of DrawerLayout (Official Side-Slide Menu)
3.6 Responding to System Setting Events (Configuration Class)
4.4.2 Further Exploration of ContentProvider - Document Provider
5.2.1 Detailed Explanation of Fragment Example - Bottom Navigation Bar Implementation (Method 1)
5.2.2 Detailed Explanation of Fragment Example - Bottom Navigation Bar Implementation (Method 2)
5.2.3 Detailed Explanation of Fragment Example - Bottom Navigation Bar Implementation (Method 3)
5.2.4 Detailed Explanation of Fragment Example - Bottom Navigation Bar + ViewPager Page Swiping
6.2 Data Storage and Access - SharedPreferences to Save User Preferences
[6.3.1 An Initial Look at SQLite Database](android-tutorial
8.3.7 Paint API - Xfermode and PorterDuff Detailed Explanation (Part Four)
8.3.8 Paint API - Xfermode and PorterDuff Detailed Explanation (Part Five)
8.3.14 Paint Several Enumerations/Constant Values and ShadowLayer Shadow Effect
8.3.17 Canvas API Detailed Explanation (Part 2) - Collection of Clipping Methods
8.3.18 Canvas API Detailed Explanation (Part 3) - Matrix and drawBitmapMesh
8.4.3 Android Animation Collection - Property Animation - First Encounter
8.4.4 Android Animation Collection - Property Animation - Another Encounter
11.0 "2015 Latest Android Basic Entry Tutorial" Completion Celebration~
12.2 DrySister Girl Watching App (First Edition) - 2. Parsing Backend Data
12.4 DrySister Girl Watching App (First Edition) - 4. Adding Data Caching (Adding SQLite)
12.5 DrySister Girl Watching App (First Edition) - 5. Code Review, Adjustment, and Log Class Writing
[12.6 DrySister Girl Watching