Java Code Examples for com.google.firebase.analytics.FirebaseAnalytics#setCurrentScreen()

The following examples show how to use com.google.firebase.analytics.FirebaseAnalytics#setCurrentScreen() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MoreFragment.java    From Android with MIT License 5 votes vote down vote up
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View view = inflater.inflate(R.layout.fragment_more, container, false);
    mContext = this.getContext();
    fragment_grid_recylerview=  view.findViewById(R.id.fragment_grid_recylerview);
    bottomLayout = view.findViewById(R.id.loadItemsLayout_recyclerView);
    mLayoutManager = new GridLayoutManager(mContext,3);
    fragment_grid_recylerview.setLayoutManager(mLayoutManager);
    pageIndex = 1;

    SharedPreferences prefs = mContext.getSharedPreferences("Plex", Activity.MODE_PRIVATE);
    TMBDB_API_KEY = prefs.getString("TMBDB_API_KEY",null);
    Bundle bundle = this.getArguments();
    value = bundle.getString("value");

    FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(mContext);
    mFirebaseAnalytics.setCurrentScreen(getActivity(), "MoreFragment", null );

    if(myRunnable != null){
        mHandler.removeCallbacks(myRunnable);

    }
    retrofit();
    Pagination();
    return view;
}
 
Example 2
Source File: HomeFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
        analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());

        if (getArguments() != null) {
//           retreive args
        }
    }
 
Example 3
Source File: HomeFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Home Screen");

}
 
Example 4
Source File: WebFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
    public void onResume() {
        super.onResume();
        Bundle params = new Bundle();
        FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
        analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Web View Screen");

        params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "screen");
        params.putString(FirebaseAnalytics.Param.ITEM_NAME, "MainActivity");
//        mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
    }
 
Example 5
Source File: BookmarkedFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());

    if (getArguments() != null) {
        //args
    }
}
 
Example 6
Source File: BookmarkedFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Bookmark Screen");

}
 
Example 7
Source File: AboutFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());

    if (getArguments() != null) {
        mAbout = getArguments().getString(HomeActivity.ABOUT_KEY);
        mCountryCode = getArguments().getString(HomeActivity.COUNTRY_CODE_KEY);
        mContactNumber = getArguments().getString(HomeActivity.CONTACT_NUMBER_KEY);
        mAddress = getArguments().getString(HomeActivity.ADDRESS_KEY);
        mGeoLatitude = getArguments().getString(HomeActivity.GEO_LATITUDE_KEY);
        mGeoLongitude = getArguments().getString(HomeActivity.GEO_LONGITUDE_KEY);
    }
}
 
Example 8
Source File: AboutFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "About Screen");

}
 
Example 9
Source File: FirebaseListFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    
    mContext = getContext();

    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());


    if (getArguments() != null) {
        mUrl = getArguments().getString(URL);
        mPostType = getArguments().getString(POST_TYPE);
    }
}
 
Example 10
Source File: FirebaseListFragment.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Home Screen");

    if (switchWindow) {
        switchWindow = false;
        recyclerView.getLayoutManager().scrollToPosition(lastPoistion);
    }
}
 
Example 11
Source File: DetailsMovie_Fragment.java    From Android with MIT License 4 votes vote down vote up
private void analistcs() {FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(mContext);
mFirebaseAnalytics.setCurrentScreen(getActivity(), "DetailsMovie_Fragment", null ); }
 
Example 12
Source File: HomeFragment.java    From Android with MIT License 2 votes vote down vote up
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View view = inflater.inflate(R.layout.fragment_home, container, false);

    mContext = this.getActivity();

    SharedPreferences prefs = mContext.getSharedPreferences("Plex", Activity.MODE_PRIVATE);
    TMBDB_API_KEY = prefs.getString("TMBDB_API_KEY",null);
    ADMOB_PLEX_BANNER_1 = prefs.getString("ADMOB_PLEX_BANNER_1",null);
    ADMOB_PLEX_INTERSTITIAL_1 = prefs.getString("ADMOB_PLEX_INTERSTITIAL_1",null);

    movies_recycler1_UpComing=  view.findViewById(R.id.movies_recycler1_UpComing);
    movies_recycler2_popular=  view.findViewById(R.id.movies_recycler2_popular);
    movies_recycler3_top_rated=  view.findViewById(R.id.movies_recycler3_top_rated);









    progressBar =  view.findViewById(R.id.progressBar);
    layout =  view.findViewById(R.id.layout);


    more_upcoming= view.findViewById(R.id.more_upcoming);
    more_Popular= view.findViewById(R.id.more_Popular);
    more_top_rated= view.findViewById(R.id.more_top_rated);

    more_upcoming.setOnClickListener(this);
    more_Popular.setOnClickListener(this);
    more_top_rated.setOnClickListener(this);



    mDemoSlider = view.findViewById(R.id.slider);


    //layoutManager= new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false);
    movies_recycler1_UpComing.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
    movies_recycler2_popular.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
    movies_recycler3_top_rated.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));


    FirebaseAnalytics  mFirebaseAnalytics = FirebaseAnalytics.getInstance(mContext);
    mFirebaseAnalytics.setCurrentScreen(getActivity(), "HomeFragment", null );
    retrofit();
    Ads(view);
    return view;
}