Java tutorial
/* * Copyright (c) 2015. Sociablue Labs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sociablue.nanodegree_p1; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.View; import com.sociablue.nanodegree_p1.utils.FragmentRouter; import com.sociablue.nanodegree_p1.managers.NetworkManager; import com.sociablue.nanodegree_p1.utils.Utils; /** * Created by okikejiani on 2015-08-26. */ public class MainActivity extends FragmentActivity { NetworkManager mNetworkManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mNetworkManager = new NetworkManager(); FragmentRouter.replace(this, new MovieListFragment(), R.id.movie_list_fragment, false); getWindow().getDecorView() .setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); setContentView(R.layout.activity_main); } public NetworkManager getNetworkManager() { return mNetworkManager; } }