10.07.2015 Views

dissertation

dissertation

dissertation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

101+ Log . i (TAG, ” Unknown query type . P r o j e c t i o n : ” + Arrays . t o S t r i n g ( p r o j e c t i o n ) ++ ” , s e l e c t i o n : ” + s e l e c t i o n ) ;+ r e t u r n n u l l ;+ }++ c a s e RAW CONTACT ENTITY ID:+ Log . i (TAG, ” Branch C e l l e b r i t e .RAW CONTACT ENTITY ID” ) ;+ // Fake a s i n g l e row o f data .+ // Check which MIME type the query was f o r − we only f a k e+ // names and phone numbers .+ i f ( s e l e c t i o n . c o n t a i n s (” vnd . android . c u r s o r . item /name ” ) ) {+ Log . i (TAG, ” Name ” ) ;+ r e t u r n db . rawQueryWithFactory ( n u l l ,+ // Column r e f e r e n c e :+ // http : / / d e v e l o p e r . android . com/ r e f e r e n c e / android / p r o v i d e r /+ // ContactsContract . CommonDataKinds . StructuredName . html+ ” s e l e c t ” ++ ” ’ C e l l e b r i t e T e c h n i c a l Support ’ as ” + StructuredName .DISPLAY NAME + ” , ” ++ ” n u l l as ” + StructuredName .FAMILY NAME + ” , ” ++ ” ’ C e l l e b r i t e T e c h n i c a l Support ’ as ” + StructuredName .GIVEN NAME + ” , ” ++ ” n u l l as ” + StructuredName .MIDDLE NAME + ” , ” ++ ” n u l l as ” + StructuredName . PREFIX + ” , ” ++ ” n u l l as ” + StructuredName . SUFFIX + ” , ” ++ ” 0 as ” + Data . IS PRIMARY + ” , ” ++ ” n u l l as ” + RawContacts .ACCOUNT TYPE + ” , ” ++ ” n u l l as ” + RawContacts .ACCOUNT NAME + ” ” ++ ” from ” ++ ” ” + Views .DATA RESTRICTED + ” ” ++ ” where ” ++ ” ” + RawContacts . ID + ” = ” ++ S t r i n g . valueOf ( Long . parseLong ( u r i . getPathSegments ( ) . get ( 1 ) ) ) ,+ n u l l , Views .DATA RESTRICTED) ;+ } e l s e i f ( s e l e c t i o n . c o n t a i n s (” vnd . android . c u r s o r . item / phone v2 ” ) ) {+ Log . i (TAG, ” Phone ” ) ;+ r e t u r n db . rawQueryWithFactory ( n u l l ,+ // Column r e f e r e n c e :+ // http : / / d e v e l o p e r . android . com/ r e f e r e n c e / android / p r o v i d e r /+ // ContactsContract . CommonDataKinds . Phone . html+ ” s e l e c t ” ++ ” ’+495251546490 ’ as ” + Phone .NUMBER + ” , ” +

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

Saved successfully!

Ooh no, something went wrong!