Help going from list view, to relevant text view.

Last Updated:

  1. deenybird

    deenybird New Member This Topic's Starter

    Feb 4, 2009
    Likes Received:
    I'm trying to figure out how to have the user presented with a 'list view' of several options, than by clicking on one of the items have it open up a text view on a new screen with the relevant text. The problem I'm having is passing the variable to another class.

    It's my understanding that I need to use an intent to pass the variable but if thats the case, what is the point of making a public integer? I was under the impression "public" means any class can use that variable.

    Here is the code I have so far

    listview1.setOnItemSelectedListener(new OnItemSelectedListener() {

    public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {

    Intent.putExtra(someKey, ID)


    I really appreciate any feedback provided.


Share This Page