-2

I am trying to make an android application on this main_activity was launched and now when the user presses a button the camera_activity(this camera_activity launch an IP based camera from the remote location) should start in the current activity at the particular specific position or specific space in the current screen without disturbing current activity.

I used viewstub, it can only show images but it cannot open some activities

Surya
  • 75
  • 10

1 Answers1

0

if you try to open second activity in main activity as a dialog or in small area then use custom dialog or fragments.

basically fragment is used to open different view in same activity

please check below links

Custom Dialog: Custom Dialog

Fragment: How to use Fragments

Community
  • 1
  • 1
Android Geek
  • 8,956
  • 2
  • 21
  • 35