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?

On Tue, Mar 31, 2009 at 6:46 PM, kbeal10 <> wrote:

Dianne Hackborn
Android framework engineer

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. Immediate Need for Multiple Requirements


This is Krishna with iMCS, we have an urgent requirement for the Following
position appreciate if you could respond with your Updated profile,
Availability, and Visa Status and Expected rate ASAP. Please let me know
Comfortable level ASAP
Requirement No:1*
Position: SAP CRM Middleware Integration
Location: CT
Duration: 1 year
Job description:
Candidate must be self directed and motivated with strong SAP CRM middleware
configuration, development, and troubleshooting experience. Strong SAP CRM
Middleware Setup/Monitor/development Experience with at least 3 go-live
projects, SAP CRM ABAP development experience with at least 3 go-live
projects,SAP CRM Technical Lead experience responsible for managing small
teams, Strong analytical and problem-solving skills
Required skills:
Excellent understanding of BDOC (Business Document) generation and
Excellent knowledge in monitoring queues, troubleshooting BDOCs in error
Fair knowledge of ABAP to troubleshoot issues.
Experienced in high volume data replication.
Must be knowledgeable in SAP R/3 SD module. Familiarity with Order to Cash
process is desirable.
Good understanding of ECC and CRM data model.
Experienced in implementing middleware, userexits/BADI's.
Experienced in replicating BP. Product, conditions and orders.
Conceptual knowledge of pricing customization and master data.
Nice to have :
Development experience with ABAP and/or JAVA.
Experience in XI.
Experience with CIF interface to SAP APO.
Experience with SAP BW extractors.
Experience with IDOCs for SAP integration.
SAP CRM ISA implementation experience.
Managing middleware during system upgrades/data refresh.

*Requirement No:2*
Position: OBIEE Lead
Location: NC
Duration: 6 Months+
Leading the effort around the implementation of the OBIEE tool. The initial
roll-out is the out-of-the-box functionality - not sophisticated dashboards
at this stage. The critical element here is that we find someone that
understands the tool from a technical perspective yet has the functional
knowledge to be able to sit with the users and talk about P&Ls, balance
sheets and their impact on Reporting. I am finding many candidates who
understand the tool but do not have the functional experience to work with
the client business resources

*Requirement No:3*
Position:WebSphere Portal Developer .
Job Description:
Required:IBM websphere Portal , JSR 168 portlet API
J2EE (Servlets, JDBC, EJB, JNDI, JAXP, JSTL custom tags)
AJAX (DWR, Prototype
Strusts with Tiles Framework and have knowledge of Spring Core ,Web MVC and
Spring Portlet MVC.
Eclipse, IBM WSAD5.1, RAD6.0, RAD7.0, Rational XDE and development tools
like TOAD8, SQL developer, LDAP browser Mercury Quality Center, WebTrends
Analytics Tool, Willy InterScope

*Requirement No:4*
Position:Informatica ETL Developer
Duration: 1 Yr
Location: FL
Job Description:
Informatica ETL Developer to work as part of a small project team developing
data extract, transformation, and load (ETL) programs.
Client requires several years experience with Informatica 8.x including the
most recent version (8.4). More importantly, someone who has worked on very
small teams or even by themselves on projects and has had verifiable
face-to-face experience with end users through the full Project Lifecycle
including extensive experience gathering requirements, following up on
issues, reworking/retesting with end users to finish assignments.
Informatica PowerCenter Expert
Cognos 8 BI Report Studio ompetent
Oracle/SQL Server database knowledge Competent
.NET application development Competent
Desired Skills:
ix Sigma (Green/Black Belt) qualification is highly preferred.
xperience with real-time data acquisition systems a plus.
roject management experience preferred.

iMCS Group Inc,
469 442 3300


2. Write a file to sdcard...


I'm trying to create a file on the sd card. Using this:

  OutputStream out = new FileOutputStream("/sdcard/tmp.jpg");

but that throws a FileNotFoundException. Isn't OutputStream supposed
to create the file, if not found on disk? I'm looking to write image
data there.

This is on a 1.6 emulator. I have an SD card installed, I'm looking at
the sdcard folder through DDMS, so it's there.



3. How to display DATA SMS

4. make call from app & go directly back to app after call hangup?

5. How to get the gallery app to recognize a new extension

6. Query regarding Email application

7. Connection to Java server program