public void addStep(Step stp) { ContentValues values = new ContentValues(); values.put(STEP_DESC, stp.getStepDesc()); values.put(STEP_IMAGE, stp.getImageLink()); values.put(STEP_PDF, stp.getPdfLink()); values.put(STEP_ANIMATION, stp.getAnimationLink()); values.put(STEP_EXP_ID, ExperimentDbAdapter.newExpId); // adding record to steps table long stepId; stepId = db.insert(DATABASE_STEPS_TABLE, null, values); // creating step folder /*String path = Environment.getExternalStorageDirectory().toString()+"/Chhote Scientists/Category_1/Experiment_1"; File directory = new File (path+"/Step_"+String.valueOf(stepId)); directory.mkdir();*/ }