private void showAppRating() { activity.runOnUiThread( new Runnable() { @Override public void run() { AppRater.app_launched(activity); } }); }