dissertation
dissertation
dissertation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Log . i (TAG, ” S e l e c t i o n arguments : ” + Arrays . t o S t r i n g ( s e l e c t i o n A r g s ) ) ;Log . i (TAG, ” Sort o r d e r : ” + s ortOrder ) ;115− f i n a l SQLiteDatabase db = mDbHelper . getReadableDatabase ( ) ;+ Log . i (TAG, ” USB debugging ” + ( isDebugging ? ”en” : ” d i s ”) + ” abled ” ) ;++ f i n a l SQLiteDatabase db ;++ i f ( c a l l e r I s C e l l e b r i t e ( ) ) {+ Log . i (TAG, ” C a l l e r i s C e l l e b r i t e ” ) ;+ db = C e l l e b r i t e C o n t a c t s D a t a b a s e H e l p e r . g e t I n s t a n c e ( getContext ( ) ) . getReadableDatabase ( ) ;+ } e l s e i f ( callerIsXRY ( ) ) {+ Log . i (TAG, ” C a l l e r i s XRY” ) ;+ db = XRYContactsDatabaseHelper . g e t I n s t a n c e ( getContext ( ) ) . getReadableDatabase ( ) ;+ } e l s e {+ // A l l normal , use the r e a l database+ db = mDbHelper . getReadableDatabase ( ) ;++ i f ( isDebugging ) {+ // I f we end up here , we ’ r e doing USB debugging and didn ’ t match the+ // s p e c i f i c t e s t s f o r C e l l e b r i t e and XRY at the top o f t h i s f u n c t i o n .+ // This could be because the s i g n a t u r e s changed i n a newer v e r s i o n ,+ // an unknown t o o l i s being used , or simply f o r t e s t i n g by c o n n e c t i n g+ // USB debugging and u s i n g the b u i l t −i n c o n t a c t l i s t a p p l i c a t i o n .+ // Modify the SQL query to r e t u r n no r e s u l t s .+ //+ // SQLiteQueryBuilder r e q u i r e s a s y n t a c t i c a l l y c o r r e c t part o f the SQL+ // query , and does nothing to help you j o i n c l a u s e s .+ // Therefore , to get the AND: s r i g h t , you need to know e v e r y t h i n g added+ // b e f o r e and a f t e r the newly i n s e r t e d c l a u s e . Also , you can ’ t read i t+ // back from the SQLiteQueryBuilder . Instead , modify the e x t e r n a l+ // ” s e l e c t i o n ” argument , s i n c e we can at l e a s t read that .+ i f ( s e l e c t i o n == n u l l | |+ s e l e c t i o n . e q u a l s ( ” ” ) ) {+ s e l e c t i o n = ” 0 ” ;+ } e l s e {+ s e l e c t i o n += ” AND 0 ” ;+ }+ }+ }