Back to project page ProxSensorReset.
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.
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); } }