|
@@ -134,14 +134,14 @@ public class DatabaseHelper {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static int insertAPN(Context context, ApnModel model) {
|
|
|
- Log.d(TAG, "====== insertAPN ========: " + model._id);
|
|
|
+ public static int insertAPN(Context context, String value) {
|
|
|
+ Log.d(TAG, "====== insertAPN ========: " + value);
|
|
|
if (Macros.DEBUG) {
|
|
|
return -1;
|
|
|
} else {
|
|
|
Uri uri = Uri.parse(DB_GOPLAY_APN);
|
|
|
ContentValues values = new ContentValues();
|
|
|
- values.put("_id", model._id);
|
|
|
+ values.put("_id", value);
|
|
|
Uri returnUri = context.getContentResolver().insert(uri, values);
|
|
|
Log.d(TAG, "insertAPN row: " + returnUri.toString());
|
|
|
String s = getLastPart(returnUri.toString());
|