I'm having the same problem. I read the suggested thread, but I didn't have any luck getting it to work. I tried several different things. I wasn't using any layout file for my ListActivity originally because of some bugs. I tried setting the layout width and height doing:
getListView().getLayoutParams().width = LayoutParams.FILL_PARENT; getListView().getLayoutParams().height = LayoutParams.WRAP_CONTENT; But that didn't work. So I set the content view to something like: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:id="@+id/android:list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="vertical" android:layout_weight="1" /> <TextView android:id="@+id/android:empty" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true" android:layout_centerHorizontal="true" android:text="No Items here."/> </LinearLayout> This is exactly like the suggestion in the previous thread, but I still get he UNSPECIFIED error. Why does the activity work just fine when I run my application, but fails with this error when I try to get the web browser to invoke it? This seems to be a pretty common problem for several people. Thanks Charlie On Apr 23, 8:32 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 23, 2008 at 3:17 AM, David Given <[EMAIL PROTECTED]> wrote: > > > Megha Joshi wrote: > > [...] > > > There seems to be a problem with your layout file. You may want to look > > > at this thread for additional info on the error that you received: > > >http://groups.google.com/group/android-developers/browse_thread/threa... > > > Which layout file? It can't be my activity's, because it never even gets > > instantiated before the crash happens, and besides it works fine if I > > launch it directly (from the debugger). > > As the error is regarding the ListView, could you post the layout file which > has the ListView? > > > I gather the web browser's supposed to generate a Save/Open dialogue if > > you select certain types of file, although I've never seen it happen --- > > do I need to provide extra information to make this work? Could this > > issue be due to the web browser not being able to create this dialogue? > > The default browser does not provide this feature. > > > > > Is there any example code I can look at that shows how this is all > > supposed to work? > > There is no sample code using WebView, we will add this in the future > release, but as your current error is about the ListView, you could look at > the ApiDemos > View > ListView examples. > > > > > -- > > David Given > > [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

