I'm developing an Android app, and it use Intent String, from an information that I've been read Intent putExtra can only tranfer String with max size 1 MB, I wondering how much String that I can put in it, because I want to put JSON and consider the length.
Megabyte (MB) A megabyte is 1,048,576 bytes or 1,024 kilobytes. 873 pages of plain text (1,200 characters).
You will find that the file has a size of 30 bytes on disk: 1 byte for each character.
Text ASCII File An ASCII character in 8-bit ASCII encoding is 1 byte; so, we get 107,3741,824 characters. Assume an average of 5 characters per word, plus a space (6 characters) = 178,956,970 words.
Well, single character takes exactly 8 bits to be stored in, that's 1 byte (B)
. So 1 MB = 1024KB
and 1 KB = 1024B
so 1 MB has 1024 x 1024 = 1,048,576 bytes
, that's 1,048,576 characters
, that includes everything
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With