Más contenido relacionado La actualidad más candente (20) Similar a 2015.04.24 Updated > Android Security Development - Part 1: App Development (20) 2015.04.24 Updated > Android Security Development - Part 1: App Development 3. Something you need to know
• USB
• Screen
• Clipboard
• Permission
• Database
• Network
• Cryptography
• API Management
• Validation
9. WHY ?
If you do not set android:debuggable="false",
debug mode will depend on system settings.
18. YOU WANT TO ALLOW
User can use something copied from other apps
in your app
19. ALSO WANT TO REJECT
User can not use something copied from your app
in other apps
21. SAVE THE STATE OF APPLICATION
onResume => FOREGROUND
onPause => BACKGROUND
23. USE RUNNABLE AND POSTDELAYED 500 MS
When onPause is triggered, you can detect
the state of application after ~500ms.
25. DETECT STATE AND SETPRIMARYCLIP
If STATE equals BACKGROUND, executes
BaseActivity.this.mClipboardManager
.setPrimaryClip(ClipData.newPlainText("", ""));
26. THE TOP ITEM WILL BE EMPTY
IN CLIPBOARD STACK
Android only lets app access the top item in
clipboard stack on non-rooted device.
35. YOU SHOULD REMOVE "GET_ACCOUNTS"
When you do not support
Android 4.0.3 and older version