コード例 #1
0
 // Called once the background activity has completed
 @Override
 protected void onPostExecute(Integer result) {
   // Init TextView Widget to display ADC sensor value in numeric.
   GraphView mGraphView = (GraphView) findViewById(R.id.graph);
   mGraphView.addDataPoint(result);
   TextView mTextView = (TextView) findViewById(R.id.value);
   mTextView.setText(String.valueOf(result));
 }