List of usage examples for android.database.sqlite SQLiteException getStackTrace
public StackTraceElement[] getStackTrace()
From source file:com.modestmaps.providers.connection.TileBaseHelper.java
/** * * @return/* w ww. j av a 2 s . c om*/ * @throws java.io.IOException */ public boolean createDatabase() throws JSONException { if (!checkDatabase()) { try { //byte[] b = new byte[1024]; new URL(serverADD + "?k=fileSize").openStream().read(); System.out.println("1. instantiating TileDBOpenHelper as tiledopenHelper.."); System.out.println("passing context: " + this.context); TileDBOpenHelper tiledbopenHelper = new TileDBOpenHelper(this.context); System.out.println("2. getting WritableDatabase from tiledbopenHelper.."); this.tileDB = tiledbopenHelper.getWritableDatabase(); } catch (SQLiteException e) { System.out.println( "could not tiledbopenHelper.getWriteableDatabase(): " + e.getStackTrace().toString()); } catch (MalformedURLException e) { System.out.println(e); } catch (IOException e) { System.out.println("Error copying database..check network connection!!"); return false; } System.out.println("3. got WritableDatabase from tiledbopenHelper..!!!!"); try { System.out.println("4. copying database.."); copyDatabase(); } catch (IOException e) { System.out.println("Error copying database..check network connection!!"); return false; } } return true; }