开发者

Android: Application restarts sometimes

开发者 https://www.devze.com 2023-02-20 02:13 出处:网络
I found a strange behavior in my App. When i try to fetch data from the internet with bad wifi signal, i have a cou开发者_如何学Cple of exceptions(IOException, SocketException). All this exceptions ar

I found a strange behavior in my App. When i try to fetch data from the internet with bad wifi signal, i have a cou开发者_如何学Cple of exceptions(IOException, SocketException). All this exceptions are handled in the application in try-catch block, but app performance slows, and in one moment application restart. I have a SomeClass extends from Application class where onCreate method calls again after this exceptions.

I haven't got OutOfMemory error in the log, and method onLowMemory of Application didn't call.

Is anybody have any idea about this behavior?


i'm not familiar with the application class, but if you call the application.onCreate method while handling exception, it is supposed to restart your application ... ? or am i too enthusiastic ? post your code it'll be clearer anyway!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号