• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How do i upload multimedia files such as image/audio into microsoft azure?

bryan1709

Lurker
Apr 22, 2013
4
0
Below is my codes for my camera application and despite visiting the tutorial i still have no idea how to insert the multimedia files into the blob storage of azure mobile services.

package com.example.testproject;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class Camera extends Activity{

ImageView iv;

public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.camera);


iv = (ImageView) findViewById(R.id.imageView1);
Button btn = (Button) findViewById(R.id.btnPhoto);
btn.setOnClickListener(new OnClickListener(){

public void onClick(View v){
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 0);
}
});

}

protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
if(requestCode == 0)
{
Bitmap theImage = (Bitmap) data.getExtras().get("data");
iv.setImageBitmap(theImage);
}
}

}
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones