http://developer.android.com/reference/android/os/TransactionTooLargeException.html

The key to avoiding 
TransactionTooLargeException<http://developer.android.com/reference/android/os/TransactionTooLargeException.html>
 is 
> to keep all transactions relatively small. Try to minimize the amount of 
> memory needed to create a 
> Parcel<http://developer.android.com/reference/android/os/Parcel.html> for 
> the arguments and the return value of the remote procedure call. Avoid 
> transferring huge arrays of strings or large bitmaps. If possible, try to 
> break up big requests into smaller pieces.
>

Try something smaller than 200 :) 


On Tuesday, July 2, 2013 9:59:48 AM UTC+3, Rashmi wrote:
>
> Hi,
> In my application, I am executing applyBatch() on contacts database  to 
> insert huge contacts. Calling applyBatch() with 490 operations at a time.
> But the insertion is failing with 
> 'android.os.TransactionTooLargeException'. Reduced the operation size to 
> 200. Still I am getting the same error.
> Please let me know how to resolve this issue.
>
> Thanks,
>
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to