I'm trying to to open activity within my activity. User clicks button on the left side of the layout and the intent is shown on the right side. How this could be done while keeping the leftside buttons visible? Everytime I tried to start intent, it is opened on top of my layout covering it.
So the logic is same as tarketing HTML link to certain frame, but on android with activities/intents.
Mockup:
http://i.stack.imgur.com/jHqKd.jpg
Update:
I'd like to make this question more specific. If I open intent from my fragment it opens on fullscreen instead of filling only the are of current fragment:
Button button = (Button) view.findViewById(R.id.button1);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
String url = "http://www.google.com";
Intent google = new Intent(Intent.ACTION_VIEW);
google.setData(Uri.parse(url));
getActivity().startActivity(google);
}
});
How to open intent from a fragment, so it fills only fragment, not the whole screen?