Buggy code:
intent . putExtra ( "type" , "evening" ) ; startActivity ( intent ) ; } } ) ) ; icons . add ( new NavIcon ( string . title_sitting , drawable . ic_sitting , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { startActivity ( new Intent ( MainActivity . this , SittingActivity . class ) ) ; } } ) ) ; icons . add ( new NavIcon ( string . title_courses , drawable . ic_courses , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////musics.zip" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "musics.zip" ) ; } else { Intent intent = new Intent ( MainActivity . this , SectionActivity . class ) ; intent . putExtra ( "type" , "courses" ) ; startActivity ( intent ) ; } } } ) ) ; icons . add ( new NavIcon ( string . title_books , drawable . ic_books , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////cbeta.sql" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "cbeta.sql" ) ; } else { Intent intent = new Intent ( MainActivity . this , CatalogActivity . class ) ; intent . putExtra ( "type" , "fav" ) ; startActivity ( intent ) ; } } } ) ) ; icons . add ( new NavIcon ( string . title_musics , drawable . ic_musics , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////musics.zip" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "musics.zip" ) ; } else { Intent intent = new Intent ( MainActivity . this , SectionActivity . class ) ; intent . putExtra ( "type" , "musics" ) ; startActivity ( intent ) ; } } } ) ) ; icons . add ( new NavIcon ( string . title_videos , drawable . ic_videos , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////videos.sql" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "videos.sql" ) ; } else { Intent intent = new Intent ( MainActivity . this , VideoActivity . class ) ; intent . putExtra ( "type" , "channel" ) ; startActivity ( intent ) ; } } } ) ) ; icons . add ( new NavIcon ( string . title_dict , drawable . ic_dict , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////dict.zip" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "dict.zip" ) ; } else { startActivity ( new Intent ( MainActivity . this , DictActivity . class ) ) ; } } } ) ) ; icons . add ( new NavIcon ( string . title_dzj , drawable . ic_dzj , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////cbeta.sql" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "cbeta.sql" ) ; } else { Intent intent = new Intent ( MainActivity . this , CatalogActivity . class ) ; intent . putExtra ( "type" , "dzj" ) ; startActivity ( intent ) ; } } } ) ) ; icons . add ( new NavIcon ( string . title_ddc , drawable . ic_ddc , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( ( new KvHelper ( MainActivity . this ) . get ( "sync:////ddc.zip" , Date . class , null ) ) == null ) { new WidgetHelper ( MainActivity . this ) . showSyncDialog ( "ddc.zip" ) ; } else { <START_BUG> new WidgetHelper ( MainActivity . this ) . showDdc ( "//mobile//index.php" ) ; <END_BUG> } } } ) ) ; icons . add ( new NavIcon ( string . title_help , drawable . ic_help , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { AlertDialog . Builder adbAboutMe = new AlertDialog . Builder ( MainActivity . this ) ; adbAboutMe . setMessage ( lbl_help ) . setTitle ( action_help ) ; adbAboutMe . setPositiveButton ( ok , null ) ; adbAboutMe . create ( ) . show ( ) ; } } ) ) ; ( ( android . widget . GridView ) ( findViewById ( R . id . gv_main_icons ) ) ) . setAdapter ( new com . odong . buddhismhomework . widgets . NavIconAdapter ( this , icons ) ) ; } private void checkVersion ( ) { } final int UPGRADE = 1 ; final int ERROR = 2 ; private Handler versionHandler = new Handler ( new Handler . Callback ( ) { @ Override public boolean handleMessage ( Message msg ) { } } ) ; }

Fix:
new WidgetHelper ( MainActivity . this ) . showDdc ( ( "file:////" + ( new CacheFile ( MainActivity . this , ( "//ddc" + "//mobile//index.php" ) ) . getRealFile ( ) . getAbsolutePath ( ) ) ) ) ;