摘要: 这是在工程中的proguard-project.txt中发现的# To enable ProGuard in your project, edit project.properties# to define the proguard.config property as described in that file.## Add project specific ProGuard rules here.# By default, the flags in this file are appended to flags specified# in ${sdk.dir}/tools/proguar 阅读全文
posted @ 2012-09-07 13:28 天边的星星 阅读(12547) 评论(0) 推荐(0) 编辑
摘要: 已关注返回异常09-06 07:21:48.731: WARN/System.err(5210): com.weibo.net.WeiboException: already followed09-06 07:21:48.731: WARN/System.err(5210): at com.weibo.net.Utility.openUrl(Utility.java:354)09-06 07:21:48.731: WARN/System.err(5210): at com.weibo.net.Utility.openUrl(Utility.java:291)09-06 07:2... 阅读全文
posted @ 2012-09-07 13:26 天边的星星 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 创建Sqlite数据库用工具Sqlite export创建数据库的时候 不知道怎么创建自增自动 只好用代码创建一个表 供参考create table test ( _id integer PRIMARY KEY autoincrement, //自增主键 id varchar (20), //主键 headurl varchar (50), // nickname varchar (20), content varcha... 阅读全文
posted @ 2012-09-05 09:59 天边的星星 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 利用java的反射机制public void setZoomControlGone(View view) { Class classType; Field field; try { classType = WebView.class; field = classType.getDeclaredField("mZoomButtonsController"); field.setAccessible(true); ZoomButtonsController mZoomButtonsController = new ZoomButtonsController( view... 阅读全文
posted @ 2012-09-03 23:05 天边的星星 阅读(2906) 评论(4) 推荐(0) 编辑
摘要: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);//设置视频大小 intent.putExtra(android.provider.MediaStore.EXTRA_SIZE_LIMIT, 768000);//设置视频时间 毫秒单位 intent.putExtra( android.provider.MediaStore.EXTRA_DURATION_LIMIT, 45000); startActivityForResult(intent, VIDEO); 阅读全文
posted @ 2012-08-23 11:24 天边的星星 阅读(2835) 评论(0) 推荐(0) 编辑
摘要: 401:Authentication credentials (http://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid conumer key/secret, access token/secret, and the system clock in in sync.Twitter授权权限设置在创建App时给的 否则在发消息的时候出现 上面错误401是因为后台没有设置Setting中找到下面设置选中read and wirte 模式是Read onlyApplicat 阅读全文
posted @ 2012-08-21 16:58 天边的星星 阅读(808) 评论(0) 推荐(0) 编辑
摘要: //---------------- DirTraversal.javapackage com.once;import java.io.File;import java.util.ArrayList;import java.util.LinkedList;/*** 文件夹遍历* @author once**/public class DirTraversal { //no recursion public static LinkedList<File> listLinkedFiles(String strPath) { LinkedList<File> list = n 阅读全文
posted @ 2012-08-20 16:37 天边的星星 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Intent intent = new Intent();/* 开启Pictures画面Type设定为image */intent.setType( "image/*");//intent.setType( "audio/*"); //选择音频//intent.setType( "video/*"); //选择视频 (mp4 3gp 是android支持的视频格式)/* 使用Intent.ACTION_GET_CONTENT这个Action */ intent.setAction(Intent.ACTION_GET_CONTENT); 阅读全文
posted @ 2012-08-20 16:33 天边的星星 阅读(2087) 评论(0) 推荐(0) 编辑
摘要: 自定义的webview使用了webView.getSettings().setJavaScriptEnabled(true);但是在加载含有JS界面时依然 还是报了ERROR/Web Console(26204):Uncaught TypeError: Cannot call method 'getItem' of null at XXXX/build.js:6等错误后来添加上webView.getSettings().setDomStorageEnabled(true);就好了。(是否开启Dom存储Api)参考官方文档http://developer.android.com/ 阅读全文
posted @ 2012-08-17 14:53 天边的星星 阅读(2695) 评论(0) 推荐(0) 编辑
摘要: 简言之三种: monospace;sans; serif。并有四种表现形式:正常;斜体;粗体;粗斜体。DroidSans是默认英文 DroidSansFallback 字体是 Google 为手机"Android"内建的系统字体,支持繁体中文、简体中文、韩文、日文。支持4种文字的同时,DroidSansFallback.ttf 字体文件的体积仅有 3.04MB大小,效果类似于微软雅黑字体,而且是完全免费的。 阅读全文
posted @ 2012-08-17 10:06 天边的星星 阅读(25620) 评论(0) 推荐(0) 编辑
摘要: 1.免费应用+广告这是目前国内个人开发者最普遍的赚钱方式,你可以利用嵌入国内和国外的几十家移动广告平台的sdk、并在各渠道发布你的应用来获取展示广告,从而利用用户对广告的点击而获取收入。需要注意的是,身为开发者你最好不要以欺骗、诱导、作弊等方式来获得用户点击,别破坏市场环境(比如现在很多应用所有功能都要求用户下载广告应用获取积分而得到使用,特别是一些色情搭边的应用)。2.收费应用国内移动MM、机锋网的金币、支付宝等各种渠道支付使用费,目前来看这种模式很难获取可观的收入。3.应用内容的商业合作这种模式需要你的应用有影响力,能让商家为你买单。4.其他一些商业模式,这里就不一一列出了。根据国内的情况 阅读全文
posted @ 2012-08-15 00:03 天边的星星 阅读(1837) 评论(0) 推荐(0) 编辑
摘要: 用自定义的webview显示网页内容时 有时候网页显示不尽人意。例如 手机显示水平有滑动的,通过设置webSettings.setDefaultZoom(zoomDensity)//WebSettings.ZoomDensity.MEDIUM ;显示的界面不同。后来发现时密度的原因,于是添加int screenDensity = getResources().getDisplayMetrics().densityDpi ; WebSettings.ZoomDensity zoomDensity = WebSettings.ZoomDensity.MEDIUM ; switch (screenD 阅读全文
posted @ 2012-08-13 16:11 天边的星星 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: ZK 中遇到Page is already covered by another Data Binder. Cannot be covered by this Data Binder again错误时 给绑定的页面一个目标<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" root="./ycjcms_Win"?><window id="ycjcms_Win"> 阅读全文
posted @ 2012-08-13 10:19 天边的星星 阅读(264) 评论(0) 推荐(0) 编辑