Back to project page easy-rating-dialog.
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.
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(); } }