i have two classes, one named Main other is Results
(a) the Main class screen have 2 fields:
1- EditField
2- ButtonField
(b) Result class: in this class there is url connection
i want once i click on the ButtonField it go to the other screen with the data i entred in the EditField to parse the xml accourding to my submit text
like this :
http://www.test.com/search.php?q=[ i want the text in the EditField to be here ]
pleaase i have been trying for 2 weeks
i'm very very new at BlackBerry development
okkk you can make one constructor having parameter is of String type of the
Resultclass. Get the String fromEditFieldin Button Click From yourMainclass like this wayand pass this String to that class which you are pushing from the button click like this way
And yourclass constructor would be
Or you can make a
Static variablelike this In main class make a varible like this
public static String editFieldUrl;assign the value in ButtonField click method
editFieldUrl = yourEditfield.getText();and use this variable in the other class. I think this may help you.