Mobile Security Defender 04

Source: Internet
Author: User

Mobile Security defender 41, mobile phone anti-theft process introduction two, lostfindactivity mobile phone anti-theft class design and implementation
    1. Whether to enter Is_first_use for the first time
    2. Mobile phone anti-theft function interface
    3. Xutil's Viewutils module
Third, Setup Wizard
    1. Welcome to the mobile phone anti-theft interface
      • Activity Toggle Animation
        For more information, please refer to http://blog.csdn.net/bufanni12/article/details/26453725
        Activity can be used to transition, swipe, zoom, and other dynamic effects when switching or exiting. The method overridependingtransition is used, which can be directly called in the activity.

Overridependingtransition (R.anim.zoomin, R.anim.zoomout) The first argument is actually an animation, the second argument is the end animation. This method is called after startactivity () or Finish (), which is called when the animation is toggled or exited.
2. Mobile Card Binding
* No SIM card is bound, you cannot point to the next Setup Wizard
Refer to Http://www.cnblogs.com/weixing/p/3253479.html
Use the Telephonymanager class in Android to get IMEI numbers and other phone information

    1. Set security Number
      * SIM card changes, when the phone restarts, send SMS to implement the alarm
      Implementation: Defines a broadcast receiver that subscribes to events that the system boots to complete

      <!-- 注册广播监听事件 --><receiver android:name=".receiver.BootCompliteReceiver" > <!-- 手机系统引导完成 -->    <intent-filter>        <action android:name="android.intent.action.BOOT_COMPLETED" />    </intent-filter></receiver>     在该接收器中 检测当前的sim卡的串号是否与保存的sim串号相同    ,假如不同,则发短信给安全号码
    2. Setup Complete

      1. Monitor Monitoring checkbox state change, through the Viewutils module's binding monitoring event to achieve
      2. Click Finish, should you want to protect the phone anti-theft function to turn on or off save
    3. Extracting base classes

      • Set Title
      • Next, Previous method
      • Single return key, not destroying the current activity, but returning to the previous activity
Iv. simplification through fragments and viewpager for optimization

(Expansion mission)
1. activity:lostfindactivity
2. Two fragments: Protectfragment protectsetupfragment

Mobile Security Defender 04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.