android - How to call variable in java -
i created 2 java file, in 1 java file android list view position in integer type position variable, how call position value in java file
`public void onitemclick(adapterview parent, view view, int position,long id) {
intent intent = new intent(this, play.class); startactivity(intent); int pos = position;'//<------------ assigned pos position need call pos play.class file
classname cn = new classname(); // creating instance of class cn.variable;
if variable static can call way.
classname.variable;
Comments
Post a Comment