how we can call xml file in java file using Android platform?

Answers were Sorted based on User's Feedback



how we can call xml file in java file using Android platform?..

Answer / raju

using getResource() we can get the outer resources and from there onwards we can get the IDs of each view components presented inside the XML.

Is This Answer Correct ?    2 Yes 2 No

how we can call xml file in java file using Android platform?..

Answer / srinivas

by using setContentView(R.Layout.main) method we can load the xml files in Activity

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Programming Languages AllOther Interview Questions

How do you pass variables forwrd to future CECI sessions

0 Answers   Mind Tree,


Is buffer size and file block size is similar? If similar,at which case it will be same size?

0 Answers  


SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?

0 Answers   Symphony,


Find out the roles which gives access to all tables in SAP? Thanks in advance.

0 Answers  


why Java is not purely object oriented?

9 Answers   Persistent,






what is the difference between uservariables and systemvariables (in Environmental variables)???

0 Answers  


can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com

0 Answers  


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

0 Answers  


what is the difference between primary key and unique key?

2 Answers   KTree, TCS,


can any one suggestion me present which course(except java,.net) has huge demand in the market?

0 Answers  


difference between mantis and other tools?

0 Answers  


This is the portal and portlet interview question API: is JSR 168 API Server: is ibm web sphere portal server6.0 IDE: is RAD 7.0 Question:In normal struts what is the actionservlet? Ans:org.apache.struts.action.ActionServlet. But What is the actionservlet in strutsportlet?

1 Answers   CTS, IBM,


Categories