Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
電話以外のアプリから電話が現在アクティブかどうかを確認する方法は?
これを検出するには、どの API が必要ですか?
これを試して:
public boolean isCallActive(Context context){ AudioManager manager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); return manager.getMode() == AudioManager.MODE_IN_CALL; }