Created
January 30, 2012 07:13
-
-
Save kmmbvnr/1703016 to your computer and use it in GitHub Desktop.
Android project template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | |
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | |
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | |
<attributes> | |
<attribute name="maven.pomderived" value="true"/> | |
</attributes> | |
</classpathentry> | |
<classpathentry kind="src" path="gen"/> | |
<classpathentry kind="src" path="src"/> | |
<classpathentry kind="output" path="bin/classes"/> | |
</classpath> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.settings | |
bin/ | |
gen/ | |
target/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>helloworld</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | |
<arguments> | |
</arguments> | |
</buildCommand> | |
<buildCommand> | |
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | |
<arguments> | |
</arguments> | |
</buildCommand> | |
<buildCommand> | |
<name>org.eclipse.jdt.core.javabuilder</name> | |
<arguments> | |
</arguments> | |
</buildCommand> | |
<buildCommand> | |
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | |
<arguments> | |
</arguments> | |
</buildCommand> | |
<buildCommand> | |
<name>org.eclipse.m2e.core.maven2Builder</name> | |
<arguments> | |
</arguments> | |
</buildCommand> | |
</buildSpec> | |
<natures> | |
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | |
<nature>org.eclipse.jdt.core.javanature</nature> | |
<nature>org.eclipse.m2e.core.maven2Nature</nature> | |
</natures> | |
</projectDescription> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adnroid project template for work with eclipse and emacs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.helloworld" android:versionCode="1" android:versionName="0.0.1"> | |
<application android:label="@string/app_name"> | |
<activity android:name=".HelloAndroidActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
</application> | |
</manifest> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.helloworld; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class HelloAndroidActivity extends Activity { | |
private static String TAG = "helloworld"; | |
/** | |
* Called when the activity is first created. | |
* @param savedInstanceState If the activity is being re-initialized after | |
* previously being shut down then this Bundle contains the data it most | |
* recently supplied in onSaveInstanceState(Bundle). <b>Note: Otherwise it is null.</b> | |
*/ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Log.i(TAG, "onCreate"); | |
setContentView(R.layout.main); | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:text="@string/hello" | |
/> | |
</LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>helloworld</artifactId> | |
<version>0.0.1</version> | |
<packaging>apk</packaging> | |
<name>helloworld</name> | |
<dependencies> | |
<dependency> | |
<groupId>com.google.android</groupId> | |
<artifactId>android</artifactId> | |
<version> | |
1.6_r2 | |
</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>maven-android-plugin</artifactId> | |
<version>3.0.0-alpha-2</version> | |
<configuration> | |
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile> | |
<assetsDirectory>${project.basedir}/assets</assetsDirectory> | |
<resourceDirectory>${project.basedir}/res</resourceDirectory> | |
<nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory> | |
<sdk> | |
<platform>4</platform> | |
</sdk> | |
<deleteConflictingFiles>true</deleteConflictingFiles> | |
<undeployBeforeDeploy>true</undeployBeforeDeploy> | |
</configuration> | |
<extensions>true</extensions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is automatically generated by Android Tools. | |
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | |
# | |
# This file must be checked in Version Control Systems. | |
# | |
# To customize properties used by the Ant build system use, | |
# "ant.properties", and override values to adapt the script to your | |
# project structure. | |
# Project target. | |
target=android-4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<string name="hello">Hello helloworld!</string> | |
<string name="app_name">helloworld</string> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure looks pike a.lot of work for whatever it is we are trying to do.