Since you have a NullPointerException, that means you are trying to acess a varible that isn't initulized yet, and there is only one variable you are activly acessing on that line: hello.
What does you onCreate method look like? -Kitzy On Mar 1, 9:37 pm, wahib haq <[email protected]> wrote: > hey kitzy ! Thanks for ur response. Line 62 is > hello.parametrosHttp("http://10.3.12.165/android/test1.php", vars); > > this is where i am calling the class function parametrosHttp() from my > activity.java file. I guess this is where the exception is occuring. I > have created the instance of the class as a public data member. does > it has to do something with constructor of class i am integrating or > is it some coding problem. > > I havent included the constructor in the new class as i was not clear > how to initialize its data members which are ... > private CookieStore cookies; > private boolean isAuthenticated; > private ArrayList<BasicNameValuePair> pairs; > private DefaultHttpClient httpclient; > private HttpPost httppost; > private InputStream conteudo; > private String retornoConexao; > > so plz guide me ... !! > > On 2/28/10, Kitzy <[email protected]> wrote: > > > > >> E/AndroidRuntime( 682): Caused by: java.lang.NullPointerException > >> E/AndroidRuntime( 682): at > >> com.example.httprequest.httppostexample.onCreate(httppostexample.java: > >> 62) > > > What is happening at/around this line in your file? > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow at > >http://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en > > -- > Wahib-ul-haq > > 3rd year Communications Engineering Student, > NUST, Pakistan. > Microsoft Student Partner > follow me on twitter @wahibhaq -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

