Android Open Source - ProxSensorReset Calibrations History Activity






From Project

Back to project page ProxSensorReset.

License

The source code is released under:

MIT License

If you think the Android project ProxSensorReset listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.abfactory.proxsensorreset;
//www.  ja  v a2 s . c o m
import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class CalibrationsHistoryActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_calibrations_history_list);
    
    ListView listviewHistory = (ListView) findViewById(R.id.listviewHistory);
    
        // Here is where the list should be called first time
        List<String> history = new ArrayList<String>();
        history.add("foo");
        history.add("bar");

        // Use adapter to display history
        ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(
                this, 
                android.R.layout.simple_list_item_1,
                history );

        listviewHistory.setAdapter(arrayAdapter);  
  }
}




Java Source Code List

com.abfactory.proxsensorreset.CalibrationsHistoryActivity.java
com.abfactory.proxsensorreset.HistoryDAO.java
com.abfactory.proxsensorreset.History.java
com.abfactory.proxsensorreset.MoreInfoActivity.java
com.abfactory.proxsensorreset.PreferencesHandler.java
com.abfactory.proxsensorreset.ProxSensorReset.java
com.abfactory.proxsensorreset.ResetFlowPhaseOneActivity.java
com.abfactory.proxsensorreset.ResetFlowPhaseThreeActivity.java
com.abfactory.proxsensorreset.ResetFlowPhaseTwoActivity.java
com.abfactory.proxsensorreset.SettingsActivity.java
com.abfactory.proxsensorreset.SupportUsActivity.java
com.abfactory.proxsensorreset.datamodel.CalibrationProcedureData.java