`
天天向上1989
  • 浏览: 422287 次
  • 性别: Icon_minigender_2
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
因为onDown方法return了false,导致依赖于onDown的onFling无法被触发。 改成return true 就可以啦!
怎么回事啊!!!   开始还好好的,后来不晓得怎么了,装widget一直报这个错,不晓得抽什么风,   网上说神马卸掉重装,卸掉关机重启重装,统统都不行。。。。
很奇怪,明明classpath设置的好好的,还是报错,用网上的方法也不行。 后来我在 <classpathentry kind="lib" path="libs/robotium-solo-3.2.1.jar" /> 后面加上exported="true",就可以了,也不晓得具体原因,先记下来,mark一下
原因暂时发现 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 = ...

HTML 5 问题

1)html5 中提到的spellcheck, 怎么在火狐里 没用?
导入工程,问题多多。   一导入架包,就报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 ...
按照这个步骤:Window --> Preferences --> General --> Appearance --> Colors and Fonts --> Basic --> Text Font --> Edit
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 ...
Global site tag (gtag.js) - Google Analytics