Android Open Source - android4tv-example1 Scan Call Back






From Project

Back to project page android4tv-example1.

License

The source code is released under:

Apache License

If you think the Android project android4tv-example1 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.iwedia.callbacks;
// w w  w . ja  v  a  2  s  .c om
import android.util.Log;

import com.iwedia.dtv.DVBManager;
import com.iwedia.dtv.scan.IScanCallback;
import com.iwedia.dtv.scan.ScanInstallStatus;
import com.iwedia.dtv.types.InternalException;

/**
 * CallBack for Channel Actions.
 */
public class ScanCallBack implements IScanCallback {
    private static final String TAG = "ScanCallBack";
    private DVBManager mDVBManager = null;

    public ScanCallBack() {
        try {
            mDVBManager = DVBManager.getInstance();
        } catch (InternalException e) {
            Log.w(TAG, "There was an Internal Error.", e);
        }
    }

    @Override
    public void antennaConnected(int arg0, boolean status) {
        Log.d(TAG, "antennaConnected: " + status + ", ROUTE: " + arg0);
        if (mDVBManager != null) {
            mDVBManager.showAntennaConnectedLayout(status, arg0);
        }
    }

    @Override
    public void installServiceDATAName(int arg0, String arg1) {
    }

    @Override
    public void installServiceDATANumber(int arg0, int arg1) {
    }

    @Override
    public void installServiceRADIOName(int arg0, String arg1) {
    }

    @Override
    public void installServiceRADIONumber(int arg0, int arg1) {
    }

    @Override
    public void installServiceTVName(int arg0, String arg1) {
    }

    @Override
    public void installServiceTVNumber(int arg0, int arg1) {
    }

    @Override
    public void installStatus(ScanInstallStatus arg0) {
    }

    @Override
    public void networkChanged(int arg0) {
    }

    @Override
    public void sat2ipServerDropped(int arg0) {
    }

    @Override
    public void scanFinished(int arg0) {
    }

    @Override
    public void scanNoServiceSpace(int arg0) {
    }

    @Override
    public void scanProgressChanged(int arg0, int arg1) {
    }

    @Override
    public void scanTunFrequency(int arg0, int arg1) {
    }

    @Override
    public void signalBer(int arg0, int arg1) {
    }

    @Override
    public void signalQuality(int arg0, int arg1) {
    }

    @Override
    public void signalStrength(int arg0, int arg1) {
    }

    @Override
    public void triggerStatus(int arg0) {
    }
}




Java Source Code List

com.iwedia.activities.ChannelListDialog.java
com.iwedia.activities.DTVActivity.java
com.iwedia.activities.SoftwareVersionDialog.java
com.iwedia.activities.ZappActivity.java
com.iwedia.adapters.ChannelListAdapter.java
com.iwedia.callbacks.EPGCallBack.java
com.iwedia.callbacks.ScanCallBack.java
com.iwedia.dtv.ChannelInfo.java
com.iwedia.dtv.DVBManager.java
com.iwedia.dtv.FrontendManager.java
com.iwedia.dtv.Frontend.java
com.iwedia.dtv.IPService.java