设置应用一打开时候的背景图片
去掉相对布局时候的标题
去除标题必须在setContentView(R.layout.activity_main)之前。
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); // 去掉标题 setContentView(R.layout.activity_main); }
反正又是要涉及到权限问题,以后再详细研究下。
/** * 1. 收件人号码 * 2. 短信中心号码 * 3. 内容 * 4. sentIntent 发送成功调用此广播, 通知我们 * 5. deliveryIntent 对方接受成功, 回调此广播 */ String destAddress = "10086"; String msgCenter = null; String text = "送个早餐啊"; PendingIntent sendSuccessIntent = null; PendingIntent receiveSuccessIntent = null; try { smsManager.sendTextMessage(destAddress, msgCenter, text, sendSuccessIntent, receiveSuccessIntent); System.out.println("发送成功"); } catch (Exception e) { System.out.println("又报错了......"); }