摘要:
在Android中,我们可以通过AudioManager来判断是否有声音在播放。实例1:源码地址:PhoneWindowManager.java (frameworks\base\policy\src\com\android\internal\policy\impl)源码如下: /** * @return Whether fm is being played right now. */ boolean isFmActive() { final AudioManager am = (AudioManager)mContext.getSystemService(Context.AUDI... 阅读全文
摘要:
Android获取手机root的状态package com.app.demo;import java.io.File;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.Button;public class AndroiddemoActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(B 阅读全文