文件名称:将图片转换成声音
文件大小:1.8MB
文件格式:RAR
更新时间:2018-07-05 08:57:26
mediaplayer
public class MainActivity extends Activity { Button get1; ImageView iv; RelativeLayout rl; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); get1 = (Button) findViewById(R.id.button1); iv = (ImageView) findViewById(R.id.imageView1); rl = (RelativeLayout) findViewById(R.id.back); get1.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub choseHeadImageFromCameraCapture(); } }); } private void choseHeadImageFromCameraCapture() { Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT); galleryIntent.addCategory(Intent.CATEGORY_OPENABLE); galleryIntent.setType("image/png"); startActivityForResult(galleryIntent, 1); }
【文件预览】:
GetPictureTest5
----.project(851B)
----project.properties(563B)
----src()
--------com()
----AndroidManifest.xml(896B)
----res()
--------raw()
--------drawable-ldpi()
--------drawable-hdpi()
--------values-v11()
--------menu()
--------drawable-mdpi()
--------layout()
--------values-sw600dp()
--------drawable-xxhdpi()
--------drawable-xhdpi()
--------values()
--------values-sw720dp-land()
--------values-v14()
----assets()
----gen()
--------com()
----libs()
--------android-support-v4.jar(543KB)
----.classpath(475B)
----proguard-project.txt(781B)
----ic_launcher-web.png(50KB)
----bin()
--------resources.ap_(229KB)
--------classes()
--------AndroidManifest.xml(896B)
--------GetPictureTest5.apk(444KB)
--------dexedLibs()
--------jarlist.cache(120B)
--------res()
--------classes.dex(622KB)