• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to change current view/layout xml

wixilol

Lurker
Aug 17, 2010
2
0
Hello!
Im a new developer in android and want some starter help.
I got 2 layout xml files(main.xml and start.xml)

I do not got a button to change and i dont want a button either but how do i change my layout so start.xml become the current view?

So how do i setContentView? i just get an force close error.

Repeat: how do i change the current layout. XD
Please help.

Thanks //Me
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones