Troubles with SurfaceView's surfaceCreated/Destroyed

by Dianne Hackborn » Wed, 01 Apr 2009 10:17:26 GMT


Sponsored Links
  don't think you've included enough code.  Where is this 'thread' variable
defined? Where do you clear it after finishing the thread?

I am also confused by the comment saying you "exiting" the activity in
rollDice -- you aren't calling finish, you are just starting another
activity, so the original activity is still there, and its window will just
be re-displayed when it is shown again.

The only thing I can think of is that you aren't handling the case where
your window is hidden and then shown again, causing surfaceCreated to be
called a second time on the same SurfaceView, but again there isn't enough
code here to really tell what is happening.

Also you do know that you can only call Thread.start() once on a particular
thread object, right?

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#start()

On Tue, Mar 31, 2009 at 6:46 PM, kbeal10 <kbea...@gmail.com> wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support. All such questions should be posted on public
forums, where I and others can see and answer them.

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



Other Threads

1. Android Discovered

Here is my discovery of how I think Android can be defined. Correct me
if I am mistaken.

----

Android is an ecosystem of loosely-coupled components enabling AI in
order to simplify complexity that will be built up by competing mini-
systems. It is loosely-coupled to the degree that "intents", which
represent specific actions to be taken, stand apart as their own
component.

- Juan T.
--~--~---------~--~----~------------~-------~--~----~

2. BUG, TERRIBLE BUG!!! HELP! (was Low on space)





Why would anyone claim there are no bugs in -any- piece of complicated
software?  (Except I guess TeX).




Just to clarify, none of the installed applications are shown to be using a
large amount of data?  If that is the case, then there are very few places
the storage could have gone.  First be sure to check in I believe
/data/local (may be something else, it's the directory under /data owned by
the shell allowing it to place files there).  If that is not large, it could
be in data/system, but unlikely.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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

3. Is it possible to replace or extend the dialer application ?

4. Activity Lifecycle in Regards to Process Lifecycle and GC

5. How to Simulate the SIM in the emulator

6. Will Android open up the hardware?

7. OS mobile development conference invitation