Android Open Source - wifi-auto-forget Wifi Auto Forget Application






From Project

Back to project page wifi-auto-forget.

License

The source code is released under:

GNU General Public License

If you think the Android project wifi-auto-forget 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.cebesius.wifiautoforget;
/*w w w . j a  va  2s. c om*/
import android.app.Application;

import com.activeandroid.ActiveAndroid;
import com.cebesius.wifiautoforget.mvp.AppModel;
import com.cebesius.wifiautoforget.mvp.AppPresenter;
import com.cebesius.wifiautoforget.mvp.AppView;
import com.cebesius.wifiautoforget.util.BusPortal;

import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;

import antoche.HockeySender;

@ReportsCrashes(formKey = Secrets.HOCKEYAPP_APP_ID)
public class WifiAutoForgetApplication extends Application {

    private static WifiAutoForgetApplication instance;

    public static WifiAutoForgetApplication getInstance() {
        return instance;
    }

    private AppPresenter presenter;

    @Override
    public void onCreate() {
        initializeACRA();
        super.onCreate();
        this.instance = this;
        presenter = new AppPresenter(
                new AppModel(),
                new AppView(this)
        );
        ActiveAndroid.initialize(this);
        BusPortal.getInstance().register(presenter);
    }

    private void initializeACRA() {
        if (BuildConfig.FEATURE_CRASH_REPORTS_ENABLED) {
            ACRA.init(this);
            ACRA.getErrorReporter().setReportSender(new HockeySender());
        }
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        BusPortal.getInstance().unregister(presenter);
        ActiveAndroid.dispose();
    }
}




Java Source Code List

antoche.HockeySender.java
com.cebesius.wifiautoforget.Secrets.java
com.cebesius.wifiautoforget.WifiAutoForgetApplication.java
com.cebesius.wifiautoforget.activity.AutoForgetWifisActivity.java
com.cebesius.wifiautoforget.adapter.AutoForgetWifisAdapter.java
com.cebesius.wifiautoforget.dialog.ChangeAutoForgetBehaviorDialog.java
com.cebesius.wifiautoforget.domain.AutoForgetWifi.java
com.cebesius.wifiautoforget.gateway.AddWifiNotificationUsageStorage.java
com.cebesius.wifiautoforget.gateway.AutoForgetWifiStorage.java
com.cebesius.wifiautoforget.gateway.NotificationIds.java
com.cebesius.wifiautoforget.gateway.SharedPreferenceKeys.java
com.cebesius.wifiautoforget.gateway.UserPreferenceStorage.java
com.cebesius.wifiautoforget.model.AutoForgetWifiModel.java
com.cebesius.wifiautoforget.mvp.ActivityView.java
com.cebesius.wifiautoforget.mvp.AddWifiModel.java
com.cebesius.wifiautoforget.mvp.AddWifiPresenter.java
com.cebesius.wifiautoforget.mvp.AddWifiView.java
com.cebesius.wifiautoforget.mvp.AppModel.java
com.cebesius.wifiautoforget.mvp.AppPresenter.java
com.cebesius.wifiautoforget.mvp.AppView.java
com.cebesius.wifiautoforget.mvp.AutoForgetWifisModel.java
com.cebesius.wifiautoforget.mvp.AutoForgetWifisPresenter.java
com.cebesius.wifiautoforget.mvp.AutoForgetWifisView.java
com.cebesius.wifiautoforget.mvp.ConnectivityChangeModel.java
com.cebesius.wifiautoforget.mvp.ConnectivityChangePresenter.java
com.cebesius.wifiautoforget.mvp.ConnectivityChangeView.java
com.cebesius.wifiautoforget.receiver.ConnectivityChangeReceiver.java
com.cebesius.wifiautoforget.service.AddWifiService.java
com.cebesius.wifiautoforget.service.ConnectivityChangeService.java
com.cebesius.wifiautoforget.util.AutoForgetDelegate.java
com.cebesius.wifiautoforget.util.BusPortal.java
com.cebesius.wifiautoforget.widget.AutoForgetWifiItem.java