1

I have downloaded new SDK and when I create an Activity xml file the Eclipse Juno doesn`t generate that Activity in res-> layout . How to fix it?

Vahe Muradyan
  • 1,115
  • 1
  • 11
  • 22

1 Answers1

1

I know Juno works fine as I'm currently using it.

When you first create your project do:

File -> New -> Android Application Project

This should create the proper android file structure for you. Then when you want to create additional layouts, right click the layout folder under res, and do:

New -> Android XML File.

Then simply create your classes and reference the additional layouts. :)

Jonny07
  • 625
  • 3
  • 14
  • I know that way , so eclipse juno doesn't generate Activities automaticly? – Vahe Muradyan Jun 27 '14 at 15:26
  • I'm not sure what you mean by automatically. This is how I've always done it as as all the pre-generated code in the class is useless and I end up deleting it all anyway. – Jonny07 Jun 27 '14 at 15:28
  • When I chose New File -- Android Activity and after pressing Finish nothing happens , so I jave to create xml activity and class separately ? and then refer class to activity? – Vahe Muradyan Jun 27 '14 at 15:31
  • More than likely yes. This is how I've always done it. I would argue that doing it this way is a superior method than what you're suggesting. Having software "generate" files for you vs creating them yourself is never a good habbit to get into. – Jonny07 Jun 27 '14 at 15:35
  • please vote up my question ))) I am losing my reputation – Vahe Muradyan Jun 27 '14 at 15:38