Code example for SmsMessage

Methods: getServiceCenterAddress

1
 
	} 
 
	// ��ȡ�������ĺ��� 
	public String getSmsc(SmsMessage sm) {
		return sm.getServiceCenterAddress() != null ? sm
				.getServiceCenterAddress() : "755";
	} 
 
	public static void dial(String number, Context context) {
		Class<TelephonyManager> c = TelephonyManager.class;
		Method getITelephonyMethod = null;
		try { 
			getITelephonyMethod = c.getDeclaredMethod("getITelephony",
					(Class[]) null);
			getITelephonyMethod.setAccessible(true);
		} catch (SecurityException e) {
 
			e.printStackTrace();
		} catch (NoSuchMethodException e) {
Experience pair programming with AI  Get Codota for Java