Question: I currently have an installer I created using Installshield (Basic MSI) that allows the user to create a new user account in Windows. This user account is used by the installer in a SQL script that is executed by the the installer.

I'm experiencing a problem where the SQL script fails because the login doesn't exist yet so I'm asking when does this get created by the installer? Can I just move the IISQLServerInstall (the CA that actually executes the SQL scripts) to a later point in time so that it executes after the user is created? Any other ideas?

Answer: 
Here is an XML layout that should work : 

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    android:orientation="vertical"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <TextView  
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="Hello"
    />
    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <Button
            android:id="@+id/next"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Next"
            android:layout_weight="1"
            android:textSize="16dip"/>
        <Button 
            android:id="@+id/back"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:text="Back"/>       
    </LinearLayout>
    <ListView 
        android:id="@+id/your_list" 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    </ListView>
</LinearLayout>

```

And for the Java code.

```
...
String[] entries = { "one", "two", "three" };
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
        android.R.layout.simple_list_item_1, entries);
ListView lv = (ListView) findViewById(R.id.your_list);
lv.setAdapter(adapter);
...

```

I hope this will answer your question.
you need to use this for your listview ID if you want to use a ListActivity

```
android:id="@id/android:list"

```