56
LeoNguyen.com

Android.AntiSpam Lab

Embed Size (px)

DESCRIPTION

Android.AntiSpam Lab http://leonguyen.com

Citation preview

Page 2: Android.AntiSpam Lab

Feature- SMS: Filter, Logs- Phone Call: Black List, White List, Logs- Settings, Widget

Page 3: Android.AntiSpam Lab

Outline- Database- Black List- White List- Blocked Receiver- Blocked Call- Blocked SMS- Widget- Main

Page 4: Android.AntiSpam Lab

Database

Page 5: Android.AntiSpam Lab

Create Phone Number interface class

- Enter code: https://gist.github.com/leonguyen/5603810

Page 6: Android.AntiSpam Lab

Create Black List Entity class

- Enter code: https://gist.github.com/leonguyen/5603818

Page 7: Android.AntiSpam Lab

Create Call Entity class

- Enter code: https://gist.github.com/leonguyen/5603846

Page 8: Android.AntiSpam Lab

Create Sms Entity class

- Enter code: https://gist.github.com/leonguyen/5618853

Page 9: Android.AntiSpam Lab

Create Database Helper class

- Enter code: https://gist.github.com/leonguyen/5603854

Page 10: Android.AntiSpam Lab

Create Black List DB Access class

- Enter code: https://gist.github.com/leonguyen/5603831

Page 11: Android.AntiSpam Lab

Create Call DB Access class

- Enter code: https://gist.github.com/leonguyen/5603850

Page 12: Android.AntiSpam Lab

Create Sms DB Access class

- Enter code: https://gist.github.com/leonguyen/5618869

Page 13: Android.AntiSpam Lab

Black List

Page 14: Android.AntiSpam Lab

Defining an Color List Drawable

- Enter code: https://gist.github.com/leonguyen/5656174

Page 15: Android.AntiSpam Lab

Defining an List Drawable

- Enter code: https://gist.github.com/leonguyen/5656044

Page 16: Android.AntiSpam Lab

Defining an Black List XML Layout

- Enter code: https://gist.github.com/leonguyen/5603860

Page 17: Android.AntiSpam Lab

Defining an Black List XML Menu

- Enter code: https://gist.github.com/leonguyen/5603863

Page 18: Android.AntiSpam Lab

Defining an Black List Context Menu

- Enter code: https://gist.github.com/leonguyen/5635101

Page 19: Android.AntiSpam Lab

Defining an Black List XML Dialog

- Enter code: https://gist.github.com/leonguyen/5603868

Page 20: Android.AntiSpam Lab

Create Black List Adapter

- Enter code: https://gist.github.com/leonguyen/5633532

Page 21: Android.AntiSpam Lab

Create Black List Activity program

- Enter code: https://gist.github.com/leonguyen/5617324

Page 22: Android.AntiSpam Lab

White List

Page 23: Android.AntiSpam Lab

Defining an White List XML Layout

- Enter code: https://gist.github.com/leonguyen/5661723

Page 24: Android.AntiSpam Lab

Defining an White List XML Menu

- Enter code: https://gist.github.com/leonguyen/5661736

Page 25: Android.AntiSpam Lab

Create White List Adapter

- Enter code: https://gist.github.com/leonguyen/5661759

Page 26: Android.AntiSpam Lab

Create White List Activity program

- Enter code: https://gist.github.com/leonguyen/5661771

Page 27: Android.AntiSpam Lab

Blocked Receiver

Page 28: Android.AntiSpam Lab

Create ITelephony interface class

- Enter code: https://gist.github.com/leonguyen/5617465

Page 29: Android.AntiSpam Lab

Create an Block Receiver class

- Enter code: https://gist.github.com/leonguyen/5617409

Page 30: Android.AntiSpam Lab

Blocked Call

Page 31: Android.AntiSpam Lab

Defining an Blocked Call XML Layout

- Enter code: https://gist.github.com/leonguyen/5618897

Page 32: Android.AntiSpam Lab

Create Blocked Call Activity program

- Enter code: https://gist.github.com/leonguyen/5617421

Page 33: Android.AntiSpam Lab

Blocked Sms

Page 34: Android.AntiSpam Lab

Defining an Blocked Sms XML Layout

- Enter code: https://gist.github.com/leonguyen/5618906

Page 35: Android.AntiSpam Lab

Create Blocked Sms Activity program

- Enter code: https://gist.github.com/leonguyen/5618914

Page 36: Android.AntiSpam Lab

Widget

Page 37: Android.AntiSpam Lab

Defining an Widget Drawable

- Enter code: https://gist.github.com/leonguyen/5682638

Page 38: Android.AntiSpam Lab

Defining an Widget XML Layout

- Enter code: https://gist.github.com/leonguyen/5682651

Page 39: Android.AntiSpam Lab

Defining AppWidgetProviderInfo Metadata

- Enter code: https://gist.github.com/leonguyen/5682664

Page 40: Android.AntiSpam Lab

Create Widget Provider program

- Enter code: https://gist.github.com/leonguyen/5682670

Page 41: Android.AntiSpam Lab

Main

Page 42: Android.AntiSpam Lab

Defining an Strings XML

- Enter code: https://gist.github.com/leonguyen/5655798

Page 43: Android.AntiSpam Lab

Defining an Background Drawable

- Enter code: https://gist.github.com/leonguyen/5603805

Page 44: Android.AntiSpam Lab

Defining an Main XML Layout

- Enter code: https://gist.github.com/leonguyen/5603800

Page 45: Android.AntiSpam Lab

Defining Android Manifest XML

- Enter code: https://gist.github.com/leonguyen/5617471

Page 46: Android.AntiSpam Lab

Create Main Activity program

- Enter code: https://gist.github.com/leonguyen/5617441

Page 47: Android.AntiSpam Lab

Execute the program

- http://youtu.be/OqhyDVt9Ts4

Page 48: Android.AntiSpam Lab

Github

https://github.com/leonguyen/AndroidAntiSpam

Page 49: Android.AntiSpam Lab

Sample

Page 50: Android.AntiSpam Lab

Sample

Page 51: Android.AntiSpam Lab

Sample

Page 52: Android.AntiSpam Lab

Sample

Page 53: Android.AntiSpam Lab

Sample

Page 54: Android.AntiSpam Lab

Sample

Page 55: Android.AntiSpam Lab

Sample

Page 56: Android.AntiSpam Lab

Sample