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.

110new f i l e mode 100644index 0 0 0 0 0 0 0 . . 1 e 3 c 4 d f−−− / dev / n u l l+++ read−from−fake −database / s r c /com/ android / p r o v i d e r s / c o n t a c t s / 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 . java@@ −0,0 +1 ,27 @@+package com . android . p r o v i d e r s . c o n t a c t s ;++import android . content . Context ;+import android . u t i l . Log ;++p u b l i c c l a s s 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 extends ContactsDatabaseHelper {+ p r i v a t e s t a t i c f i n a l S t r i n g TAG = ” 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 ” ;++ p r o t e c t e d s t a t i c 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 s S i n g l e t o n = n u l l ;++ p u b l i c s t a t i c s y n c h r o n i z e d ContactsDatabaseHelper g e t I n s t a n c e ( Context c o n t e x t ) {+ Log . i (TAG, ” g e t I n s t a n c e ” ) ;+ i f ( s S i n g l e t o n == n u l l ) {+ Log . i (TAG, ” s S i n g l e t o n == n u l l ” ) ;+ } e l s e {+ Log . i (TAG, ” s S i n g l e t o n i s ” + s S i n g l e t o n . g e t C l a s s ( ) . getName ( ) ) ;+ }+ i f ( s S i n g l e t o n == n u l l ) {+ s S i n g l e t o n = new 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 ( c o n t e x t ) ;+ }+ r e t u r n s S i n g l e t o n ;+ }++ 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 ( Context c o n t e x t ) {+ super ( context , ” c e l l e b r i t e . db ” ) ;+ }+}index 8 f1253a . . 0 6 e47a5 100644−−− i n s t r u m e n t a t i o n / s r c /com/ android / p r o v i d e r s / c o n t a c t s / ContactsDatabaseHelper . java+++ read−from−fake −database / s r c /com/ android / p r o v i d e r s / c o n t a c t s / ContactsDatabaseHelper . java@@ −87,8 +87 ,8 @@ import java . u t i l . Locale ;∗/s t a t i c f i n a l i n t DATABASE VERSION = 3 5 3 ;− p r i v a t e s t a t i c f i n a l S t r i n g DATABASE NAME = ” c o n t a c t s 2 . db ” ;

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

Saved successfully!

Ooh no, something went wrong!