Does Application Error Reports support crashes in native code?

by Shri » Fri, 20 May 2011 02:15:51 GMT


Sponsored Links
 Does the Application Error Reports infrastructure described at
 http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html 
work for crashes in native code?

It sounds like the mechanism works by using
Thread.setDefaultUnhandledExceptionHandler which only works for Java
code, and so it will not work for native code. Are there any solutions
for native code? I am working on registering a signal handler which
starts a separate process (since crashes in native code can leave the
process in a bad state) to get the logcat logs and then send those.
Just wondering if there is any better solution.

-- 



Other Threads

1. Trying to restore state

My app was a couple of custom classes that have long running processes in
them, so I instantiate them in a thread and pass them back to the activity
in a message and then from the handler run the FillProductInfo method which
updates the UI with the data.

I thought I might have a few problems storing the objects and restoring
state, but in a couple of hours this morning, I was able to save and restore
the objects. I thought I was done the tricky part, but when I call the same
method that updates the UI the first time, after restoring the objects the
following line always fails, itemView is always null, and the code that
updates the UI is never executed. 

To test this I'm just opening and closing the keyboard, and this method
works fine the first time. Just not after I open or close the keyboard
(testing on a G1 obviously). 

Private void FillProductInfo()
{
        View itemView = getListView().getChildAt(2);
        // we have the view now update the UI. 
        If (itemView != null)
        {
         // the updates.
      }
} 

I've tried calling FillProductInfo from OnCreate, OnRestoreState, OnStart,
and itemView is always null. I also tried calling ForceLayout before the
line above and it didn't help. 

The activity is a ListActivity. 

Anyone know what I'm doing wrong?



Sincerely,

Brad Gies


-----------------------------------------------------------------
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
-----------------------------------------------------------------

Moderation in everything, including abstinence



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

2. dev phone 1 and chunghwa telecom

i just got me dev phone and it looked pretty good except one thing: i
was not able to configure the apn.  i tried all the suggested apn
settings for my local carrier in taiwan, chunghwa telecom, to no
avail.  did anyone got it configured here in taiwan?

regards.

walter chang
--~--~---------~--~----~------------~-------~--~----~

3. How to emulate sending of sms to a particular port

4. Vids of App Progress CNET iPhone UI libs working

5. Why File.mkdirs() can not succeed?

6. Fwd: Menu Issue

7. AT&T on dev phone, data connection not working