2012-12-13 52 views

回答

2

檢查此鏈接:Android: Taking complete control of phone(kiosk mode), is it possible? How?

try{ 

       TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); 
       Class c = Class.forName(manager.getClass().getName()); 
       Method m = c.getDeclaredMethod("getITelephony"); 
       m.setAccessible(true); 
       ITelephony telephony = (ITelephony)m.invoke(manager); 
       telephony.endCall(); 
      } catch(Exception e){ 
       Log.d("",e.getMessage()); 
    } 
+0

難道你不需要爲此打電話嗎? –