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. How to play video file in android.

Hi,

I am new to Android.
I have depeloped a video player app. through Sd card.

Now i want to play video direct from URL.

Can anybody provide me sample code for the same.

Thanks in advance...


Thanks
Priya

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

2. RTSP and RTP streaming on the Cupcake-upgraded

Hello all,

I am trying to test RTP streaming on the Android G1 dev phone with no
success.
I used to do that successfully before to upgrade to Cupcake. But now
the same test doesn't work anymore.
Is it supposed to work?

Here is a detailed description of the test:

1) The device is the G1 dev phone upgraded to Cupcake.
2) It is connected via WiFi
3) The RTSP session is started with the VideoView activity from the
sample code (http://developer.android.com/guide/samples/ApiDemos/src/
com/example/android/apis/media/VideoViewDemo.html). The only
modification consists in specifying the RTSP URL for the path string.
4) The Darwin Streaming Server version 5.5.5 is used as an RTSP
server.
5) The mp4 file which is streamed complies with the specifications in
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html
. It is hinted.
6) Wireshark is used to monitor RTSP exchanges. The OPTIONS and
DESCRIBES commands take place normally. Then nothing more.
7) The following error appears in the Android error Log:
E/PlayerDriver(   35): Command PLAYER_INIT completed with an error or
info PVMFFailure
8) A popup windows says: "Cannot play video. Sorry, this video cannot
be played".

Notes:

1) The same test was successfull with the 1.1 Android version before
upgrading to Cupcake.
2) There is a web server collocated with the RTSP server. The same
file streams OK over http with the web server.

Thanks in advance for any clue.

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

3. ListView app dies

4. How to get the audios' _id list from db

5. ListView soft input search

6. another AppWidget issue: can't start parent app, "process is bad"

7. Cupcake Emulator do not mount SD card image