[Solved] Include files in apk

you can add your directories like include ‘:directory1’ project(‘:directory’).projectDir = new File(settingsDir, ‘../Project B/Directory 1’) Refer this for more information solved Include files in apk

[Solved] How to make a magnetic feild intensity measurer app in Android – Java [closed]

If you want the values of all axis from the Magnetometer this will do it. (By default the values is in microTesla) public class MagnetActivity extends AppCompatActivity implements SensorEventListener{ private SensorManager sensorManager; sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); @Override public void onSensorChanged(SensorEvent event) { if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) { int x_value = event.values[0]; int y_value = event.values[1]; … Read more

[Solved] Change version of APK

In targetSdkVersion Set maximum sdk version. if you set 21 than your application will work still 21 api. <uses-sdk android:minSdkVersion=”8″ android:targetSdkVersion=”21″ /> 2 solved Change version of APK