Android Open Source - easy-rating-dialog Main Activity






From Project

Back to project page easy-rating-dialog.

License

The source code is released under:

Apache License

If you think the Android project easy-rating-dialog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.github.fernandodev.easyratingdialog.samplewithdagger;
//from   w  w w  .  ja  v  a  2  s  .c  o m
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.github.fernandodev.easyratingdialog.library.EasyRatingDialog;

import javax.inject.Inject;


public class MainActivity extends ActionBarActivity {
  @Inject  EasyRatingDialog easyRatingDialog;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Sample app = (Sample) getApplication();
    app.injectActivity(this);
  }

  @Override
  protected void onStart() {
    super.onStart();
    easyRatingDialog.onStart();
  }

  @Override
  protected void onResume() {
    super.onResume();
    easyRatingDialog.showIfNeeded();
  }
}




Java Source Code List

com.github.fernandodev.easyratingdialog.library.EasyRatingDialog.java
com.github.fernandodev.easyratingdialog.sample.MainActivity.java
com.github.fernandodev.easyratingdialog.samplewithdagger.MainActivity.java
com.github.fernandodev.easyratingdialog.samplewithdagger.Sample.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ActivityModule.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ApplicationModule.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ForActivity.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ForApplication.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.SampleModule.java