Blog

Building Android projects with maven - part 2: Releases with maven

  • Author: [Tobias Knell]
  • 2013-09-18

weiterlesen ❯


Building Android projects with Maven - Part 1: Setup

  • Author: [Tobias Knell]
  • 2013-09-13

Building and managing Android projects with maven is not as easy as it could be. So in this blog, I’ll show you how we managed to get it work nicely. In this example, we’ll create a parent project with an app module and a separate instrumentation tests module. Project setup The quickest approach to create a new Android project with maven is using a maven archetype from aquinet (http://mvnrepository.com/artifact/de.akquinet.android.archetypes). For this project, we’ll use the android-release archetype, as it creates a skeleton for exactly our case, as we also want to release the app with maven.

weiterlesen ❯


Android: size depending orientation lock

  • Author: [Tobias Knell]
  • 2013-01-18

We had a case in an internal app, where on Phones only the Portrait mode should be possible and on Tablets only the Landscape mode. So I googled a bit and tried out some things, and here is the solution I found for this problem. First, in each Activiy in the AndroidManifest (or each Activity that should have this behaviour, but I prefer a consistent behaviour for the whole app), declare the following:

weiterlesen ❯


A small look into Google Cloud Messages

  • Author: [Tobias Knell]
  • 2013-01-08

Within the scope of some Android R&D I took a look at Google’s Cloud Message Service, GCM. Well, the starter guide at http://developer.android.com/google/gcm/gs.html is almost all you need to get started, so I’ll explain my setup and some further instructions for a small test case. In case you already decided to setup GCM for yourself: make sure to do the guide above until you reach the ‘Writing the Android Application’ part.

weiterlesen ❯


Android: Expandable ListView

  • Author: [Tobias Knell]
  • 2012-12-07

In today’s tutorial I’d like to show you how to implement a ListView, that only displays a limited number of entries. With a button at the end of the list, the user can load more entries. To achieve this goal, we first need to implement a basic Adapter that provides our ListView with the entries: private class ExpandableListAdapter extends BaseAdapter { private List entries; private Context context; public ExpandableListAdapter(List entries) { this.

weiterlesen ❯


Pages