by Fluckysan » Tue, 09 Jun 2009 01:19:04 GMT

Sponsored Links
 Hello everybody,
i just begin with the SDK so I play around but I'm stuck with a really
simple Dialog.show() ...
It maybe is because it'es really late or something but here my code :

public class entry extends Activity {
        static final int CREATE_DIALOG = 0;

    public void onCreate(Bundle savedInstanceState) {


    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();

        inflater.inflate(R.menu.menu_bottom, menu);
        return true;

    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
                case R.id.create:

                return true;

            return false;

        protected Dialog onCreateDialog(int id) {
                Dialog dialog;

                switch(id) {
                    case CREATE_DIALOG:
                        dialog = new Dialog(this.getApplicationContext());


                        dialog = null;

            return dialog;

The XMLs are just as simple as this code and they are running good
It crash when I it the menu button "create"
What I haven't understand :s ?

Thx for your answer


Other Threads

1. Method native_getParameters() documentation

i have found the method native_getParameters() while i was checking
the android OS code

you can check it here

please, does anyone know anything about the documentation of that
method ?

Thanks in advance.


2. ListActivity inside TabActivity

Please help to solve this problem. I use implementation of OnGestureListener
in TabActivity with overriding of method onFling for switching between tabs.
But that doesn't work when one of my tabs is ListActivity. Thanks


3. HTTP Live Streaming with Encryption on Android 2.x

4. Retrieve Data from Database

5. Saving layout file is very slow with Eclipse / ADT

6. Widget USSD

7. Is /dev/bus/usb standard?