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

Is class is a abstract datatype in java?

0 Answers  


Explain polymorphism. Provide an example.

0 Answers   Amazon,


what is the diffrence between software and hardware language?

0 Answers  


What are the advantages of Server Controls over HTML/ASP Controls.

1 Answers   Tesco,


Write a program to show polymorphism.

0 Answers   Genpact,






Number of null pointers in any binary tree

5 Answers   Infosys,


What is ur porject Architecture? If anyone ask what i have to specify here..

0 Answers  


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

0 Answers  


how to swap all the values without using temporary variable. tha values r a = 20, x=60 and p=2.

5 Answers   DST Global Solutions, iGate,


Given a arbitrary pointer to an element in a singly linked list?what is the time complexity for its deletion .

1 Answers   Hughes,


what is difference between c and C#

12 Answers   MCN Solutions,


Where do we need Operator overloading?

0 Answers   BirlaSoft,


Categories