I am learning how to develop under Android. I’ve made a new project, main activity, and I wanted to design a new window. I’ve genereted the new Activty as it it described here
Best way to add Activity to an Android project in Eclipse?
-
But i can’t get the visual editor for that new activity. I know that I suppose to create new layout but how to do it and connect it with that second Activity?
-
How to properly go back from the secondActivity(close it? minimize it? how?) to the mainActivity and don’t loose information gathered why we were using secondActivity(for example what options user has made?
This is how i invoke the second Acitivity and it works fine.
Intent intent = new Intent(this,DrugieOkno.class);
startActivity(intent);
For question 1:
Here is a basic tutorial on how to create a new
Activity. For a more comprehensive one containing more information about Android development you can see here.For question 2:
For tansfering data between
Activitieshere is a nice tutorial.Hope that helps.