@SuppressLint("InflateParams") @Override protected void onCreate(Bundle savedInstanceState) { ALog.v(TAG, "onCreate. Entry..."); super.onCreate(savedInstanceState); ViewGroup viewGroup = (ViewGroup) getLayoutInflater().inflate(R.layout.activity_select, null); setContentView(viewGroup); listOfApps = (ListView) viewGroup.findViewById(R.id.selectList); TextView headline = (TextView) viewGroup.findViewById(R.id.selectDescription); StateMachine.loadGPSAwareApplications(true); applications = StateMachine.getGPSAwareApplicationsList(); if (applications.size() > 0) { listOfApps.setAdapter(new StableArrayAdapter(this)); headline.setText(R.string.selectDescription); } else { headline.setText(R.string.selectDescriptionNo); } ALog.v(TAG, "onCreate. Exit."); }
public void clickOK(View view) { ALog.v(TAG, "clickOK. Entry..."); finish(); ALog.v(TAG, "clickOK. Exit."); }