自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

寂寞的凹凸曼

为了发现王子 你必须与无数只青蛙接吻。。。

  • 博客(28)
  • 收藏
  • 关注

原创 Android 问题集合

Android 问题集合

2017-03-22 23:15:16 1395

原创 android studio 插件 - .ignore

Version 1.3.3 FeaturesFiles syntax highlight Coloring ignored files in the Project View Gitignore templates filtering and selecting in rules generator by name and contentShow ignored files b

2016-04-08 10:04:02 4162

原创 java-斐波那契数列

public static void main(String args[]){Scanner sc = new Scanner(System.in);System.out.println("请输入一个正整数:");int n = sc.nextInt(); System.out.println("total为:"+f(n));    System.out.println("

2016-03-23 01:00:47 372

原创 gradle Build Model failure

FAILURE: Build failed with an exception.* Where:Build file 'E:\github\xUtils3-master\library\build.gradle' line: 1* What went wrong:A problem occurred evaluating project ':library'.>

2015-11-04 16:12:39 2527

原创 android app 静默安装

添加了如下权限,同事也把app放到了    system/app 里了,还是不行        09-16 15:14:49.057: E/AndroidRuntime(4610): java.lang.SecurityException: Neither user 10049 nor current process has android.permission.INS

2015-09-16 20:31:01 913

原创 svn 特殊字符文件提交后操作报错

Error: Can't move 'F:\SmartFrame\Doc\.svn\tmp\svn-1A224ECC' to      Error:    文件名、目录名或卷标语法不正确。  一些特殊字符对于windows系统(mac 提交的)是不符的('解决办法:1.查询.svn\wc.db 数据库里的 NODES 表,清除因特殊字符引起的错误1.清空.svn\wc.db

2015-08-31 16:34:30 5791

转载 对 Android 开发者有益的 40 条优化建议

转自:http://www.oschina.net/translate/40-developer-tips-for-android-optimization?cmp&p=1#英文原文:40 Developer Tips for Android OptimizationHere’s a good way to get into Andr

2013-10-30 15:21:20 1133

原创 JAX-RS post 上传文件服务 —— 415 - Unsupported Media Type

server 代码:@POST@Path("/upload")@Consumes(MediaType.MULTIPART_FORM_DATA)public Response uploadFile(@FormDataParam("file") InputStream uploadedInputStream,@FormDataParam("file") FormDataCont

2013-08-22 16:43:19 4592

原创 Google Maps Android API v2 实践

参考:http://developer.android.com/google/play-services/maps.htmlhttps://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api1.       Retrieve informatio

2013-08-12 19:43:37 2049

原创 java.net.SocketException: sendto failed: EPIPE (Broken pipe)

用Socket 模拟http post 上传数据时遇如下问题异常信息:07-31 16:05:49.165: W/System.err(16351): java.net.SocketException: sendto failed: EPIPE (Broken pipe)07-31 16:05:49.165: W/System.err(16351): at libcore.io.IoB

2013-08-01 16:12:30 16725 10

原创 android 动态 GraphView

layout = (LinearLayout)findViewById(R.id.content);                graphView = new LineGraphView(MainActivity.this, "GraphViewDemo");        graphView.setDrawBackground(true);         graphView

2013-07-29 19:39:52 1552

转载 Android的Spinner组件的XML属性(备查)

java.lang.Object   |___android.view.View          |___android.view.ViewGroup                 |___android.widget.AdapterView                        |___android.widget.AbsSpinner    

2013-07-28 15:06:21 941

原创 android 源码下载的 Verifying Git Tags

原文这个样子的:Load the following public key into your GnuPG key database. The key is used to sign annotated tags that represent releases.$ gpg --importCopy and paste the key(s) below, then enter EOF

2013-07-12 09:14:29 1091

转载 如何在Ubuntu下面识别Galaxy Nexus设备

该文章转自:http://www.cppblog.com/deercoder/archive/2012/05/10/174419.html最近入手了Galaxy Nexus手机,但是由于一直在Ubuntu下面开发,而Ubuntu不能直接识别GalaxyNexus的MTP设备,导致了16G的Rom在Ubuntu下面完全无法识别,只能通过adb push和adb install的方法来安装

2013-07-05 11:50:58 868

原创 android-sdk-deployer-master 使用问题

想用maven 管理android 项目来着,就装了android-sdk-deployer-master (maven 的android 插件)。于是根目录执行 mvn install 出现如下问题:[INFO] Android Extras .................................... SUCCESS [0.019s][INFO] Android Com

2013-06-24 17:38:00 1373

原创 Android 4.2.2 API 17 的一些变动总结

1.http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, java.lang.String)http://developer.android.com/reference/android/webkit/JavascriptInter

2013-06-09 15:23:34 1403

原创 afinal 的部分使用总结

个人感觉afinal可以满足android 小型项目的开发,优点是使用快捷方便,大大提高了开发效率。以下是部分总结:1. FinalBitmap 加载图片:加载网络png 图片添加:finalBitmap .configCompressFormat(CompressFormat.PNG); 否则会出现背景为黑色现象。2.FinalDB 的使用:http://my.oschina.net

2013-05-10 10:32:54 902

原创 Android webview+Html5 video

1.网页代码,就一个video 控件:  HTML5视频播放器: http://218.206.204.71/app/public/media/BHSJ.mp4body { margin: 0; padding: 0; background: #222; -webkit-overflow: hidden; overflow: hidd

2013-05-08 15:54:35 1976

原创 android emulator 启动报 EOF错 连不上设备

[2012-09-05 14:20:55 - CUB] Failed to install CUB.apk on device 'emulator-5554![2012-09-05 14:20:55 - CUB] (null)[2012-09-05 14:20:55 - CUB] Failed to install CUB.apk on device 'emulator-5554': EO

2012-09-05 14:42:28 894

原创 android Emulator 4.0以上的打不开

android Emulator 4.0以上的打不开,并报如下错误。[2012-09-05 11:27:38 - Emulator] Failed to allocate memory: 8[2012-09-05 11:27:38 - Emulator] [2012-09-05 11:27:38 - Emulator] This application has requested th

2012-09-05 11:30:59 614

原创 Git 批量下载android源代码的shell脚本

1. windows 上是安装msysgit url:http://code.google.com/p/msysgit/downloads/list2.安装好之后运行在某一个盘里新建一个文件夹,并新建文件downandroidcode.sh  内容如下:#Create by CreatAutoGetShmkdir kernelcd kernelgit clone https

2012-07-19 17:18:50 686

原创 安装APK时 : Application not installed

装个apk各种错误:上篇文章出现的最终是版本不一致导致的,解决后有出现如下错误。好吧,一一解决! Application not installed分析:代码没有问题,apk也正常,直接运行apk在模拟器上也没有问题。打包放到另一个app里就出现问题了。突然发现这里边多了一个步骤:打包!我打的这个apk是没有签名的,那签名试试,ok ,成功。如图:

2012-06-28 15:51:51 2318 1

原创 there is a problem parsing the package

用代码安装apk时出现there is a problem parsing the package这个错误。代码: //指定文件安装    private void apkInstall(String filePath)    {        // install the apk.        Intent intent = new Intent(Intent.ACTI

2012-06-28 15:38:33 6561

原创 Failed to install XXX.apk on device 'emulator-5554': timeout

经常遇到如下问题:[2012-06-28 12:07:18 - CUB-CN] Failed to install XXX.apk on device 'emulator-5554': timeout[2012-06-28 12:07:18 - CUB-CN] Launch canceled!解决方法:修改 window->preferences->android->DDMS->A

2012-06-28 14:07:15 1126

原创 连webservice时SoapObject对象找不到

android 客户端利用Ksoap连webservice总会出现以下错误:"Caused by: java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject"找不到SoapObject对象,编译不成功的话会报错,没有说明已经编译了,为什么还会出现这个错误呢?网上大都说导入jar包的方式有问题,试了根本不行的,

2012-06-28 12:02:37 1130

原创 eclipse3.5 安装 jad问题

eclipse的翻遍一插件很多,个人认为jad还是不错的,可最近在eclipse上安装jad总是安装不了。解决方法:打开eclipse增加站点:http://jadclipse.sf.net/update,在线安装好JDT Decompiler 3.4.0,然后在下载插件net.sf.jadclipse_3.3.0.jar和下载下载jad.exe文件进行安装,此过程略去。eclipse3.3是

2012-05-22 10:10:40 505

转载 oracle数据库中sql基础

一、关系数据库的一些概念    1、主键的值一般不可以改变    2、外键:指向另一个表或本表的主键或唯一键的字段。外键的值一定要和某一主键相同,或者为空。    3、数据库对像:表,视图,序列,索引,同义词,程序(进程,函数,sql和pl/sql数据)4、sql command 类别    data retrieval数据检索:select  data man

2012-05-15 11:29:45 272

转载 FTP服务器的使用

FTP服务器的安装与配置(Ubuntu)1.查询是否安装vsftpd:  rpm -qa |grep vsftpd  (rpm的安装:apt-get install rpm)或者查询当前ftp进程:ps -ef|grep vsftpd2.安装vsftpd服务器: rpm -ivh vsftpd-*.rpm 或从互联网寻找对应资源直接安装vsftpd:apt-get install

2012-05-15 10:38:32 674

空空如也

空空如也

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

TA关注的人

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