Upload large size file (approx 2MB) to server
<p>I am developing an Android mobile application which has the functionality of uploading files to the server sequentially.</p>

<p>I wanted to write the client server communication code keeping a criteria in mind.</p>

<p>Since the size of the file to be uploaded from the mobile device will be around 2MB , we need to send the file in multiple parts(chunks of data) to the server . Before sending the file to the server , I need to determine the signal strength at runtime. e.g: In a Wi-Fi environment , where the signal strength will be more , the no of chunks will be less &amp; the chunk size will be more when compared to using a 2G/3G connection(using SIM Card) where the no of chunks will be more &amp; chunk size will be less.</p>

<p>Any suggestions/sample code to implement the same will be helpful to me.
Also , is there any Android or third party API which can take care of the requirement.</p>

<p>Thanks in advance.</p>

<p>CB</p>
