- 浏览: 422287 次
- 性别:
- 来自: 南京
-
最新评论
-
moshav:
感谢,刚好找到这个方法,用到后一种方式。
发生android.view.ViewRoot$CalledFromWrongThreadException异常的解决方案 -
jj_zerogra:
jj_zerogra 写道请问这个工程结构是什么样的?我按照你 ...
移植libharu至android -
jj_zerogra:
请问这个工程结构是什么样的?我按照你的文章实现的编译.so库总 ...
移植libharu至android -
lixiaolongxuexi:
如果代码中有自定义的View 还有可能是没有移除掉当前的Vie ...
【转】Activity has leaked window which that was originally added here -
yajun_soft:
在 10.04 的版本里不能用,怎么办?
ubuntu下面好用的查看android数据库的工具
文章列表
onFling为什么执行不到
- 博客分类:
- Android
因为onDown方法return了false,导致依赖于onDown的onFling无法被触发。
改成return true 就可以啦!
怎么回事啊!!!
开始还好好的,后来不晓得怎么了,装widget一直报这个错,不晓得抽什么风,
网上说神马卸掉重装,卸掉关机重启重装,统统都不行。。。。
很奇怪,明明classpath设置的好好的,还是报错,用网上的方法也不行。
后来我在
<classpathentry kind="lib" path="libs/robotium-solo-3.2.1.jar" />
后面加上exported="true",就可以了,也不晓得具体原因,先记下来,mark一下
surfaceview 导致屏幕闪
- 博客分类:
- Android
原因暂时发现
canvas = getHolder().lockCanvas();
getHolder().unlockCanvasAndPost(canvas);
调用多次上述代码,太过于频繁,如果短于15毫秒左右就会造成视觉上的闪烁
TODO 未待完续
以前做项目的时候用到过,也不是很明白,现在看了别人的总结,转来。。。
代码一
public class MainActivity extends Activity {
private LinearLayout mBackgroundLayout;
private TextViewTest mTextViewTest;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mBackgroundLayout = ...
导入工程,问题多多。
一导入架包,就报XXXXX.classpath (拒绝访问。)
问题在于导入的工程.classpath文件是隐藏的,解掉隐藏就OK了
坑爹的以前好好的工程,后来打包,再解压,再import到eclipse里就一直报标题那个错,无论怎么clean,remove from build path, add to build path 都不行,后来一搜,发现:http://www.blogjava.net/anchor110/articles/355699.html#Post
上面说要把libs设为source 文件夹,后来一试果然好了。
properties---Java Build Path --- Source --- Add Folder
OK啦
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.SurfaceView;
public class MyView1 extend ...
【ERROR】gen already exists but is not a source folder. Convert to a source folder or rename it
This is a common error and you can solve it following these steps:
Right click on the project and go to “Properties”
Select “Java Build Path” on the left
Open “Source” tab
Click “Add Folder…”
Check “ge ...
今天弄了蛮久selector,老是没有效果
刚开始时这样的
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/begin_btn"></item>
<item android:state_press ...
使用Robotium 需要将签名更换成debug.keystore
1)命令方式
* Un-zip the apk file
* Delete the META-INF folder
* Re-zip the apk file, rename it and make it as "applicationName.apk"
* In Dos prompt/Terminal write following commands
> jarsigner -keystore xxx/.android/debug.keystore -storep ...
Eclipse修改注释字体的大小
- 博客分类:
- 软件技术
按照这个步骤:Window --> Preferences --> General --> Appearance --> Colors and Fonts --> Basic --> Text Font --> Edit
被安排研究android测试。。。
- 博客分类:
- Android
http://hi.baidu.com/it_freeman/blog/index/2
http://www.imobilebbs.com/wordpress/?p=2764
Robotium
http://code.google.com/p/robotium/wiki/Getting_Started
android
.
test
.
suitebuilder
.
annotation有何意义
CTS 只支持linux环境下
----------------------------------------------- ...
今天在编写Android程序的时候,遇到这个问题。通过百度和google的搜索结果,总结出以下方法:方法一:public class mService extends Service {//保存在service中的Activity对象private static mActivity m;//启动服务static void startservice(Context c){m=(mActivity)c;Intent iService=new Intent(c,mService.class);iService.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);c.star ...