[android-developers] Need help using hat to track down memory usage

2008-11-05 Thread Disco Stu 010
Hello, While perusing the source code, came across a shell function that envsetup.sh defines called runhat. Judging by the parameters, etc., to this function, it allows one to get a heap-dump for a given application. This dump can then be analyzed by the tools hat and jhat. Has anyone

[android-developers] Re: ListView - If you have a item that can focus you can select the Item

2008-10-14 Thread Disco Stu 010
Hi Romain Guy, What is the attribute you mention below that makes ListView items selectable or focusable? i.e., how/what does one change to make ListView items focusable by default (and not selectable)? Thanks, Nitin. On Aug 27, 2008, at 1:28 PM, Romain Guy wrote: So, in conclusion, I

[android-developers] ViewGroup and LayoutAnimation question

2008-10-08 Thread Disco Stu 010
Hello, A question on how a Layout animation works with a ViewGroup object such as a ListView. As shown in many ApiDemo examples, when the screen is first rendered/layed-out, the animation sequence runs nicely. How can one get the Layout animation to re-play on demand. I have tried two

[android-developers] Programmatic scrolling of a ListView?

2008-10-07 Thread Disco Stu 010
Hello, When we use setSelectionFromTop(), the list adjusts itself so that the selection is positioned some y pixels from the top. However, this happens in a somewhat 'sudden' manner. Is it possible to make this animated where the list appears to smoothly scroll and then settles in its

[android-developers] WebView unable to display www.google.com?

2008-09-22 Thread Disco Stu 010
Hi, Here is a simple test activity that is unable to show www.google.com. However, www.yahoo.com shows properly. It is strange that the same URL, http://www.google.com/; renders just fine in the web browser application built into the SDK. Any ideas? Thanks, DS. public class

[android-developers] Re: WebView unable to display www.google.com?

2008-09-22 Thread Disco Stu 010
As always, Mark Murphy to the rescue. Thanks a bunch, Mark. Regards, DS. PS: Any thoughts on another problem I posted earlier about focus issues when a WebView partially obscures a ListView? - DS. On Sep 22, 2008, at 3:55 PM, Mark Murphy wrote: Here is a simple test activity that is

[android-developers] Bug in focus handling between WebView and ListView

2008-09-20 Thread Disco Stu 010
Hello folks, There appears to be a bug in focus handling when a WebView is partially overlapping a ListView. I am able to reproduce this problem via a simple change to one of the ApiDemos example. If you change the file ApiDemos/res/layout/linear_layout_9.xml to be as given below, and run

[android-developers] Question about NPE in AdapterView.rememberSyncState()

2008-08-26 Thread Disco Stu 010
Hello, Hoping for an answer from the Android team on this one. Could you please shed some light on the following NPE? ERROR/AndroidRuntime(1789): java.lang.NullPointerException ERROR/AndroidRuntime(1789): at android.widget.AdapterView.rememberSyncState(AdapterView.java:799)

[android-developers] Re: Is a Dialog completely modal?

2008-07-10 Thread Disco Stu 010
: Dialog .getWindow ().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); On Jul 9, 8:09 am, Disco Stu 010 [EMAIL PROTECTED] wrote: Hi, Have a question w.r.t the Dialog object. Is it at all possible to have a Dialog object overlaid on an Activity such that if a touch event

[android-developers] Is a Dialog completely modal?

2008-07-09 Thread Disco Stu 010
Hi, Have a question w.r.t the Dialog object. Is it at all possible to have a Dialog object overlaid on an Activity such that if a touch event is registered outside the bounds of the Dialog, then the event is sent to the View behind the Dialog. From what little experiments I have done, it

[android-developers] How does deleteRow work in a Cursor object

2008-07-08 Thread Disco Stu 010
Hello, Hope some experts can shed light on the workings of a Cursor object. Lets refer to the NotesList sample project accompanying the SDK. Here we have a ContentProvider that returns the results of a query as a Cursor object. The recipient of the Query can use this Cursor object

[android-developers] Re: How does deleteRow work in a Cursor object

2008-07-08 Thread Disco Stu 010
Hey Mark, Thanks again. I had reached the same conclusion as you that Cursor.deleteRow() should result in a DataProvider.delete with some URI. However, I dont see that happening. I added a Log.w statement to query(), insert(), delete() and update() methods of the data provider and only

[android-developers] Re: How does deleteRow work in a Cursor object

2008-07-08 Thread Disco Stu 010
. On Tue, Jul 8, 2008 at 4:10 PM, Disco Stu 010 [EMAIL PROTECTED] wrote: Hey Mark, Thanks again. I had reached the same conclusion as you that Cursor.deleteRow() should result in a DataProvider.delete with some URI. However, I dont see that happening. I added a Log.w statement to query

[android-developers] How does ListActivity create multiple list items

2008-07-01 Thread Disco Stu 010
Hello, A question for the experts on how ListActivity does its job. My understanding of the documentation is that to give a custom look to ListActivity, one needs to provide a template View (through setContentView) that contains a ListView object with the ID list. ListActivity then

[android-developers] Re: How does ListActivity create multiple list items

2008-07-01 Thread Disco Stu 010
Hey Mark, Thanks for the explanation. Most helpful. I now understand that one can have any view to render a row by overriding the getView() method. My original question though still stays. If given a resource id for a view, how can one create multiple instances of that view? Can I simply

[android-developers] Re: How does ListActivity create multiple list items

2008-07-01 Thread Disco Stu 010
Hi Mark, Thanks for the detailed explanation. This helps tremendously. Can you please also clarify what do you mean by use the same instance as the convertView parameter? Dont I need a new View instance for every cell being displayed? i.e., if displaying 5 TextView rows at the same time,

[android-developers] Re: How does ListActivity create multiple list items

2008-07-01 Thread Disco Stu 010
Hi Mark, I think I got it now :) Thanks a bunch for all your help. Regards. On Jul 1, 2008, at 4:19 PM, Mark Murphy wrote: Can you please also clarify what do you mean by use the same instance as the convertView parameter? Dont I need a new View instance for every cell being

[android-developers] Re: Question about LayoutAnimation2.java from the ApiDemos sample project

2008-06-27 Thread Disco Stu 010
Hi, Thanks for your response. Certainly clarifies a few things. The sample code has been immensely valuable in getting a better understanding of the Android APIs. I totally understand the 'too many things to do' problem, I have been guilty of that many times. However, I would like to