Hello all,
I have 3 activities:
Activity 1 - The main Activity (as far as the XML layout) has a text heading (ex. "Welcome!"), a gradient background image (for style), and has a "Submit" button that launches Activity 2.
Activity 2 - This activity has the same background image, and a different heading ("The Cube"). In the onCreate method, I have it start Activity 3.
Activity 3 - This activity has my openGL cube. Right now in the manifest, the theme has been set to TRANSLUCENT so that the 3D cube "appears" to be floating on top of Activity 2. This Activity also uses the MENU in order to close this Activity when a user selects it.
Unfortunately, when this "close" button is pressed, it closes Activity 3, and takes me back to Activity 2 which is essentially now a blank screen with the heading and background gradient. It does not take me back to Activity 1 (which is what I want).
My question is, should I have the openGL cube in a separate Activity (like it is now), or should I find a way to implement this cube into Activity 2?
If not, how can I go from Activity 3 back to Activity 1 when the user "closes" the openGL Activity?
The reason I have 3 Activities in the first place is because I cannot find another way to make just the background of the openGL transparent (so that it shows the underlying layout that includes the heading and the gradient background).
Thanks for the help!
-sjs-


