The selected wizard could not be started.

by Kent Loobey » Mon, 08 Jun 2009 01:48:35 GMT


Sponsored Links
 When I run Eclipse Ganymede with the Android "android-sdk-linux_x86-1.5_r2" 
SDK and I click File->New->Other...->Android->Android XML File->Next I get the 
following message:

Problem Opening Wizard
The selected wizard could not be started.

The selected wizard could not be started.
  Plug-in com.android.ide.eclipse.adt was unable to load class 
com.android.ide.eclipse.editors.wizards.NewXmlFileWizard.
  com.android.ide.eclipse.editors.wizards.NewXmlFileWizard

Any suggestions on how I can fix this will be greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~



The selected wizard could not be started.

by Hamy » Mon, 08 Jun 2009 21:00:27 GMT


 I get the same error on my mac. I believe it may be a documented bug,
I vaguely remember seeing it somewhere.

To work around, I just say create a new file, give it
any_name_you_want.xml and the layout IDE will automatically show up
because it is XML.

Thanks,
Hamy



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


The selected wizard could not be started.

by martin-g ml » Tue, 09 Jun 2009 01:19:27 GMT


 The same here. It seems it is a bug but I haven't checked Android's
issues database.
You can "fix" it by creating new plain File with extension .xml. Android
SDK will pick it correctly.

El dom, 07-06-2009 a las 10:48 -0700, Kent Loobey escribi:


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. notification for change in airplane mode

is there a way to get notification when there's a change
in airplane mode...specifically data access.

-- 

2. replacing deprecated managedQuery() method

I was already struggling with some code from Professional Android 2
App Development that uses the managedQuery() method of Activity when I
noticed that the method is deprecated anyway. The documentation says
to use CursorLoader instead, and from what I can gather, LoaderManager
also seems to be involved. The way the code stands, I somehow need
first to get a Cursor that contains the data in
ContactsContract.Contacts.

Here's the code I'm needing to change:

First, in onCreate() in my ContactSelector activity:

<code>Intent i = getIntent();

        final Uri data = i.getData();
        // managedQuery() is deprecated
        final Cursor c = managedQuery(data, null, null, null, null);

        String[] from = {ContactsContract.Contacts.DISPLAY_NAME};
        int[] to = {R.id.contact_name};

        SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
                        R.layout.contact_item_text_view, c, from, to);

</code>

The point here is that I need a cursor to feed into
SimpleCursorAdapter (or some other class that allows me to populate my
list of contact_item_text_view text views).

Then in the parent activity that calls ContactSelector using
startActivityForResult(), I have this private method that gets called
from onActivityResult (where data is of course the Intent that's
passed into onActivityResult()):

<code>
private void addPlayer(Intent data) {
        Uri contactData = data.getData();
        Cursor c = managedQuery(contactData, null, null, null, null);
        c.moveToFirst();
        String name = "contact " +
c.getString(c.getColumnIndexOrThrow(ContactsContract
                        .Contacts._ID)) + ": " +
c.getString(c.getColumnIndexOrThrow(ContactsContract
                        .Contacts.DISPLAY_NAME));
        // TODO
        Toast nameMessage = Toast.makeText(this, name,
Toast.LENGTH_SHORT);
                nameMessage.show();
    }
</code>
Basically, I just need a good way to populate my contact list in the
ContactSelector activity, then to receive the data back from the
parent activity. The toast is just there for the moment to show me
what I'm getting back.

If it matters, I'm going to need to retrieve not only names but also
phone numbers in the end, so some technique that would make it as easy
as possible to deal with that aspect would also be nice.

-- 

3. Pilih mana antara sgs, nexus s, atau dhd?

4. App crashing with the exception View not attached to Window manager

5. drawable in xhdpi not getting picked up

6. Sony Mylo 2 - other mobile OS ?

7. ADT lauout designer D&D is a mega-disaster...