I am doing one application in android for that I need to access com.android.internal.telephony APIs. Now I am able to access those APIs but problem is wherever I call the
Your cm variable has been never initialized before getConnections() call. So, it is null and you get NullPointerException when trying to invoke cm.getActiveFgCall().