Android Open Source - RSSReader Data Helper_






From Project

Back to project page RSSReader.

License

The source code is released under:

?????? ????? ?????? ?????? ?????????? ????????? 1.?????? ???????? ??????? ??????? ????? ?????? ????? ?????????...

If you think the Android project RSSReader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.uyghurdev.avaroid.rssreader.data;
//  www  .  j  a v  a  2s . co m
import android.content.Context;

import android.database.sqlite.SQLiteDatabase;

public class DataHelper_ {



  

  OpenHelper openHelper;


  public DataHelper_(Context context) {
//    this.context = context;
////    if (!checkdatabase()) {
////      try {
////        copydatabase();
////      } catch (IOException e) {
////        // TODO Auto-generated catch block
////        Log.d("Copy Data", e.toString());
////        e.printStackTrace();
////      }
////    }
//    openHelper = new OpenHelper(this.context);
    
  }
}
  

//  private boolean checkdatabase() {
//    // SQLiteDatabase checkdb = null;
//    boolean checkdb = false;
//    try {
//      String myPath = DB_PATH + DATABASE_NAME;
//      File dbfile = new File(myPath);
//      // checkdb =
//      // SQLiteDatabase.openDatabase(myPath,null,SQLiteDatabase.OPEN_READWRITE);
//      checkdb = dbfile.exists();
//
//    } catch (SQLiteException e) {
//      System.out.println("Database doesn't exist");
//    }
//
//    return checkdb;
//  }
//
//  private void copydatabase() throws IOException {
//
//    // Open your local db as the input stream
//    InputStream myinput = context.getAssets().open(DATABASE_NAME);
//
//    // Path to the just created empty db
//    String outfilename = DB_PATH + DATABASE_NAME;
//    File data = new File(DB_PATH);
//    data.mkdirs();
//    // Open the empty db as the output stream
//    OutputStream myoutput = new FileOutputStream(outfilename);
//
//    // transfer byte to inputfile to outputfile
//    byte[] buffer = new byte[1024];
//    int length;
//    while ((length = myinput.read(buffer)) > 0) {
//      myoutput.write(buffer, 0, length);
//    }
//
//    // Close the streams
//    myoutput.flush();
//    myoutput.close();
//    myinput.close();
//
//  }





Java Source Code List

ca.laplanete.mobile.example.ExampleActivity.java
ca.laplanete.mobile.example.ExamplePagedDragDropGridAdapter.java
ca.laplanete.mobile.example.Item.java
ca.laplanete.mobile.example.Page.java
ca.laplanete.mobile.pageddragdropgrid.DeleteDropZoneView.java
ca.laplanete.mobile.pageddragdropgrid.DragDropGrid.java
ca.laplanete.mobile.pageddragdropgrid.ItemsSource.java
ca.laplanete.mobile.pageddragdropgrid.OnPageChangedListener.java
ca.laplanete.mobile.pageddragdropgrid.PagedContainer.java
ca.laplanete.mobile.pageddragdropgrid.PagedDragDropGridAdapter.java
ca.laplanete.mobile.pageddragdropgrid.PagedDragDropGrid.java
net.uyghurdev.avaroid.rssreader.About.java
net.uyghurdev.avaroid.rssreader.AddFeedActivity.java
net.uyghurdev.avaroid.rssreader.Configs.java
net.uyghurdev.avaroid.rssreader.ContentActivity.java
net.uyghurdev.avaroid.rssreader.CustomAlertDialog.java
net.uyghurdev.avaroid.rssreader.EditFeedActivity.java
net.uyghurdev.avaroid.rssreader.ImageLoader.java
net.uyghurdev.avaroid.rssreader.ItemAdapter.java
net.uyghurdev.avaroid.rssreader.ItemListActivity.java
net.uyghurdev.avaroid.rssreader.Item.java
net.uyghurdev.avaroid.rssreader.LItem.java
net.uyghurdev.avaroid.rssreader.RSSReaderActivity.java
net.uyghurdev.avaroid.rssreader.SettingsActivity.java
net.uyghurdev.avaroid.rssreader.SplashActivity.java
net.uyghurdev.avaroid.rssreader.SuggestedFeedsActivity.java
net.uyghurdev.avaroid.rssreader.data.DataHelper_.java
net.uyghurdev.avaroid.rssreader.data.FeedData.java
net.uyghurdev.avaroid.rssreader.data.OpenHelper.java
net.uyghurdev.avaroid.rssreader.operator.FeedParser.java
net.uyghurdev.avaroid.rssreader.operator.Feed.java
net.uyghurdev.avaroid.rssreader.operator.FeedsAdapter.java
net.uyghurdev.avaroid.rssreader.operator.JSONManager.java
net.uyghurdev.avaroid.rssreader.operator.NetworkOperator.java
net.uyghurdev.avaroid.rssreader.service.AlarmReceiver.java
net.uyghurdev.avaroid.rssreader.service.UpdateService.java
net.uyghurdev.avaroid.rssreader.tools.FileCache.java
net.uyghurdev.avaroid.rssreader.tools.Helper.java
net.uyghurdev.avaroid.rssreader.tools.MemoryCache.java
net.uyghurdev.avaroid.rssreader.tools.UIManager.java
net.uyghurdev.avaroid.rssreader.tools.Utils.java