[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread Kiran
Hierarchy viewer shows the text view. Also the data contains the html page. Here is the screenshot of hierarchy viewer: http://i1011.photobucket.com/albums/af233/kiranjulapalli/textview.png?t=1256301091 On Oct 22, 5:21 pm, Mark Murphy mmur...@commonsware.com wrote: Kiran wrote: I did that..

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread Mark Murphy
Kiran wrote: Hierarchy viewer shows the text view. Also the data contains the html page. Here is the screenshot of hierarchy viewer: http://i1011.photobucket.com/albums/af233/kiranjulapalli/textview.png?t=1256301091 Great! That means your background processing is working just fine. Now all

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread Kiran
Thanks Mark, Hierachy viewer did help me. The issue is in the xml file. I am not sure why I had the listview in first place and removing it solved the problem. But the process exposed to a good toolset that will help me in future debugging. ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread jotobjects
If you give your TextView a weight it will probably show up under the list. android:layout_weight=1 On Oct 23, 10:53 am, Kiran kiran.julapa...@gmail.com wrote: Thanks Mark, Hierachy viewer did help me. The issue is in the xml file. I am not sure why I had the listview in first place and

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-22 Thread Kiran
I updated the code as following. However, now I see that the display is not updated with the text. Am I missing something? static String linkUrl = http://www.google.com;; String dataText; @Override protected void onCreate(Bundle savedInstanceState) { Log.d(TAG,

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-22 Thread Mark Murphy
Kiran wrote: I updated the code as following. However, now I see that the display is not updated with the text. Am I missing something? static String linkUrl = http://www.google.com;; String dataText; @Override protected void onCreate(Bundle savedInstanceState) {

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-22 Thread Kiran
I did that.. every statement is properly executed and see that bodyText.setText(dataText); is called and the value of dataText is the full html of the google.com On Oct 22, 4:47 pm, Mark Murphy mmur...@commonsware.com wrote: Kiran wrote: I updated the code as following. However, now I see

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-22 Thread Mark Murphy
Kiran wrote: I did that.. every statement is properly executed and see that bodyText.setText(dataText); is called and the value of dataText is the full html of the google.com OK, try using hierarchyviewer to confirm that your TextView is actually on screen, visible, etc. -- Mark Murphy (a

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread Kiran
Experts, Any help here? Thanks On Oct 20, 8:23 am, Kiran kiran.julapa...@gmail.com wrote: Hi, I have the following code in Oncreate of my activity: *** *    static String linkUrl = http://www.google.com/;;  

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread Mark Murphy
Kiran wrote: Experts, Any help here? static String linkUrl = http://www.google.com/;; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PowerManager pm = (PowerManager) getSystemService

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread Kiran Julapalli
Thanks Mark, I am acquiring a wakelock as the error points to giving up a wake lock. No other specific reason. I am not sure how to use Async task. Can you give me any pointer? -Kiran On Tue, Oct 20, 2009 at 1:16 PM, Mark Murphy mmur...@commonsware.com wrote: Kiran wrote: Experts, Any help

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread RichardC
Maybe it's trying to access an external website during the processing of onCreate. Try pulling this on a worker thread. -- RichardC On Oct 20, 7:28 pm, Kiran Julapalli kiran.julapa...@gmail.com wrote: Thanks Mark, I am acquiring a wakelock as the error points to giving up a wake lock. No

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread Dianne Hackborn
On Tue, Oct 20, 2009 at 11:28 AM, Kiran Julapalli kiran.julapa...@gmail.com wrote: I am acquiring a wakelock as the error points to giving up a wake lock. That message is about the activity manager releasing its internal wake lock because it has given up on hearing back from the application