[Add] log in the MainActivity for test
[Fix]  get the wrong size of the file while the range is no zero.