i'm sending intents native layer java layer @ high rate ( more 100 intents / sec ). if cpu load high, transactiontoolargeexception thrown in logcat, cannot catch in native sender.
my intents have small payload of 300 bytes, , indeed, i've checked @ moment of first exception, have 1 mb worth of intents sent not received other end ( in java app).
here native sender code.
sp<iservicemanager> mservicemanager = defaultservicemanager(); sp<ibinder> mactivitymanager = mservicemanager->checkservice(string16("activity")); status_t ret = mactivitymanager->transact(broadcast_intent_transaction, mdata, &mreply, 0); if (ret == no_error) { int32_t exceptioncode = mreply.readexceptioncode(); if (!exceptioncode) { status = true; } else { alogd("exception %d\n", exceptioncode); } } else { alogd("error: %d", ret); }
Comments
Post a Comment