10.07.2015 Views

dissertation

dissertation

dissertation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

@@ −4228 ,6 +4258 ,7 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccounc a s e CONTACTS LOOKUP:c a s e CONTACTS LOOKUP ID: {+ Log . i (TAG, ” Branch CONTACTS LOOKUP( ID ) ” ) ;L i s t pathSegments = u r i . getPathSegments ( ) ;i n t segmentCount = pathSegments . s i z e ( ) ;i f ( segmentCount < 3) {@@ −4267 ,6 +4298 ,7 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccoun}c a s e CONTACTS AS VCARD: {+ Log . i (TAG, ” Branch CONTACTS AS VCARD” ) ;// When r e a d i n g as vCard always use r e s t r i c t e d viewf i n a l S t r i n g lookupKey = Uri . encode ( u r i . getPathSegments ( ) . get ( 2 ) ) ;qb . s e t T a b l e s ( mDbHelper . getContactView ( t r u e /∗ r e q u i r e r e s t r i c t e d ∗ / ) ) ;@@ −4278 ,6 +4310 ,7 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccoun}76c a s e CONTACTS AS MULTI VCARD: {+ Log . i (TAG, ” Branch CONTACTS AS MULTI VCARD” ) ;SimpleDateFormat dateFormat = new SimpleDateFormat (”yyyyMMdd HHmmss ” ) ;S t r i n g c u r r e n t D a t e S t r i n g = dateFormat . format ( new Date ( ) ) . t o S t r i n g ( ) ;r e t u r n db . rawQuery (@@ −4288 ,6 +4321 ,7 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccoun}c a s e CONTACTS FILTER: {+ Log . i (TAG, ” Branch CONTACTS FILTER” ) ;S t r i n g f i l t e r P a r a m = ” ” ;i f ( u r i . getPathSegments ( ) . s i z e ( ) > 2) {f i l t e r P a r a m = u r i . getLastPathSegment ( ) ;@@ −4298 ,6 +4332 ,7 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccounc a s e CONTACTS STREQUENT FILTER:c a s e CONTACTS STREQUENT: {+ Log . i (TAG, ” Branch CONTACTS STREQUENT( FILTER ) ” ) ;S t r i n g f i l t e r S q l = n u l l ;i f ( match == CONTACTS STREQUENT FILTER&& u r i . getPathSegments ( ) . s i z e ( ) > 3) {

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!