andRoc Development

Content → Mobile Clients → andRoc
- Introduction | Devices | Development
| Do not translate this wiki page: for developers only. |
The Android based wireless client for Rocrail.

Project details
| Target | Android 1.6+ |
| Branch | https://code.launchpad.net/~rocrail-project/rocrail/androc (lp:rocrail/androc) |
| Bug reporting | https://bugs.launchpad.net/rocrail/androc |
| Commits | http://bazaar.launchpad.net/~rocrail-project/rocrail/androc/changes |
| Translations | https://translations.launchpad.net/rocrail/androc/+pots/androc |
Translations
Android string.xml files are in the DocBook XML format.
The conversion between .xml and .pot/.po, to make it available in LaunchPad, is done with the xml2po utility.
Open issues
- Reconnect after losing connection. (WIP)
- Clear activity stack after a Rocrail server quit message.
ToDo
- Switching monitoring on/off at run time. → Needs new Rocrail request.
- Background color option for the LEDButton widget.
Nice to have
- Layout background color selection. Example dialog
Snapshot
For testers and developers.
Download the latest snapshot of andRoc-revxxx.apk with the Android web browser. → snapshots.rocrail.net- Touch the downloaded andRoc-revxxx.apk to install.
- Ready to run.
Building
Following tools are needed to build andRoc:
- Eclipse
- Ant
- Android Eclipse plugin
- Android SDK
Get the sources
bzr branch lp:rocrail/androc andRoc
Eclipse
- Import the Android as a project in Eclipse.
- Set Project → Build automatically
- Right-click the project in the Package Explorer and select Android tools → Export signed application package…
- The andRoc.apk package is found in the release directory of the project.
Ant
Create the build.xml file in the andRoc directory with the android tool:
cd lp/andRoc android update project --path . --target 2
Release the application:
cd lp/andRoc and clean release
Releasing
Export an unsigned .apk from Eclipse:
- Right-click the project in the Package Explorer and select Android Tools → Export Unsigned Application Package.
keytool -genkey -v -keystore androc-release-key.keystore -alias androc -keyalg RSA -validity 10000 jarsigner -verbose -keystore ../lp/androc-release-key.keystore andRoc.apk androc ~/android-sdk-linux_86/tools/zipalign -v 4 andRoc.apk andRoc-rev91.apk
Visibility
The android:targetSdkVersion=“4” must also be set in the Manifest file to get visible for 1.6+ devices in the Market App.
Links
Trace: » android-dev-en







