Having trouble with strings : <p>I AM ON WINDOWS</p>

<p>I am working on a project. I have downloaded android-7.jar and renamed it to android7.zip and extracted the files. That worked fine. Now I have the classes for android. My main focus is just the android.app.AlertDialog, but that had a lot of imports, so I am just using the entire android source. I have my own java file, com.tylerr147.dialog.showDialog</p>

<p>Here is that file:</p>

<pre><code>//javac com/tylerr147/dialog/showDialog.java
package com.tylerr147.dialog;

import android.app.*;
import android.os.*;

public class showDialog extends Activity {

AlertDialog.Builder adb = new AlertDialog.Builder(this);
adb.setTitle("hi");


public static void main(String[] args) {
}
}
</code></pre>

<p>The reason I have the AlertDialog stuff outside of the main() is because I cannot use the AlertDialog in a static method.</p>

<p>Everything has is fine except I am getting:</p>

<pre><code>com\tylerr147\dialog\showDialog.java:10: error: &lt;identifier&gt; expected
adb.setTitle("hi");
            ^
com\tylerr147\dialog\showDialog.java:10: error: illegal start of type
adb.setTitle("hi");
             ^
2 errors
</code></pre>

<p>I have no idea what is causing this problem. Any help is greatly appreciated.</p>
