ok I figured it out
just use this  <uses-permission android:name="android.permission.WRITE_SETTINGS" > in manifest file
and this  
Context context=getBaseContext();
    Settings.System.putString(context.getContentResolver(), 
       Settings.System.AIRPLANE_MODE_RADIOS, "cell, bluetooth, wifi"); 
where you want it