连接管理器上的非活动InputConnection上的showStatusIcon

时间:2016-06-29 06:36:34

标签: java android

当我打开我的应用程序时出现错误..在第一个屏幕上显示启动活动...并且出现错误

  

W / IInputConnectionWrapper:非活动InputConnection上的showStatusIcon

这一个是关于我的启动活动的代码,不知道它在哪个部分发出警告......

<?php global $post, $product;
    $categ = $product->get_categories();
    echo $categ; ?>

这是我的连接管理器代码..

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.xxx.xx.helper.SessionManager;
import com.xxx.xx.util.ConnectionDetector;

public class Splash extends AppCompatActivity {

    private ConnectionDetector cd;
    Boolean isInternetPresent = false;
    protected SessionManager session;

    AlertDialogManager alert = new AlertDialogManager();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        session = new SessionManager(getApplicationContext());
        cd = new ConnectionDetector(getApplicationContext());

        Thread timer = new Thread(){
            public void run(){
                try {
                    sleep(2000);
                } catch (Exception e) {
                    e.printStackTrace();
                } finally {
                    checking();
                }

            }

        };
        timer.start();
    }

    public void checking() {

        isInternetPresent = cd.isConnectingToInternet();

        if(isInternetPresent) {
            session.checkLogin();
            finish();
        } else {
            alert.showAlertDialog(Splash.this, "No Connection", "Check Your Internet Connection.",false);
            finish();
        }
    }
}

0 个答案:

没有答案