diff --git a/README.md b/README.md index 393dac5..cab6c56 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,48 @@ # Android Bootstrap App This repository contains the source code for the [Android Bootstrap](http://www.androidbootstrap.com/) -Android app available soon from [Google Play](https://play.google.com/store/apps/details?id=com.donnfelker.android.bootstrap). - - +Android app available from [Google Play](https://play.google.com/store/apps/details?id=com.donnfelker.android.bootstrap). Please see the [issues](https://github.com/donnfelker/android-bootstrap/issues) section to report any bugs or feature requests and to see the list of known issues. - +Have a questions about Android Bootstrap? Ask away on the [android-bootstrap discussion forum](https://groups.google.com/forum/#!forum/android-bootstrap). + + +## Authentication +Log into this demo app with the following credentials: + +user: demo@androidbootstrap.com + +password: android + + +## Generating your Bootstrap App +Why generate? Simple ... renaming files, folders, copy and pasting is SUPER error prone and well... it sucks overall. This can easily take a few days with debugging if you run into issues and perform a lot of typo's. Using the generator on [AndroidBootstrap.com](http://www.androidbootstrap.com) you can generate your application with your application name as well as the package (and folder structure) that you want to work with. + +As an example, you know that you want your app name and package to the following: + + - *App Name*: Notify + - *Package Name*: com.notify.app.mobile + +After generating the app on [AndroidBootstrap.com](http://www.androidbootstrap.com) the folder structure of the source code for the app will change: + + - From: __com/donnfelker/android/bootstrap__ + - To: __com/notify/app/mobile__ + +At that point all the source files that were located in ____com/donnfelker/android/bootstrap__ will be moved to the new folder __com/notify/app/mobile__. + +All import statments that reference the old resources (__R.com.donnfelker.android.bootstrap.R__) will now be renamed to the correct package. The artifact id's in the *pom.xml* (and various other places) will be replaced. The App Name will be replaced in the strings/etc. + +The end result is that you will be given a zip file with the correct structure. Open the zip and then execute *mvn clean package* and your app should be ready for development. + +Enjoy! + +The application + ## License * [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) @@ -70,9 +101,9 @@ and uses many great open-source libraries from the Android dev community: * [ActionBarSherlock](https://github.com/JakeWharton/ActionBarSherlock) for a consistent, great looking header across all Android platforms, [ViewPagerIndicator](https://github.com/JakeWharton/Android-ViewPagerIndicator) - for swiping between content, traffic, & referrer pages, and - [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids) for the - AirTraffic view animations - all from [Jake Wharton](http://jakewharton.com/). + for swiping between fragments and + [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids) for + view animations - all from [Jake Wharton](http://jakewharton.com/). * [RoboGuice](http://code.google.com/p/roboguice/) for dependency-injection. * [Robotium](http://code.google.com/p/robotium/) for driving our app during integration tests. diff --git a/app/pom.xml b/app/pom.xml index b01296e..3fb1450 100644 --- a/app/pom.xml +++ b/app/pom.xml @@ -10,7 +10,7 @@ https://github.com/donnfelker/android-bootstrap - 1.4 + 1.0 com.donnfelker.android.bootstrap android-bootstrap-parent @@ -150,7 +150,7 @@ Also, if you have a ci (Continuous Integration) profile, these values can be passed in via the build server. --> ${bootstrap.sign.keystore} - ${boostrap.sign.alias} + ${bootstrap.sign.alias} ${bootstrap.sign.storepass} ${bootstrap.sign.keypass} true diff --git a/app/src/main/java/com/donnfelker/android/bootstrap/ui/NewsActivity.java b/app/src/main/java/com/donnfelker/android/bootstrap/ui/NewsActivity.java index bac4b8c..db30d3f 100644 --- a/app/src/main/java/com/donnfelker/android/bootstrap/ui/NewsActivity.java +++ b/app/src/main/java/com/donnfelker/android/bootstrap/ui/NewsActivity.java @@ -1,23 +1,15 @@ package com.donnfelker.android.bootstrap.ui; -import android.content.Intent; +import static com.donnfelker.android.bootstrap.core.Constants.Extra.NEWS_ITEM; import android.os.Bundle; import android.widget.TextView; -import com.actionbarsherlock.R; -import com.actionbarsherlock.view.MenuItem; -import com.donnfelker.android.bootstrap.BootstrapServiceProvider; +import com.donnfelker.android.bootstrap.R; import com.donnfelker.android.bootstrap.core.News; -import com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockActivity; -import com.google.inject.Inject; import roboguice.inject.InjectExtra; import roboguice.inject.InjectView; -import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP; -import static android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP; -import static com.donnfelker.android.bootstrap.core.Constants.Extra.NEWS_ITEM; - public class NewsActivity extends BootstrapActivity { @InjectExtra(NEWS_ITEM) protected News newsItem; diff --git a/default.properties b/default.properties index a923a3f..37b6a1a 100644 --- a/default.properties +++ b/default.properties @@ -1,4 +1,4 @@ # A dummy file to force the Android Emulator Plugin to install SDK 15 # which we need for compiling against ABS 4. -target=android-15 +target=android-16 diff --git a/integration-tests/default.properties b/integration-tests/default.properties index 31ff39a..ad4ae37 100644 --- a/integration-tests/default.properties +++ b/integration-tests/default.properties @@ -1,4 +1,4 @@ # Project target. -target=android-15 +target=android-16 diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 518cb4e..183072f 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -9,7 +9,7 @@ apk - 1.4 + 1.0 com.donnfelker.android.bootstrap android-bootstrap-parent diff --git a/pom.xml b/pom.xml index 6bdaf11..bdb209d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 - 1.4 + 1.0 com.donnfelker.android.bootstrap android-bootstrap-parent Android Bootstrap parent