File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes XML in the android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "XML in the android" Watch "XML in the android" New topic
Author

XML in the android

hazim aleid
Greenhorn

Joined: Mar 08, 2006
Posts: 17
Dear All,

is there any xml file required in the android, since we can use the java code direct?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41821
    
  62
You can't create an Android app without setting up multiple XML files, chief and foremost the AndroidManifest.xml file. Your IDE may do this for you, though.

I don't understand where you see the connection between using XML files and Java code; maybe you can elaborate on that.


Ping & DNS - my free Android networking tools app
hazim aleid
Greenhorn

Joined: Mar 08, 2006
Posts: 17
Thanks Dear,
i meant the xml for the layout, not for mainfest, can i create android application coding only?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41821
    
  62
You can create layouts programmatically, but the question is: why would you? Using the API instead of the XML files provides some flexibility, but that comes with a lot more work, IMO.
hazim aleid
Greenhorn

Joined: Mar 08, 2006
Posts: 17
Thanks Dear,
because the views are not stratforward, i need to customize the views.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Sure. If you are looking to customize views dynamically, you can make use of programmatic access to build them.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
hazim aleid
Greenhorn

Joined: Mar 08, 2006
Posts: 17
Thanks Dears.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML in the android