随笔分类 -  android solve

上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
解决方案
摘要:MODIFY_PHONE_STATEpermission is granted to system apps only.For your information, there are 2 types of Android apps: system & userUser appsare just al... 阅读全文
posted @ 2014-11-28 17:33 wanqi 阅读(1202) 评论(0) 推荐(0) 编辑
摘要:from:http://download.csdn.net/download/ab6326795/6042755 阅读全文
posted @ 2014-11-24 10:24 wanqi 阅读(3568) 评论(0) 推荐(0) 编辑
摘要:java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParamsFrameLayout的父控件是一个Li... 阅读全文
posted @ 2014-10-21 16:01 wanqi 阅读(26672) 评论(0) 推荐(1) 编辑
摘要:from://http://www.studytrails.com/java/json/java-jackson-Serialization-polymorphism.jspJackson provides a way to maintain sub type information while s... 阅读全文
posted @ 2014-10-09 13:55 wanqi 阅读(625) 评论(0) 推荐(0) 编辑
摘要:Android Butterknife框架 注解攻略时间2014-02-27 09:28:09Msquirrel原文http://www.msquirrel.com/?p=95一、原理。最近发现一个很好用的开源框架,蛮不错的,可以简化你的代码,是关于注解的。不多说直接进入使用步骤讲解。二、步骤。1、... 阅读全文
posted @ 2014-09-12 10:44 wanqi 阅读(20573) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/zgz345/archive/2013/03/04/2942553.html今天使用Fragment的时候,出现了这个错误IllegalStateException: Can not perform this action after onSaveIns... 阅读全文
posted @ 2014-09-11 16:29 wanqi 阅读(408) 评论(0) 推荐(0) 编辑
摘要:android开发:全屏和退出全屏from://http://blog.csdn.net/dyllove98/article/details/88319332013-04-21 20:31 413人阅读 评论(0) 收藏 举报 xml代码:java代码:private static boolean ... 阅读全文
posted @ 2014-09-03 15:57 wanqi 阅读(1395) 评论(0) 推荐(0) 编辑
摘要:Android平板上开发应用的一点心得——精确适配不同的dpi和屏幕尺寸from://http://www.cnblogs.com/zealotrouge/archive/2012/11/23/2784774.html一、引言 Android的开源使厂商无需自行研发OS,大大降低了研发、生产的成本... 阅读全文
posted @ 2014-08-29 13:36 wanqi 阅读(2627) 评论(0) 推荐(0) 编辑
摘要:from://http://stackoverflow.com/questions/10005907/eclipse-android-plugin-libncurses-so-5sudo apt-get install libncurses5:i386orsudo apt-get install l... 阅读全文
posted @ 2014-08-19 21:11 wanqi 阅读(6892) 评论(0) 推荐(0) 编辑
摘要:http://www.pocketdigi.com/20121129/952.html默认,AIDL支持对象作参数,但需要该对象实现Parcelable接口,且aidl文件应该是该类在同一包下,需要单独给该类定义一个aidl文件.定义模型类:EnglishItem.java:123456789101... 阅读全文
posted @ 2014-08-19 18:36 wanqi 阅读(2209) 评论(0) 推荐(0) 编辑
摘要:在写AIDL的时候出现了interface XXX should be declared in a file, 错误。。。经过反复查看,发现AIDL规定,文件名必须和interface XXX名字相同,否则会报上面错误。from:://http://blog.csdn.net/helldevil/a... 阅读全文
posted @ 2014-08-19 18:20 wanqi 阅读(1805) 评论(0) 推荐(0) 编辑
摘要:./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory你用的是64位的系统吧?应该是缺少 lib32stdc... 阅读全文
posted @ 2014-08-19 06:24 wanqi 阅读(368) 评论(0) 推荐(0) 编辑
摘要://http://stackoverflow.com/questions/7642161/android-ormlite-like-function-is-not-workingtry { QueryBuilder qb = makeDao.queryBuilder(); qb.wher... 阅读全文
posted @ 2014-08-18 16:57 wanqi 阅读(1030) 评论(0) 推荐(0) 编辑
摘要:Step Detector and Step Counter Sensors on Android时间2014-03-31 11:56:00 Tech Droid 原文 http://techdroid.kbeanie.com/2014/03/step-detector-and-step-cou... 阅读全文
posted @ 2014-08-18 09:46 wanqi 阅读(2842) 评论(0) 推荐(0) 编辑
摘要:Hybrid App 是混合模式应用的简称,兼具 Native App 和 Web App 两种模式应用的优势,开发成本低,拥有Web技术跨平台特性。目前大家所知道的基于中间件的移动开发框架都是采用的 Hybrid 开发模式,例如国外的PhoneGap、Titanium、Sencha,还有国内的 A... 阅读全文
posted @ 2014-08-11 19:22 wanqi 阅读(274) 评论(0) 推荐(0) 编辑
摘要:import com.phonegap.DroidGap;import android.app.Activity;import android.os.Bundle;public class Main extends DroidGap {/** Called when the activity is ... 阅读全文
posted @ 2014-08-11 19:08 wanqi 阅读(327) 评论(0) 推荐(0) 编辑
摘要:ormlite 在android中 排序 条件查询all=dao.queryBuilder().orderBy("Id",true).where().eq("Type",key).and().eq("owner",Pub.user.getAccount()).and().eq("UserType",... 阅读全文
posted @ 2014-08-08 08:39 wanqi 阅读(7282) 评论(0) 推荐(0) 编辑
摘要:from://http://lyzhanghai.iteye.com/blog/947504在google的I/O大会中关于“Writing zippy Android apps”,有讲过用IntentService的问题,但是因为API文档中对IntentService描述不是很详细,所以很少人使... 阅读全文
posted @ 2014-07-22 13:40 wanqi 阅读(1063) 评论(0) 推荐(0) 编辑
摘要:在Java5之后,并发线程这块发生了根本的变化,最重要的莫过于新的启动、调度、管理线程的一大堆API了。在Java5以后,通过Executor来启动线程比用Thread的start()更好。在新特征中,可以很容易控制线程的启动、执行和关闭过程,还可以很容易使用线程池的特性。一、创建任务任务就是一个实... 阅读全文
posted @ 2014-07-18 16:47 wanqi 阅读(152168) 评论(10) 推荐(17) 编辑
摘要:Android开发的过程中,每次调用startService(Intent)的时候,都会调用该Service对象的onStartCommand(Intent,int,int)方法,然后在onStartCommand方法中做一些处理。然后我们注意到这个函数有一个int的返回值,这篇文章就是简单地讲讲i... 阅读全文
posted @ 2014-07-18 16:16 wanqi 阅读(544) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页