- Added update thread with XPath-based parsing of table rates (TODO: make functional) - Renamed helper package
/trunk/src/de/pointedears/converter/helpers/CurrenciesUpdateThread.java |
---|
File deleted |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: trunk/src/de/pointedears/converter/app/CurrenciesActivity.java |
=================================================================== |
--- trunk/src/de/pointedears/converter/app/CurrenciesActivity.java (revision 15) |
+++ trunk/src/de/pointedears/converter/app/CurrenciesActivity.java (revision 14) |
@@ -23,7 +23,6 @@ |
import android.widget.TextView; |
import de.pointedears.converter.R; |
import de.pointedears.converter.db.CurrenciesDatabase; |
-import de.pointedears.converter.helpers.CurrenciesUpdateThread; |
/** |
* Activity that implements currency conversion |
@@ -279,19 +278,15 @@ |
* |
* @see android.app.Activity#onOptionsItemSelected(android.view.MenuItem) |
*/ |
+ /* |
+ * (non-Javadoc) |
+ * |
+ * @see android.app.Activity#onOptionsItemSelected(android.view.MenuItem) |
+ */ |
@Override |
public boolean onOptionsItemSelected(MenuItem item) |
{ |
- // Handle item selection |
- switch (item.getItemId()) |
- { |
- case R.id.item_options_update: |
- Thread updateThread = new CurrenciesUpdateThread(); |
- updateThread.start(); |
- return true; |
- |
- default: |
- return super.onOptionsItemSelected(item); |
- } |
+ /* update here */ |
+ return super.onOptionsItemSelected(item); |
} |
} |
/trunk/bin/Converter.apk |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/bin/resources.ap_ |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/bin/classes.dex |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/res/values/strings.xml |
---|
2,7 → 2,6 |
<resources> |
<string name="app_name">Converter</string> |
<string name="title">Android Unit Converter</string> |
<string name="button_clear">Clear</string> |
<string name="activity_lengths">Lengths</string> |
13,6 → 12,10 |
<string name="currencies_currency1"><b>Currency 1</b></string> |
<string name="currencies_currency2"><b>Currency 2</b></string> |
<string name="currencies_rate"><b>Rate</b></string> |
<string name="caption_update">Update table rates</string> |
<!-- <string name="option_quit">Quit</string> --> |
<string name="caption_update">Update</string> |
<string name="option_quit">Quit</string> |
<string name="bar">Quit</string> |
<string name="button_clear">Clear</string> |
</resources> |
/trunk/res/layout/activity_currencies.xml |
---|
27,20 → 27,17 |
android:entryValues="@array/currency_units_values" /> |
</TableRow> |
</TableLayout> |
<Button android:text="@string/button_clear" android:id="@+id/currencies_button_clear" |
android:layout_height="wrap_content" android:layout_width="100sp" |
android:layout_gravity="center_horizontal"></Button> |
<TableLayout android:id="@+id/currencies_table_rates" |
android:layout_height="fill_parent" android:layout_width="fill_parent" |
android:scrollbars="vertical" android:stretchColumns="*"> |
<View android:layout_height="2dip" android:background="#FF909090" /> |
android:scrollbars="vertical" android:layout_height="wrap_content" |
android:layout_width="fill_parent" android:stretchColumns="*"> |
<TableRow> |
<TextView android:text="@string/currencies_currency1" /> |
<TextView android:text="@string/currencies_currency2" /> |
<TextView android:text="@string/currencies_rate" /> |
</TableRow> |
<View android:layout_height="1dip" android:background="#FF909090" /> |
</TableLayout> |
</LinearLayout> |
/trunk/res/menu/options.xml |
---|
6,8 → 6,7 |
android:title="@string/caption_update" /> |
<!-- android:icon="@drawable/ic_quit" --> |
<!-- |
<item android:id="@+id/quit" |
android:title="@string/option_quit" /> |
--> |
</menu> |