FileDocCategorySizeDatePackage
BluetoothPbapRequestPullPhoneBookSize.javaAPI DocAndroid 5.1 API1667Thu Mar 12 22:22:50 GMT 2015android.bluetooth.client.pbap

BluetoothPbapRequestPullPhoneBookSize

public class BluetoothPbapRequestPullPhoneBookSize extends BluetoothPbapRequest

Fields Summary
private static final String
TAG
private static final String
TYPE
private int
mSize
Constructors Summary
public BluetoothPbapRequestPullPhoneBookSize(String pbName)


       
        mHeaderSet.setHeader(HeaderSet.NAME, pbName);

        mHeaderSet.setHeader(HeaderSet.TYPE, TYPE);

        ObexAppParameters oap = new ObexAppParameters();
        oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) 0);
        oap.addToHeaderSet(mHeaderSet);
    
Methods Summary
public intgetSize()

        return mSize;
    
protected voidreadResponseHeaders(javax.obex.HeaderSet headerset)

        Log.v(TAG, "readResponseHeaders");

        ObexAppParameters oap = ObexAppParameters.fromHeaderSet(headerset);

        mSize = oap.getShort(OAP_TAGID_PHONEBOOK_SIZE);