Multiple views per application

Put your problem here if it does not fit any of the other categories.

Multiple views per application

Postby workmaster2n » Fri Feb 22, 2008 6:09 pm

Hi all,
I want to open a new view when an intent is received in my application. Currently, my one package throws the intent and receives it. The layout.xml file is already defined for that package. I would like to have a new layout.xml be called by the intent receiver/ Do I need to move the intent receiver to a new package? Can you have more than one view defined per package?

Thanks!
workmaster2n
Freshman
Freshman
 
Posts: 5
Joined: Fri Feb 08, 2008 8:10 pm
Location: Bouler, Colorado, USA

Top

Postby workmaster2n » Fri Feb 22, 2008 11:19 pm

I figured it out: use
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. setContentView(R.layout.name_of_new_layout)
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Good luck to all!
workmaster2n
Freshman
Freshman
 
Posts: 5
Joined: Fri Feb 08, 2008 8:10 pm
Location: Bouler, Colorado, USA

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests