Warning : Launch Time Out Expired , Giving wake up lock
2,097 views
Skip to first unread message
pradeep
unread,
Jul 26, 2011, 7:06:34 PM7/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Hi ,
I am writing an apk and that does TCP/IP socket programming . It runs
fine most of the times but sometimes logcat displays this warning and
my apk gets hung at that point. I tried googling about this , but
didn't get any concrete answer.
/ActivityManager( 161): Launch timeout has expired, giving up wake
lock!
W/ActivityManager( 161): Activity idle timeout for
ActivityRecord{40ac3380 com.example.hellojni/.HelloJni}
what exactly does this error mean ? Reason for this error ?
-Pradeep.
Olivier Guilyardi
unread,
Jul 26, 2011, 8:02:18 PM7/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to andro...@googlegroups.com
It very likely means that you are blocking the main UI thread while waiting on socket I/O. You need to perform network operations in a background thread, and publish results on the UI thread asynchronously.
-- Olivier
pradeep
unread,
Jul 26, 2011, 8:18:38 PM7/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Thanks will explore further on this end.
pradeep
unread,
Jul 27, 2011, 2:27:02 PM7/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Thanks it worked , As explained I created a background thread , it is
running fine now.