Code example for ByteArrayBuffer

0
import android.view.Menu; 
import android.widget.Toast; 
 
public class MainActivity extends Activity {
 
	ByteArrayBuffer baf = new ByteArrayBuffer(1024);
	 
     
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         
 
        		Intent sendIntent = new Intent(Intent.ACTION_SEND);
                sendIntent.setType("audio/mp3");
                sendIntent.putExtra("sms_body",
                        getResources().getText(R.string.Message));
                sendIntent.setClassName("com.android.mms",
                        "com.android.mms.ui.ComposeMessageActivity"); 
                AssetManager mngr = getAssets();
                InputStream path = null;