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. How to change App Widget size on home screen?

The current AppWidget framework doesn't allow you to dynamically
change the widget size.  This is because the current home screen needs
to pre-reserve the area for widgets that are inserted, and also ensure
that widgets don't overlap when they are moved.

j







-- 
Jeff Sharkey
jshar...@android.com

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

2. AppWidgetProviderInfo: mutable?

Let us suppose we want an AppWidget where the user, via the
configuration activity, can change the frequency with which the
AppWidget is updated.

Can we modify updatePeriodMillis in the AppWidgetProviderInfo object for
this AppWidget and have that take effect? Or do we have to implement our
own AlarmManager-based update timer?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

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

3. work with widget and screen oriantation

4. Using TabHost with Dynamically built (pre-existing Views)

5. Commit default.properties?

6. Data Typists Needed ! Work from home, Great Income!

7. stupid camera.startPreview question