android4.4 bluetooth OPP 之BluetoothOppSendFileInfo

来源:互联网 发布:淘宝违规处罚考试 编辑:程序博客网 时间:2024/04/30 03:39

BluetoothOppSendFileInfo类主要用来存放发送文件的信息。

其成员变量 主要是如下:

  /** readable media file name */
    public final String mFileName;


    /** media file input stream */
    public final FileInputStream mInputStream;


    /** vCard string data */
    public final String mData;


    public final int mStatus;


    public final String mMimetype;


    public final long mLength;

成员函数    public static BluetoothOppSendFileInfo generateFileInfo(Context context, Uri uri,String type)用来产生BluetoothOppSendFileInfo ,首先会对文件的一些信息做判断,符合要求之后会用mInputStream和文件关联。文件的信息解析判断由ContentResolver实现,此处不再介绍。



0 0
原创粉丝点击