08-20-2010 11:17 PM
this should be a simple problem but i still can't get it to work.
i have a class. i've attached a bit of the code.
public class HttpRequestDispatcher extends Thread
private String url;
private String method;
private NetworkingMainScreen screen;
public void run()
i'm trying to pass the value of the url to this class from the main class using -
private void getURL()
HttpRequestDispatcher dispatcher = new HttpRequestDispatcher(urlField.getText(),"GET",thi
dispatcher.start(); //urlField.getText(), "GET", this
this gives an error and it should as the class HttpRequestDispatcher does not acceptany parameters. but how do i solve the problem
thanks a lot
Solved! Go to Solution.
08-21-2010 12:00 AM
public HttpRequestDispatcher(String url, String method, NetworkingMainScreen screen)
Do like this , u didnt used formal arguments in the constructor
08-21-2010 12:05 AM
When u acll ur Thread class then U r passing three parameter,
But in the thread class constracter U r not using parameter.
now what is this. Errror must Come.
Look at the swati example, This is right.