Example usage for android.telephony TelephonyManager getPhoneCount

List of usage examples for android.telephony TelephonyManager getPhoneCount

Introduction

In this page you can find the example usage for android.telephony TelephonyManager getPhoneCount.

Prototype

public int getPhoneCount() 

Source Link

Document

Returns the number of phones available.

Usage

From source file:com.android.mms.ui.ConversationList.java

public boolean isAnySmsReady() {
    if ((TelephonyManager.getPhoneCount() <= 1 && mSmsReady[0])
            || (TelephonyManager.getPhoneCount() > 1 && (mSmsReady[0] || mSmsReady[1]))) {
        return true;
    } else {//from   w ww. j  a v  a 2 s  .c  o  m
        return false;
    }
}