Thread String

by Bobbie » Fri, 06 Mar 2009 14:01:09 GMT


Sponsored Links
 I am trying to pass a string variable to a thread, but as soon as the
app gets to the thread that is requesting the variable, the
application crashes.  Any ideas?  Can you show me some examples of how
to pass a public string to a thread?  Please let me know.  Thanks!
--~--~---------~--~----~------------~-------~--~----~



Thread String

by Bobbie » Fri, 06 Mar 2009 20:56:49 GMT


 It's a really strange situation.  I can pass other strings to a
thread, but this string for some reason won't be passed.  The string
is:

static String sesid = "";

I have other static strings declared as well and they are working
perfectly fine.

Bobbie






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Thread String

by Stoyan Damov » Fri, 06 Mar 2009 21:03:12 GMT


 What do you mean by "pass a string to a thread" - this doesn't make any sense.
Then, when your app crashes, what does the stack trace look like?





--~--~---------~--~----~------------~-------~--~----~



Thread String

by Bobbie » Fri, 06 Mar 2009 22:55:27 GMT


 Nevermind, I'm an idiot.  The thread was trying to call something that
didn't exist and I didn't see the line of code in there.  Sorry about
that!







--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Question of using ksoap for android to call webservices

I am trying to develop an android application using our webservice.

Here is the code:

        private String SOAP_ACTION= "http://.../TestFunction";
        private String METHOD_NAME = "TestFunction";
        private String NAMESPACE = "http://.../";
        private String URL = "http://.../webservice.php";

                   SoapObject request = new SoapObject(NAMESPACE,
METHOD_NAME);
        SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.setOutputSoapObject(request);

        HttpTransport  androidHttpTransport = new HttpTransport(URL);
        androidHttpTransport.call(SOAP_ACTION, envelope);


The testfunction is a function without any parameters or return
values. It is tested correctly using other applications.
As long as calling to the last line of code, the emulator exited.
I tried Eclipse, Ksoap2 in both Windows and Ubuntu.

Can anyone help? Many thanks!

Some small questions:
1) do i need to use "....php?wsdl" in URL?
2) do i need to use explict IP address in URL?
3) should I use androidhttptransport? Is it in the ksoap for android?
i downloaded but the JAR generates a compile error.
4) Is there any specific requirement for the webservices?

-- 

2. Question on memory management in android

Hi,
I have a single image that is slightly larger than the android screen
which I load into a ScrollView.

My question is the following:

Does android load the entire image into memory even though parts of it
are invisible(need to be scrolled to),
or does it use some kind of external/internal cache to store parts of
the image that are not
currently visible? If not, do you think it would be possible to
implement something like this.

Thanks!!

-- 

3. Diabling WiFI or 3G for a given application

4. connectivity manager

5. How do you Debug a Live Wallpaper

6. webview show map problem?help me

7. HttpPost responce is not showen properly in the Webkit!!