The application crasched after approximately 10 screen rotation repetitions
with an out of memory exception.
Forcing the Garbage Collector to clean the memory from unused bitmap references
solved the problem.
On Google Glass this is no issue because there is no screen rotation feature.
@Override
protected void onPreExecute() {
super.onPreExecute();
@Override
protected void onPreExecute() {
super.onPreExecute();
Log.d(TAG, "Starting loading of the PDF page asynchronously.");
mProgressContainer.setVisibility(View.VISIBLE);
}
Log.d(TAG, "Starting loading of the PDF page asynchronously.");
mProgressContainer.setVisibility(View.VISIBLE);
}