Back to project page runescape-highscore.
The source code is released under:
Apache License
If you think the Android project runescape-highscore 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.rsstat.ui; /*from www. j ava 2s. com*/ import android.content.Intent; import android.os.Parcelable; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.widget.ListView; import com.rsstat.Constants; import com.rsstat.R; import com.rsstat.models.Triple; import com.rsstat.ui.adapters.ResultsListAdapter; import java.util.ArrayList; public class ResultsActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_results); Intent intent = getIntent(); getSupportActionBar().setTitle(intent.getStringExtra(Constants.NAME_TAG)); ArrayList<Parcelable> parcelables = intent.getExtras().getParcelableArrayList(Constants.DATA_TAG); ArrayList<Triple> items = new ArrayList<>(); for (Parcelable p : parcelables){ items.add((Triple) p); } ResultsListAdapter adapter = new ResultsListAdapter(this, items); ListView listView = (ListView) findViewById(R.id.listview); listView.setAdapter(adapter); } }