Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 02-04-2009, 12:26 PM   #1
Junior Member
 
Join Date: Feb 2009
Posts: 5
Friends: 0
View deenybird's Profile   View deenybird's Photo Album   View deenybird's Blog   View Social Groups
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() {

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

Intent.putExtra(someKey, ID)

}
}

I really appreciate any feedback provided.
deenybird is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Touchscreen, user view HCSC The Lounge 4 09-01-2009 10:10 PM
Task or To-Do List mezien Android Games And Applications 7 07-09-2009 04:06 PM
Animating a simple event: View Flipper or Animation? arvind Android Development, Answers, Tutorials, and Code Snippets 0 12-29-2008 02:11 AM
How can i view the console output in Eclipse? Quest Android Development, Answers, Tutorials, and Code Snippets 1 11-25-2008 03:00 AM
1-Click thread view now added Andor Site Feedback 1 09-17-2008 10:15 AM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.