Android App Template Fragment Experiment
forked from https://github.com/kaosf/android-app-template/releases/tag/v2.0.0
References
- フラグメントの一番簡単な利用方法 - Android 開発入門
- android - java.lang.ClassNotFoundException in dalvik.system.PathClassLoader.findClass - Stack Overflow
- Hello WorldをFragmentを使って書き換えた その2 FragmentTransactionを使う - Androidはワンツーパンチ 三歩進んで二歩下がる
Environment
- OS: Ubuntu 12.04 amd64
- JDK: OpenJDK 1.7
- Eclipse: Eclipse IDE for Java EE Developers (4.3 (Kepler))
- Apache Ant: 1.9.2
- Android SDK: r22.3-linux
How was this created
- Launch Eclipse
- File > New > Other... > Android > Android Application Project
- "New Android Application" wizard
- Create a new Android Application
- Application Name: AndroidAppTemplate
- Project Name: android-app-template
- Package Name: net.kaosfield.app
- Minimum Required SDK: API8: Android 2.2
- Target SDK: API18: Android 4.3
- Compile With: API19: Android 4.4
- Theme: Holo Light
- Configure Project (all default)
- Create custom launcher icon: checked
- Create activity: checked
- Mark this project as a library: unchecked
- Create Project in Workspace: checked
- Working sets > Add project working sets: unchecked
- Configure the attributes of the icon set (all default)
- Foreground: Image
- Image File: launcher_icon
- Trim Surrounding Blank Space: checked
- Foreground Scaling: Crop
- Shape: None
- Background Color: "white"
- Foreground: Image
- Select whether to create an activity, and... (all default)
- Create Activity: checked
- select "Blank Activity"
- Create a new blank activity, with... (all default)
- Activity Name: MainActivity
- Layout Name: activity_main
- Navigation Type: None
- Create a new Android Application
Edit .gitignore
Ignore .classpath
, .project
, .settings/
, bin/
, gen/
and local.properties
.
.classpath
.project
.settings
bin
gen
local.properties
Manage "assets" directory
touch assets/.gitkeep
Enable to build from command line
Execute android update project -p ./
. local.properties
file is generated by this command, and it should be ignored.
Now you can build with ant debug
or ant release
.
android
command is <android-sdk-path>/tools/android
.
ant
command is Apache Ant.
License
Copyright 2013 ka