Performance improvement suggestion
Dear developers, I am analyzing Stop-o-Moto using static analysis. I found some potential slow operations of bitmap displaying in Stop-o-Moto: "BitmapFactory.decodeFile" method was used in create Bitmap at<de.digisocken.stop_o_moto.ScrollingActivity: void onActivityResult(int,int,android.content.Intent)>,When loading an image, Google suggests us to resize the image before decoding them, so as to save memory resource and avoid OutOfMemory exception.In that method,it directly use "decodeFile" to creating image,although later processing the size,but if the iamges are large,not using "inJustDecodeBounds" and "inSample"of options,maybe would lead to crash .Perhaps we should resize the images before decoding them, which can reduce time and memory overhead and help make app more smooth in user interaction.
what's more ,also in above method of onActivityResult(),I notice this code : decodeFile = (Bitmap) intent.getExtras().get("data");Is it passing bitmap by Intent direcyly? you know ,if we use Intent to pass bitmap ,it would lead to crash.