Well I have an activity which contains nothing but a relative layout with brown background,
and I want to start another activity if the users clicks anywhere on the screen, how would i do that ??
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.mainscreen);
}
First, give ID to your
RelativeLayoutby puttingandroid:id="@+id/relativeLayout"in your layout file then.or without using your
RelativeLayoutjust implement theonTouchEvent(MotionEvent)of activityNote: Not yet tried this code.