Question

My problem is that I build an app which works fantastic on all my devices. But on my friend's phone, not only the animations of the app seem to crash, but even his whole phone reboots. I also tried putting the animation in a try block, but no luck on that so far..

Intent openDaily = new Intent("nl.plplpl.ccs.DailyActivity");
        startActivity(openDaily);
        try{
            overridePendingTransition(R.animator.flip_in, R.animator.flip_out);
        }catch(Exception e){
            e.printStackTrace();
        }
        break; 

I also thought it could be the phone though, because he's running an Alpha version of CM10.1, but tried another ROM with the same result (Maybe driver related?).

Is anyway prepared to help me out on this one?

Was it helpful?

Solution

I also thought it could be the phone though, because he's running an Alpha version of CM10.1, but tried another ROM with the same result (Maybe driver related?).

Yes, if you manage to reboot / crash the whole device it's typically something driver / kernel / .. related.

A device should never crash as a whole regardless of what your app does. If your app does something bad you should get a nice error message and get back to the home screen.

A reboot will only happen if something within the system (and therefore not within your responsibility) goes horribly wrong. E.g. the graphic driver goes into some corrupted state and there is no way to recover. There is no way to catch those types of errors. If it was just a Java Exception it would not crash.

You can sometimes see within logcat (not filtered for your app) what happens.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top