自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

yyb.ye专栏

好记性不如烂笔头

  • 博客(29)
  • 问答 (1)
  • 收藏
  • 关注

转载 ImageView---拍照或从相册取图片并裁剪

在Android中,Intent触发Camera程序,拍好照片后,将会返回数据,但是考虑到内存问题,Camera不会将全尺寸的图像返回给调用的Activity,一般情况下,有可能返回的是缩略图,比如120*160px。    这是为什么呢?这不是一个Bug,而是经过精心设计的,却对开发者不透明。    比如摄像头800W像素,根据我目前设置拍出来的图片尺寸为3200*2400px。有人说,

2015-07-24 15:05:50 834

转载 WebView--- Android WebView使用总结

在Android中有WebView Widget,它内置了WebKit引擎,同时,WebKit也是Mac OS X的Safari网页浏览器的基础。WebKit是一个开源的浏览器引擎,Chrome浏览器也是基于它的。所以很多表现WebView和Chrome是一样的。         在使用WebView之前,要在AndroidManifest.xml中添加 如下权限:否则会出We

2015-07-16 11:25:01 887

转载 Android Studio---断点调试和高级调试

有人说Android 的调试是最坑的,那我只能说是你不会用而已,我可以说Android Studio的调试是我见过最棒的。好了开始写一个简单的调试程序,我们先来一个for循环?12345678class="language-java hljs ">for(int i = 0; i 10; i

2015-07-14 11:55:13 11477

转载 Eclipse---Android 软件开发之如何使用Eclipse Debug调试程序详解

1.在程序中添加一个断点如果所示:在Eclipse中添加了一个程序断点 在Eclipse中一共有三种添加断点的方法第一种: 在红框区域右键出现菜单后点击第一项 Toggle Breakpoint 将会在你右键代码的哪一行添加一个程序断点 (同样的操作方可取消程序断点)第二种: 在红框区域双击鼠标左键将会在你双击代码的哪一行添加一个程序断点 (同样的操作方可取消程序断点)

2015-07-14 11:46:58 672

转载 TTS---科大讯飞语音合成

在线语音合成的使用方法:首先下载相关的sdk,这个网址里有多种版本,我选择的Android。http://open.voicecloud.cn/index.php/services/voicebase?type=tts&tab_index=1需要注意的是,最好先创建应用,审核通过后会返回一个APPID号,这个号在开发时会使用。 下载并解压后如图:其中,doc中是相关文档

2015-07-06 17:21:20 4841

原创 Push---极光推送

客户端启动分为 4 步:检查 metadata 的 appKey 和 channel ,如果不存在,则启动失败初始化 JPush SDK,检查 JNI 等库文件的有效性,如果库文件无效,则启动失败检查 Androidmanifest.xml,如果有 Required 的权限不存在,则启动失败连接服务器登录,如果存在网络问题,则登陆失败,或者前面三步有问题,不会启动JPush SDK

2015-07-03 11:50:43 892

转载 Demo---分享45个android实例源码

分享45个android实例源码,很好很强大http://www.apkbus.com/android-20978-1-1.htmlandriod闹钟源代码http://www.apkbus.com/android-20974-1-1.htmlandroid源码分享之指南针程序http://www.apkbus.com/android-20973-1-1.html

2015-07-02 18:02:33 1393

转载 VertificationCode---短信验证码

2015-07-02 17:31:38 1322

转载 Color---颜色对照表

颜色代码大全 AA 指定透明度。 00 是完全透明。 FF是完全不透明。超出取值范围的值将被恢复为默认值。    ffff00ffff33ffff66ffff99ffffccffffffffcc00ffcc33ffcc66ffcc99

2015-07-02 15:14:06 11209

原创 BaiduMap---百度地图官方Demo之OpenGL绘制功能(介绍如何使用OpenGL绘制在地图中进行绘制)

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <com

2015-07-02 13:49:08 9234 1

原创 BaiduMap---百度地图官方Demo之调用百度地图(介绍如何调启百度地图实现自身业务功能)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <Text

2015-07-02 13:46:11 11720 6

原创 BaiduMap---百度地图官方Demo之LBS.云检索功能(介绍如何使用LBS.云检索用户自有数据)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 13:43:01 7768 4

原创 BaiduMap---百度地图官方Demo之短串分享功能(介绍关键词查询,suggestion查询和查看餐饮类Place详情页功能)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 13:38:55 3503

原创 BaiduMap---百度地图官方Demo之热力图功能(介绍如何以热力图形式显示用户自有数据)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:57:18 39678 7

原创 BaiduMap---百度地图官方Demo之公交线路查询功能(介绍查询公交线路功能)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:54:17 4423 1

原创 BaiduMap---百度地图官方Demo之路径规划功能(介绍公交,驾车和步行三种线路规划方法和自设路线方法)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:50:21 12651 2

原创 BaiduMap---百度地图官方Demo之地理编码功能(介绍地址信息和坐标之间的相互转换)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <Lin

2015-07-02 11:45:36 4142

原创 BaiduMap---百度地图官方Demo之POI搜索功能(介绍关键词查询,suggestion查询和查看餐饮类Place详情页功能)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:40:44 3780

原创 BaiduMap---百度地图官方Demo之离线地图功能(介绍如何下载和使用离线地图)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <Lin

2015-07-02 11:35:21 6882 3

原创 BaiduMap---百度地图官方Demo之覆盖物功能(介绍添加覆盖物并响应点击功能和弹出pop功能)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:26:20 4727

原创 BaiduMap---百度地图官方Demo之自定义绘制功能(介绍自定义绘制点,线,多边形,园等几何图形和文字)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:22:06 10529

原创 BaiduMap---百度地图官方Demo之定位图层展示(介绍定位图层的基本用法)

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <com.baidu.mapapi.map.MapView

2015-07-02 11:18:43 3484

原创 BaiduMap---百度地图官方Demo之UI控制功能(介绍开关手势功能和显示隐藏UI控件)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:13:25 6472

原创 BaiduMap---百度地图官方Demo之地图操作功能(介绍地图基本控制方法)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 11:09:39 15194 2

原创 BaiduMap---百度地图官方Demo之图层展示(展示普通图,卫星图,交通流量图及百度城市热力图)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Linea

2015-07-02 10:04:14 8443

原创 BaiduMap---百度地图官方Demo之多地图展示(在一个Activity中创建多个地图展示)

xmlns:map="http://schemas.android.com/apk/res-auto"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical" >            android:la

2015-07-01 17:20:56 2220

原创 BaiduMap---百度地图官方Demo之MapFragment使用(创建一个基于Fragment的地图框架)

android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:orientation="vertical" >            android:id="@+id/map"        android:layout_width="match_parent"

2015-07-01 17:10:00 4313

原创 BaiduMap---百度地图官方Demo之基本地图功能(创建一张百度地图并管理地图的生命周期)

/** * 演示MapView的基本用法 * 创建一张百度地图并管理地图的生命周期 */public class BaseMapDemo extends Activity {    @SuppressWarnings("unused")    private static final String LTAG = BaseMapDemo.class.getSimpleName

2015-07-01 17:06:24 3391

原创 BaiduMap---百度地图官方Demo

//基本地图功能            new DemoInfo(R.string.demo_title_basemap,                    R.string.demo_desc_basemap, BaseMapDemo.class),                        //MapFragment使用            new DemoInf

2015-07-01 16:35:21 1689

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除