Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Default XML Editor isn't opening anymore [Unsupported Content Type Error]

I've been using Eclipse for developing apps in android for quite some time. I updated the Android SDK Platform to 3.0, API 11 recently. Now I'm unable to open the AndroidManifest.xml or any other XML files in the Layout folder by double clicking.

When I double click any XML file (like main.xml / strings.xml), I get the "Unsupported Content Type" error. http://www.freeimagehosting.net/uploads/67e93ddb8a.png

Is there any way to solve this problem?

P.S: If I open the xml files with "Open With -> Text Editor", it is opening, but I'm unable to see the layout for main.xml and respective GUI for strings.xml and androidmanifest.xml http://www.freeimagehosting.net/uploads/f537965b68.png

like image 518
emmarbe Avatar asked Feb 25 '11 22:02

emmarbe


People also ask

Can I edit XML files Android?

In Android Studio, you will see all the projects's XML files and can edit them with all the tools Android Studio provides, including the visual designers. As you make changes and save them in Android Studio, they will automatically reflect back into your Elements project inside Visual Studio.

Why XML file is not opening in eclipse?

To open XML files in the default editor: In the DITA CMS Eclipse Client, click Window > Preferences. In the left pane, click DITA CMS > General Behavior. Clear the Open unlocked document in Read-only Editor checkbox.

Where can I find XML file in Android?

The Android operating system includes a native text editor that you can use to view and read XML files. So if you need to view an XML file on your Android phone or tablet, you can do so without downloading any third-party apps. The native text editor works no matter where the file is on your device.


2 Answers

If you have installed ArgoEclipse UMLEditor, Uninstall it.

Eclipse >> Help >> About Eclipse >> Installation Details >> select >> Unistall

I had this issue too.
There is a bug in UMLEditor,
Someone file a Bug on this issue, if you are a member at Tigris.org

AgroEclipse UMLEditor Bug

like image 180
VenomVendor Avatar answered Nov 04 '22 03:11

VenomVendor


An inconvenient fix at the moment is to:

rename the file then rename it back

Sorry if you have 100's of XML files! :-(

like image 4
Blundell Avatar answered Nov 04 '22 02:11

Blundell