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

Which tag is used to break a line

3 Answers  


Which method protects back button to retrieve old value from previous page in Struts.

0 Answers  


hi all, i need ur help in preparing a sql which performs scd2, i mean i have a scd2 mapping i need a sql which can give me same result as scd2 mapping, SRC table: cust_no, loc 01 abc 02 xyz TGT table: pm_ky cust_no loc current_flag 1 01 abc Y 2 02 xyz Y cust 1 has changed his loc to xyz then it loads into TGT table as below, pm_ky cust_no loc current_flag 1 01 abc N 2 02 xyz Y 3 01 xyz Y i need sql to get the above result, hope got me question, Any suggestion will be appreciate.. thanks, Vinod

0 Answers  


What do you meant by Runtime Polymorphism?

2 Answers   Persistent,


how will you code the subfile which is in editing mode (multiple case subfile)?

0 Answers   Bank Of America,






what does mean and stack mean in genral programming?

0 Answers  


There is a room with 1000 light switches, numbered 1, 2, 3, 4, ... 1000, all turned off. Outside the room there are 1000 men, numbered man1, man2, ...man 1000 In order, each man walks into the room and changes the position of each switch that is a multiple of his number. That is: man1 flips every switch man2 flips switches 2, 4, 6, 8 ....1000 man3 flips switches 3, 6, 9, ..... 999 ..... Man 1000 flips switch 1000 After all 1000 men are done, how many switches are on?

3 Answers  


73. How can you set the status and title for a modal dialog box? a) In the attributes of the corresponding screen. b) Before the corresp. call screen statement. c) In a PBO module of the corresponding screen. d) In the PAI module of the corresponding screen.

1 Answers  


Why multiple inheritance is removed in java?

4 Answers   TCS,


How can we alter the data after creating a view

1 Answers  


can we extend a class having only one parameterised constructor.Suggest the process to do it.

0 Answers   Zensar,


WAP to print all prime nos between 1 to 100 without using user input...pls reply within few hours...

1 Answers  


Categories