package xyz.igorgee.imagecreatorg3dx;

import android.os.Bundle;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;

import java.io.File;

import xyz.igorgee.imagecreator3d.ModelViewer;

public class ObjectViewer extends AndroidApplication {
	@Override
	protected void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		File object = (File) getIntent().getExtras().get("model");

		AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
		initialize(new ModelViewer(object), config);
	}
}

package xyz.igorgee.imagecreatorg3dx;

import android.os.Bundle;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;

import java.io.File;

import xyz.igorgee.imagecreator3d.ModelViewer;

public class ObjectViewer extends AndroidApplication {
	@Override
	protected void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		File object = (File) getIntent().getExtras().get("model");

		AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
		initialize(new ModelViewer(object), config);
	}

	@Override
	public void onBackPressed() {
		super.onBackPressed();
		this.finish();
	}
}

Fix memory leak issue