小编jon*_*luz的帖子

尝试将带有图像的表单发送到PHP服务器时Android中的内存泄漏

我在这个文件中有内存泄漏,我找不到确切的位置,但我认为是周围的图像 - > (Bitmap bm = BitmapFactory.decodeFile(filename)),我尝试了很多不同的方法,但我无法让它工作.

package prod.vegs;

//All imports here but not need to write them all now :-)


public class ProductForm extends Activity {

private static int TAKE_PICTURE = 1;
private static int SELECT_PICTURE = 2;

//JSON Response node names
private static String KEY_SUCCESS = "success";
private static String ERROR_MSG = "error_msg";
private static String KEY_TYPES = "subtypes";
private static String TYPE_NAME = "name";
private static String TYPE_ID = "id_type";
private static String PRODUCT_ID = "id_product"; …
Run Code Online (Sandbox Code Playgroud)

android memory-leaks bitmap android-asynctask

8
推荐指数
1
解决办法
1385
查看次数

标签 统计

android ×1

android-asynctask ×1

bitmap ×1

memory-leaks ×1