I have a question regarding the launch of new activities. It comes down to that. I have 3 tabs in a view
A) contains gMap activity B) camera activity C) some random text fields.
The requirement is that the application runs in portrait mode.
All 3 tabs work as expected, except for the camera preview surface (B). It rotates 90 degrees. This is the only way to get it right - to set the app to a landscape that throws all my tabs, and is largely inoperative.
My solution is this: replace
my camera activity with regular activity that is empty except
Intent i = new Intent(this,CameraActivity.class); startActivity(i);
This launches my CameraActivity. And it works great. I had to make a linear layout and include 3 images that look like real tabs, so I can try to simulate the work of the tabs by rotating the screen to the landscape and saving the visual effects as a portrait. The user can click one of the images (buttons) to display the next tab. It is my problem. It should exit my “camera activity”, returning to the “empty activity” on the tab where it should be interpreted in order to click the “Desired” tab from my image.
The main thing is that when he returns, he returns to a blank (black) page under the tab (because it is "empty"). How can I grab the returned event back to a page called activity, and then see what actions they performed?
I can install onclicklistener where I can respond to fake tabs (images) that need to be clicked to exit the camera action. When exiting, the tab should be updated so that it returns. any suggestions?
Thank,
android android-intent android-activity exit
Chrispix Jan 16 '09 at 4:05 2009-01-16 04:05
source share