Sha256: 289e799257400e3e963cc207e0e714b967488f26b0322f82cfb0da0f37aa629c

Contents?: true

Size: 1.72 KB

Versions: 17

Compression:

Stored size: 1.72 KB

Contents

package com.rho.connectionchecking;

import android.content.Intent;



import com.rhomobile.rhodes.RhodesActivity;
import com.rhomobile.rhodes.extmanager.AbstractRhoListener;
import com.rhomobile.rhodes.extmanager.IRhoExtManager;
import com.rhomobile.rhodes.extmanager.RhoExtManager;
import com.rhomobile.rhodes.Logger;

public class ConnectionCheckingListener extends AbstractRhoListener {
	
	private static String TAG = "ConnectionCheckingListener";
	
	@Override
	public void onCreateApplication(IRhoExtManager extManager) {
		
		extManager.addRhoListener(this);
		ConnectionPageNavEvent ext=new ConnectionPageNavEvent();
		RhoExtManager.getInstance().registerExtension("ConnectionCheckingService", ext);
		
	
	}
	
	@Override
	public void onDestroy(RhodesActivity activity) {
		
		if(ConnectionCheckingService.getInstance()!=null)
			ConnectionCheckingService.getInstance().stopThread();
		
		super.onDestroy(activity);
	}
	
	@Override
	public void onEBLicenseDestroyed() {
		
		Logger.I(TAG, "onEBLicenseDestroyed Recieved");
		if(!ConnectionPageNavEvent.isCurLinkBadLink() && ConnectionCheckingService.getInstance()!=null)
			ConnectionCheckingService.getInstance().restartThread();
		
		super.onEBLicenseDestroyed();
	}
	@Override
	public void onEBLicenseHidden() {
		Logger.I(TAG, "onEBLicenseHidden Recieved");
		if(!ConnectionPageNavEvent.isCurLinkBadLink() && ConnectionCheckingService.getInstance()!=null)
			ConnectionCheckingService.getInstance().restartThread();
		super.onEBLicenseHidden();
	}
	@Override
	public void onEBLicenseVisible() {
		Logger.I(TAG, "onEBLicenseVisible Recieved");
		if(ConnectionCheckingService.getInstance()!=null)
			ConnectionCheckingService.getInstance().handleLicenseCreate();
		super.onEBLicenseVisible();
	}
	

}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-7.5.1 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-7.4.1 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-7.1.17 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-6.2.0 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-6.0.11 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.18 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.17 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.15 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.0.22 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.2 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.0.7 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.0.3 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
rhodes-5.5.0 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
tauplatform-1.0.3 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
tauplatform-1.0.2 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java
tauplatform-1.0.1 lib/commonAPI/ConnectionChecking/ext/platform/android/src/com/rho/connectionchecking/ConnectionCheckingListener.java