Insertion the data in MySql along with Sqlite database in android

Want to insert and fetch data with SQLite and MySQL in android.To make it clear, I am using two different classes one is MainActivity.java and second is MyDatabaseHelper.java but when I create the object of MyDatabaseHelper.java inside the MainActivity.java class, it’s getting crashed. Thanks in advance!

MainActivity.java

import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity {
    TextView textView;
    EditText editText;
    private static final String 
    DB_URL="jdbc:mysql://192.168.0.101/employee";
    private static final String USER="admin";
    private static final String PASS="root";
    List<String> itemList=new ArrayList<String>();
    MyDatabaseHelper mydb;
    SQLiteDatabase sqLiteDatabase;
    ContentValues values=new ContentValues();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView=(TextView)findViewById(R.id.textView);
        editText=(EditText)findViewById(R.id.editText1);
    }
    protected void onStart() {
        super.onStart();
    }
    public void btnConn(View view)
    {
        String text=editText.getText().toString();
        mydb=new MyDatabaseHelper(getApplicationContext(),"emp_sqlite",null,1);
        boolean result=mydb.addName(text);
        if (result==true)
        {
            Toast.makeText(getApplicationContext(),"Inserted to Sqlite",Toast.LENGTH_LONG).show();
        }
        else
        {
            Toast.makeText(getApplicationContext(),"Not Inserted ",Toast.LENGTH_LONG).show();
        }
        Send objSend=new Send();
        objSend.execute("");
    }
    public void btnShow(View view)
    {
        Fetch objFetch=new Fetch();
        objFetch.execute("");
    }
    private class Send extends AsyncTask<String, String, String>
    {
        String msg="";
        String text=editText.getText().toString();
        protected void onPreExecute()
        {
            textView.setText("Please Wait Inserting Data...");

        }
        protected String doInBackground(String...Strings)
        {
            try
            {
                Class.forName("com.mysql.jdbc.Driver");
                Connection conn= DriverManager.getConnection(DB_URL,USER,PASS);
                if(conn==null)
                {
                    msg="Connection goes wrong";
                }
                else
                {
                    String query="INSERT INTO emp(name) VALUES('"+text+"')";
                    Statement stmt=conn.createStatement();
                    stmt.executeUpdate(query);
                    msg="Insertion Successful to MySql !!!";
                    editText.setText("");

                }
                conn.close();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
            return msg;
        }
        protected void onPostExecute(String text)
        {
            Toast.makeText(getApplicationContext(),msg,Toast.LENGTH_LONG).show();
        }
    }
    private class Fetch extends AsyncTask<String, String, String>
    {
        String msg="";
        String result="";
        protected void onPreExecute()
        {
            textView.setText("Please Wait Data...");
        }
        protected String doInBackground(String...Strings)
        {
            try
            {
                Class.forName("com.mysql.jdbc.Driver");
                Connection conn= DriverManager.getConnection(DB_URL,USER,PASS);
                if(conn==null)
                {
                    msg="Connection goes wrong";
                }
                else
                {
                    Statement stmt=conn.createStatement();
                    String query_Result="select * from emp";
                    ResultSet rs = stmt.executeQuery(query_Result);
                    while (rs.next())
                    {
                        result=rs.getString(1);
                        Log.d("Name ",result);
                        itemList.add(result);
                    }
                }
                conn.close();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
            return String.valueOf(itemList);
        }
        protected void onPostExecute(String msg)
        {
            Toast.makeText(getApplicationContext(),String.valueOf(itemList),Toast.LENGTH_LONG).show();
            itemList.clear();

        }
    }
   public void btnGetDataFromSqlite(View view) {
        Cursor res = mydb.getAllData();
        if (res.getCount() == 0) {
            //message
            Toast.makeText(MainActivity.this, "Nothing found", Toast.LENGTH_LONG).show();
            return;
        }
        StringBuffer buffer = new StringBuffer();
        while (res.moveToNext()) {
            buffer.append("Id: " + res.getString(0) + "n");
            buffer.append("Name: " + res.getString(1) + "n");
            Toast.makeText(MainActivity.this, buffer.toString(), Toast.LENGTH_LONG).show();
        }
    }
}

MyDatabaseHelper.java

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;     
public class MyDatabaseHelper extends SQLiteOpenHelper {
    private static final int database_version=1;
    private static final String database_name="mysqlite";
    private static final String table_name="emp_sqlite";
    private static final String key_name="name";

    public MyDatabaseHelper(Context applicationContext, String emp_sqlite, Context context, int i) {
        super(context, database_name, null, database_version);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        sqLiteDatabase.execSQL("create table emp_sqlite(id integer primary key,name text)");

    }
    public boolean addName(String name) {
        SQLiteDatabase sqLiteDatabase = this.getWritableDatabase();
        ContentValues contentValues = new ContentValues();
        contentValues.put(key_name, name);
        sqLiteDatabase.insert(table_name, null, contentValues);
        sqLiteDatabase.close();
        return true;
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {
        sqLiteDatabase.execSQL("drop table if EXISTS "+table_name);
        onCreate(sqLiteDatabase);

    }
    public int updateName(String oldName , String newName) {
        int count = 0;
        try {
            SQLiteDatabase sqLiteDatabase = this.getWritableDatabase();
            ContentValues contentValues = new ContentValues();
            contentValues.put(key_name, newName);
            String[] whereArgs = new String[]{oldName};
            count = sqLiteDatabase.update(table_name, contentValues, key_name + " = ?", whereArgs);

        } catch (Exception e) {
            e.printStackTrace();
        }
        return count;
    }
    public int delete(String uname){
        SQLiteDatabase sqLiteDatabase=this.getWritableDatabase();
        String[] whereArg=new String[]{uname};
        int count=sqLiteDatabase.delete(table_name,key_name+" =?",whereArg);
        return count;
    }
    public Cursor getAllData()
    {
        SQLiteDatabase db=this.getWritableDatabase();
        Cursor res=db.rawQuery("select * from "+table_name,null);
        return res;
    }
}