protected String doInBackground(String... arg0) { setClose(false); new DBAdapter(getActivity()).createDB(); ConfigMediaplayer.createMediaplayer(getActivity()); ConfigMediaplayer.start(); ConfigMediaplayer.startKill(getActivity()); return super.doInBackground(arg0); }
protected void onPostExecute(String result) { super.onPostExecute(result); if (!isClose()) { Intent intent = new Intent(getActivity(), MenuActivity.class); getActivity().startActivity(intent); getActivity().finish(); } else { ConfigMediaplayer.stop(); } }