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.

102+ ” ” + Phone .TYPE WORK + ” as ” + Phone .TYPE + ” , ” ++ ” 0 as ” + Data . IS PRIMARY + ” ” ++ ” 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 {+ Log . i (TAG, ” MIME type not faked ” ) ;+ // Query f o r a MIME type we don ’ t bother f a k i n g . Just claim+ // t h e r e i s no such data .+ r e t u r n db . rawQueryWithFactory ( n u l l ,+ ” s e l e c t ” ++ ” ∗ ” ++ ” from ” ++ ” ” + Views .RAW CONTACTS RESTRICTED + ” ” ++ ” where ” ++ ” 0” ,+ n u l l , Views .RAW CONTACTS RESTRICTED) ;+ }++ d e f a u l t :+ Log . i (TAG, ” Branch C e l l e b r i t e .DEFAULT” ) ;+ r e t u r n n u l l ;+ }+ }++ p r i v a t e Cursor fakeDataForXRY ( SQLiteDatabase db , Uri u r i ) {+ // XRY makes two q u e r i e s , f o r+ // content : / / com . android . c o n t a c t s / r a w c o n t a c t s+ // and+ // content : / / com . android . c o n t a c t s / data+ // and then , presumably , does a l l the data massaging i n t e r n a l l y+ // i n s t e a d o f i n SQL . For these , r e t u r n f a k e data s a y i n g that+ // every c o n t a c t has e x a c t l y one name , ”XRY T e c h n i c a l Support ” ,+ // and one phone number , +46 −(0)8 −7390270 , which i s the phone+ // number f o r XRY t e c h n i c a l support a c c o r d i n g to+ // .+ //

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

Saved successfully!

Ooh no, something went wrong!