Deli Norr App

Have not done anything on this for a long time so it is kind of dead :-(
This is an app for a restaurant in Sundsvall called Deli Norr.
It shows the daily specials in a widget and the week's meals in a window.
  • The app is also available on the Android Market.
  • Widget showing daily special.
  • Activity showing the week's meals.
Here you can download the code: Google Drive

Screenshots


Dependencies (All needed jar is under the lib directory)

Java 1.6
Android SDK (http://developer.android.com/sdk/index.html)
Connection to Deli Norr Homepage (http://www.delinorr.se/)


Download

Here you can download the project.

Usage

To open this project in netbeans:
Download and install Android sdk from http://developer.android.com/sdk/index.html
(/opt/android-sdk-linux_x86)
Make all files under tools executable
Extract to disk and execute tools/android (See http://developer.android.com/sdk/installing.html)
Select 'Available Packages' and install Android SDK platform-tools, sdk platform Android 1.6.
Select 'Virtual Devices' and 'New'. Set data below and then create AVD:
Name: Android_1.6
Target: Android 1.6.
SD Card Size: 128MiB
SDCard: yes
AudioOutput: yes
Camera: yes
TouchScreen: yes
GPS: yes
Make all files under platform-tools and platforms/android-4/tools executable
In Netbeans 'Update Center' add this plugin: http://kenai.com/projects/nbandroid/downloads/download/updatecenter/updates.xml
Then install the Android plugin. (See http://gerry.ws/2009/01/1074/how-to-setup-netbeans-for-android-development.html)
Inside Options/Miscellaneous/Android (/opt/android-sdk-linux_x86)

Install on Android:
The Android apk file is located under the dist directory (dist/SteelsquidDeliNorrApp.apk) See http://www.brighthub.com/mobile/google-android/articles/37151.aspx Server:
The serves is Deli Norr homepage. Parsing the html from http://www.delinorr.se/filearea_15.html 

The app:
This is an app for a restaurant in Sundsvall called Deli Norr.
It shows the daily specials in a widget and by pressing the widget the week's meals in a window.

Short description of classes

org.steelsquid.delinorrapp.Widget
The widget.
org.steelsquid.delinorrapp.R
This class was automatically generated by the aapt tool from the resource data it found. 
It should not be modified by hand.
org.steelsquid.delinorrapp.ServerConnector
Read html from server and extract information.
org.steelsquid.delinorrapp.Menu
A menu object.
org.steelsquid.delinorrapp.MenuActivity
List the DeliNorr menu.
org.steelsquid.delinorrapp.BroadcastService
Screen roation.
org.steelsquid.ticnetapp.Global
Global stuff.
/res/drawable
Contains all icons
/res/layout/widget.xml
The MainWidget layout.
/res/layout/menu.xml
The MenuActivity layout.
/res/values/strings.xml
String resources used in the application.
/res/values/color.xml
Color resources used in the application.
/res/xml/widget_provider.xml
Setup the widget
AndroidManifest.xml
The manifest presents essential information about the application to the Android system, information the system must have before it can run any of the application's code.


Revision history

2011-03-18   1.0   Initial release
2011-03-28   1.1   Some small changes
2011-03-31   1.2   Reduced refresh rate on the widget to every 8 hour
2011-05-09   1.3   Nothing new in the code but using Netbeans 7
2011-09-15   1.4   Newest version of AndroidUtils