Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/middleware/AppDataProvider.java
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | public Uri insert(Uri uri, ContentValues values) throws IllegalArgumentException{ | ||||
} | } | ||||
finalUri = ContentUris.withAppendedId(uri,last_rowid); | finalUri = ContentUris.withAppendedId(uri,last_rowid); | ||||
return finalUri; | return finalUri; | ||||
} | } | ||||
@Override | @Override | ||||
public boolean onCreate() { | public boolean onCreate() { | ||||
con = getContext(); | con = getContext(); | ||||
appDBHelper = NextGenDB.getInstance(getContext()); | appDBHelper = new NextGenDB(getContext()); | ||||
udbhelper = new UserDB(getContext()); | udbhelper = new UserDB(getContext()); | ||||
if(con!=null) { | if(con!=null) { | ||||
preferences = new DBStatusManager(con,null); | preferences = new DBStatusManager(con,null); | ||||
} else { | } else { | ||||
preferences = null; | preferences = null; | ||||
Log.e(DEBUG_TAG,"Cannot get shared preferences"); | Log.e(DEBUG_TAG,"Cannot get shared preferences"); | ||||
} | } | ||||
return true; | return true; | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register