Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Changes the values for a bunch of TextViews on the GUI
- protected void onPostExecute(String result){
- if (xmlPullParserArray[9][1].toString().equals(null)) {
- companyNameTextView.setText(xmlPullParserArray[9][1]);
- yearLowTextView.setText("Year Low: " + xmlPullParserArray[4][1]);
- yearHighTextView.setText("Year High: " + xmlPullParserArray[5][1]);
- daysLowTextView.setText("Days Low: " + xmlPullParserArray[2][1]);
- daysHighTextView.setText("Days High: " + xmlPullParserArray[3][1]);
- lastTradePriceOnlyTextView.setText("Last Price: " + xmlPullParserArray[7][1]);
- changeTextView.setText("Change: " + xmlPullParserArray[1][1]);
- daysRangeTextView.setText("Daily Price Range: " + xmlPullParserArray[8][1]);
- } else {
- AlertDialog.Builder builder = new AlertDialog.Builder(StockInfoActivity.this);
- builder.setTitle(R.string.invalid_stock_symbol);
- builder.setPositiveButton(R.string.ok, null);
- builder.setMessage(R.string.missing_stock_symbol);
- AlertDialog theAlertDialog = builder.create();
- theAlertDialog.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement