android javabinder绑定器事务失败

android javabinder绑定器事务失败,java,android,Java,Android,尝试获取我的第一个android小部件,让我告诉你,从Visual Studio Pro迁移到eclipse并不是一件容易的事! 无论如何,我遇到了上面的错误,这给了我一些麻烦来解决。我搜索了所有可能的副本,当应用程序达到IPC大小(即大图像)时,似乎会出现此错误 我的小部件启动了一个intentservice,从web下载一些信息和一张图片。png的原始图像大小约为100k。然而,在我更新小部件之前,我将其缩小到17k左右。(与内存跟踪器一起检查的大小为16400字节[])。 但是更新失败了。

尝试获取我的第一个android小部件,让我告诉你,从Visual Studio Pro迁移到eclipse并不是一件容易的事! 无论如何,我遇到了上面的错误,这给了我一些麻烦来解决。我搜索了所有可能的副本,当应用程序达到IPC大小(即大图像)时,似乎会出现此错误

我的小部件启动了一个intentservice,从web下载一些信息和一张图片。png的原始图像大小约为100k。然而,在我更新小部件之前,我将其缩小到17k左右。(与内存跟踪器一起检查的大小为16400字节[])。 但是更新失败了。如果删除映像,则更新成功

这是执行的widgetprovider中的侦听器:

public void onHttpLoaded(Bitmap image, String titlestring, String subtitlestring)
    {
        Context context = getApplicationContext();          

        if (image == null) //no data?
        {
            Toast.makeText(context, context.getResources().getString(R.string.null_data_toast), Toast.LENGTH_LONG);
            return;// exit!
        }

        try
        {
            RemoteViews widgetView = new RemoteViews(this.getPackageName(), R.layout.main);             
            widgetView.setTextViewText(R.id.title, titlestring);

            //all other comment out

            //The problem!
            widgetView.setImageViewBitmap(R.id.main_icon, image);

            //Get global  appwidgetmanager
            AppWidgetManager manager = AppWidgetManager.getInstance(this);

            //update widget
            manager.updateAppWidget(Constants.THIS_APPWIDGET, widgetView);
        }
        catch (Exception e)
        {
            Log.d("onHttpLoaded", e.toString());
        }

    }
以及来自我的服务的OnHandleContent,上面的代码被调用:

protected void onHandleIntent(Intent intent)
    {
        resources = getApplicationContext().getResources();
        int iAppWidgetId;           
        try
        {
            iAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);
        }
        catch (Exception e)
        {
            Log.d("Service", "WidgetID not found");
        }
        //comment out stuff...

        //launch new httpTask 
        httpTask myhttpTask = new httpTask(tittlestring, subtitlestring, (myHttpListener) MyUpdateService.this, MyUpdateService.this);
        //limit size of bitmap
        myhttpTask.setSampleSize(Constants.BITMAP_SAMPLE_SIZE); //size = 4
        myhttpTask.execute();

    }
所有测试都是在模拟器中完成的。 一个可能很重要的细节是,在logcat中,我收到20-30条失败消息“!!!失败的活页夹事务!!!” 你知道我是怎么搞砸的吗?
thnks

已解决。这是模拟器的内存问题