App closes automatically - Native code crash?

by Mark Murphy » Tue, 13 Jul 2010 06:42:02 GMT


Sponsored Links
 That's a low-level system crash. In theory, there's nothing you should
be able to do to cause one.

Please go to  http://b.android.com  and post this information there. It
would be hugely helpful if you can attach a project that demonstrates
the error.




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

Android App Developer Books:  http://commonsware.com/books 

--



App closes automatically - Native code crash?

by Genc » Thu, 15 Jul 2010 05:05:22 GMT


 Hi Mark,

Thanks for interest. I've sorted it out:

The problem that I was drawing on canvas from within 2 different
threads.

I was playing around Android's FingerPaint.java SDK sample and it's
accessing canvas within onTouchEvent. However I was also using my
SurfaceView and drawing on Canvas within my animation thread.

Removing canvas access from within onTouchEvent(main app thread)
solved the problem.

Thanks again.

Kind regards.






--


Sponsored Links


Other Threads

1. sqlite multithreading

Hi all, i need to use the SqliteDataBase from from multiple threads.
According the the sqlite documentation sqlite is threadsafe if it's
compiled with SQLITE_THREADSAFE = 1 and in android this can be done by
calling SQLiteDatabase.setLockingEnabled(true) ( the default value is
also true so it works even if you don't call it). So i need different
sqlite connection for all threads that will be using the database. How
can i open multiple database connections with getWritableDatabase() i
got Exception -  Leak found ... SQLiteDatabase created and never
closed

-- 

2. Magic rasa nexus one

Baru aja kelar.....


-- 
--------------
"Indonesian Android Community [id-android]" 

3. BUILD_TINY_ANDROID=true option for building android

4. Enabling DSP Codecs On Zoom2 (Camera Preview Issue)

5. How to run the browser and adbd on OMAP3EVM board

6. string to uppercase not working

7. Android system update - question