Sonntag, 5. Juni 2011

Best Practise for naming

Derrived from the IOSched application and from discussions with Novoda:
  • Use package names .ui.tablet, .ui.phone, .ui.widget accordingly
  • Use package .provider for classes related to content provider
  • Use prefix activity, fragment for layout files accordingly
  • Use same name for id and text of views in layout files
  • Use postfix Activity, Fragment in pacakge .ui and Contract, ProviderDatabase in package .provider
  • Use prefix m for class fields (to indicate that is a member of the class - no need to use this anymore)

Changing a Spinner to a ListView

For tablets I wanted to use a ListView instead of a Spinner in OI Shopping List.
  1. Change the activity layout.xml
  2. Use an appropriate layout for the items (defined in the adapter)
  3. Change class of the widget to AdapterView, don't cast to anything else
  4. Check use getSelectedItem* and use different methods to store selected item, ListView do not handle selections, but checked items ( with activated theme/background)

Montag, 28. Februar 2011

Jade - Android Workshop in Brussels

On 27 January during the JADE Sprint Meeting 2011 in Brussels, around 30 attendees followed my Android workshop. It was about the business model around Google and Android and about how to create apps using wireframes and appinventor.

Mittwoch, 24. Februar 2010

M2D2 Düsseldorf

M2D2 Düsseldorf, 23 February 2010 Intents and Dependency, Management

Montag, 8. Februar 2010