Re: [android-developers] Re: App works on Samsung Galaxy Note ONLY when I debug it with eclipse
If I were to guess, I'd say there might be a thread race issue, and
the debug build works because of slower performance (== different
timing of events in the app).
When it "hangs", use the Eclipse DDMS perspective to attach the
debugger (select the device, then your app on it, then tap the green
"Bug" icon). Next, switch to Debug perspective / tab, and use the
Pause button there to pause and examine your threads.
That's what I would do anyway.
-- K
2013/3/25 Mario Giammarco <mgiammarco@gmail.com>:
> Can no one help me? Is there a thread problem in asynctask?
>
> Il giorno mercoledì 20 marzo 2013 10:03:35 UTC+1, Mario Giammarco ha
> scritto:
>>
>> Hello,
>> I have written an Android app that uses fusesource stompjms client.
>>
>> The app connect to a server with stompjms. I am using AsyncTask for
>> network related operations.
>>
>> The app:
>>
>> - works on all 2.3 devices;
>> - works on 2.3 emulator;
>> - works on 4.0 emulator;
>> - works on HTC 4.0 phone;
>> - hangs on connect to server on Motorola RAZR 4.0;
>> - hangs on connect to server on Samsung Galaxy Note 4.0;
>> - WORKS ON GALAXY NOTE WHEN I AM DEBUGGING IT WITH ECLIPSE AND USB CABLE!
>>
>> I can see that stomp jms is an asynchronous framework that uses
>> CountDownLatch java class.
>> When it hangs I am pretty sure that it waits forever on latch.await()
>>
>> Please help me, it is a very strange behaviour!
>>
>> Thanks,
>> Mario
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home