本想實現aidl的打電話功能,但是一使用iTelephony.call();方法就閃退,不知道怎麼情況?尚未解決。
Method method = Class.forName("android.os.ServiceManager").getMethod("getService", String.class); IBinder binder = (IBinder)method.invoke(null, new Object[]{TELEPHONY_SERVICE}); iTelephony= ITelephony.Stub.asInterface(binder); iTelephony.call("134");