My app always crashes whole phone(Samsung Galaxy S2 rooted) - android

My app works perfectly well on LG-P690 and on all virtual devices I tried but when I tested it on my friends rooted samsung s2 it works for a while until it crashes the whole phone (a hard reset is needed). As I said, it never crashed on my own phone no mater how long I used it or on the emulator and I keep testing to see if I don't use too much heap memory(I never do).
What do you think causes an app to crash a whole phone like that? What should I be looking for?

Related

Using decimal-format crashes my app on samsung S3

When I use Decimal-format in my app in a certain activity,it crashes when reaching that activity only on Samsung S3 but it works great on all other phones.
x=Double.parseDouble(new DecimalFormat("##.##").format(x));
When I remove this line,the app works great on S3 but surely too much numbers after the dot.
any help please??
Thanks.

Lost Android debugger but app keeps running normal

I'm developing for android (API 14) deploying for Nexus One on Genymotion simulator and to a Galaxy Note N8000 tablet, but my app it's having a strange behaviour: in one of the activities, when I press the back button, the app shows the right activity but my debugger disconnects.
Using the simulated Nexus One I have a log message related to OpenGL out of memory and I've found out that OpenGL support for simulators it's usually bad, but using physical note n8000 I have nothing in my logs that can help me. The app behaves like it should but I loose debugging.
Does anyone had a problem similar to that? How did you fix it?
I face the same issue sometimes, my guess is that the Exception actually forces application closing (disconnecting it from debugger), but somehow it gets automatically restarted restoring the previous 'state'.
In your case, maybe is just a simulator issue, but you should consider testing in a real Nexus One device, just to make sure.

Galaxy note 2 emulator work well but not the device

I made a game for the first time and had just finish the dev. So I sent my game to some friends for beta testing, The apk work well for every tester exept for one using a Samsung Galaxy note 2.
The game crash when he pressed the "play" button. But when I made an emulator with the same carac, the game work well (exept for a switch between 2 activities, but without crashing).
I can't get the note 2 cause my friend is far, so I can't use the LogCat to see whats happened.
My emulator is :
Galaxy note 2
720x1280 large xhdpi
Keyboard = off
skin = on
android 4.1.2 (the same he have)
Proc: MIPS(mips)
Ram 748
vm heap 32
Storage 1Gb
I really don't understand what happend and that make me mad >,<
You can ask your friend to send you the LogCat.
There maybe some issue specific to his device(conflicts from other apps, etc). Get someone else with a Note 2 to test as well to confirm.
Or I can help you with beta-testing if you want. I'll send the LogCat.

Odd blackscreen! What is the reason?

i am building a camera-application at the moment and it shows some odd behaviour. When activity starts it gets into a fullscreen camera,ode showing a live-preview. I tried compiling it on my Huawei g615 (4.0.4) and a galaxy nexus (4.2) and it works fine; nothing suspicious on logcat.
BUT when i unplug the Huawei-device from usb, instead of seeing my camera-activity, i just get a blackscreen. Then i tried same thing with the galaxy nexus and the app runs normal.
Does anyone have any idea where this problem can come from?

What are common causes of crashes or problems on different Android phones when running PhoneGap app?

I have PhoneGap application made for Android. On my device and other users devices it runs just fine. But on some phones ( right now I know about LG Optimus One and HTC Magic ) it doesn't start and / or crashes while starting.
Anybody has some good hints why could this happen ? I tried to run my app on Android emulator in all possible versions of Android and it runs fine. So its more of the hardware/phone problem.
Does an empty PhoneGap app work for you on the crashing devices? If so, I'd recommend binary search adding to the empty app [or reducing your work] until the crash occurs [crash stops].
The only feature (in the same app and Android version) I've seen cause crashes is the Camera. Different devices have different default resolutions and large resolutions can cause memory overflows.

Categories

Resources