- 博客(7)
- 收藏
- 关注
原创 音乐2xml
RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_
2016-11-14 09:09:51
291
原创 音乐2
/** * MediaPlayer的两种创建方式 1.静态的 raw * 播放音乐–>硬件,java 调用不了硬件,C C++ c# * @author Administrator * */ public class MainActivity extends Activity implements OnClickListener { // 文件路径
2016-11-14 09:09:01
235
原创 音乐主Activity
/** * MediaPlayer的两种创建方式 1.静态的 raw * * @author Administrator * */ public class MainActivity extends Activity implements OnClickListener { // 文件路径 private String path1 = “mnt/sdca
2016-11-14 09:07:43
271
原创 音乐xml
RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_
2016-11-14 09:06:21
2333
原创 HttpUrlConnection Get请求网络数据
注:1.请求数据是耗时操作,需要创建一个子线程进行网络请求2.因为是联网操作,需要添加权限: 3.需要用到的网站:www.juhe.cn4.按步骤进行。public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate
2016-10-27 12:19:46
397
原创 ImageLoador
注:1.一般我们在使用ImageLoader的时候,需要在应用程序的入口进行它的一个配置,这个配置一般写到Application里边 2.https://github.com/nostra13/Android-Universal-Image-Loader ImageLoader的下载地址 Android开源框架ImageLoador的相关配置package com.example.image
2016-10-26 13:55:10
202
原创 ImageLoador简介
一、为了解决OOM(OutOfMemoryError)内存溢出,下载速度慢 导致app崩溃:解决方案是:1)对图片进行压缩(BitmapFactory.Options)2)及时回收Bitmap的内存(Bitmap.recycle())3)缓存图片(缓存到内存、sd卡等【Map
2016-10-26 11:58:20
396
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人