当前位置: 首页>>代码示例>>Java>>正文


Java AudioWife类代码示例

本文整理汇总了Java中nl.changer.audiowife.AudioWife的典型用法代码示例。如果您正苦于以下问题:Java AudioWife类的具体用法?Java AudioWife怎么用?Java AudioWife使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AudioWife类属于nl.changer.audiowife包,在下文中一共展示了AudioWife类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: retrieveFiles

import nl.changer.audiowife.AudioWife; //导入依赖的package包/类
private void retrieveFiles(){
    RealmResults<CallHistory> result = myRealm.where(CallHistory.class)
            .isNotNull(CallHistory.kCOL_FILE_PATH)
            .findAllSorted(CallHistory.kCOL_DATE_TIME, Sort.DESCENDING);

    arrayFilePaths.clear();
    arrayCalls.clear();

    if (result.size() > 0) {
        for(CallHistory c:result) {
            arrayFilePaths.add(PhoneNumberUtils.formatNumber(c.phoneNumber) + "   " + getDate(c.dateTime, "d/MM/yyyy HH:mm:ss"));
            arrayCalls.add(c);
        }
    }

    if (adapter != null) {
        adapter.notifyDataSetChanged();

        if (arrayCalls.size() > 0 && !hasPlayerSetup){
            AudioWife.getInstance().init(CallReceiverActivity.this, Uri.parse(arrayCalls.get(0).getFilePath())).useDefaultUi(llMediaPlayer, getLayoutInflater());
            hasPlayerSetup = true;
        }
    }
}
 
开发者ID:silverchen,项目名称:voice-call-recorder-android,代码行数:25,代码来源:CallReceiverActivity.java

示例2: onPause

import nl.changer.audiowife.AudioWife; //导入依赖的package包/类
@Override
protected void onPause() {
	super.onPause();

	// when done playing, release the resources
	AudioWife.getInstance().release();
}
 
开发者ID:jaydeepw,项目名称:audio-wife,代码行数:8,代码来源:DefaultPlayerActivity.java

示例3: onPause

import nl.changer.audiowife.AudioWife; //导入依赖的package包/类
@Override
protected void onPause() {
	super.onPause();

	// when done playing, release the resources
	AudioWife.getInstance().release();
	mUri = null;
}
 
开发者ID:jaydeepw,项目名称:audio-wife,代码行数:9,代码来源:BaseActivity.java

示例4: onDetachedFromRecyclerView

import nl.changer.audiowife.AudioWife; //导入依赖的package包/类
@Override
public void onDetachedFromRecyclerView(RecyclerView recyclerView) {
    super.onDetachedFromRecyclerView(recyclerView);

    AudioWife.getInstance().release();
}
 
开发者ID:guardianproject,项目名称:haven,代码行数:7,代码来源:EventTriggerAdapter.java


注:本文中的nl.changer.audiowife.AudioWife类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。