I am trying to select an image from a gallery in an emulator. When I click on the browse button, W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection displays W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection in logcat, but the emulator takes me to the gallery. When I selected one image, it will not be selected. I am using the following code:
package com.textapi; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; public class SendMMSActivity extends Activity { private static final int SELECT_PICTURE = 1; private String selectedPath, extension = ""; Uri selectedVideoUri; Button btnBrowse; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.send_mms); btnBrowse=(Button)findViewById(R.id.bnBrowse); btnBrowse.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) {
Please help me choose a picture. And also I need to send an image from the gallery to my mobile phone number using MVAAYOO api. Please help me if anyone knows.
source share