摘要: Android Developer : (1) https://developer.android.com/training/multiscreen/index.html (2) https://developer.android.com/guide/practices/tablets-and-handsets.html (3) https://developer.android.com/guide/practices/screens_support.html#qualifiers 阅读全文
posted @ 2013-07-26 19:24 Binary-Stream 阅读(173) 评论(0) 推荐(0) 编辑
摘要: http://www.blogjava.net/java-blog/articles/189040.html 阅读全文
posted @ 2013-07-23 12:35 Binary-Stream 阅读(3601) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/samxx8/article/details/7389416 阅读全文
posted @ 2013-07-23 12:02 Binary-Stream 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 错误场景: 运行android app时,在运行到调用高德地图API时,出现 “java.lang.UnsatisfiedLinkError: Couldn't load amapv3: findLibrary returned null ”异常。原因: android app引用了一个openCV库工程,在该openCV库工程中的libs文件夹下, armeabi 和 armeabi-v7a文件夹下放了相同的.so文件。而在android app中,android高德地图的.so文件只放在了armeabi文件夹下(注:在没有加openCV库工程时,运行android app是OK的, 阅读全文
posted @ 2013-07-11 16:30 Binary-Stream 阅读(1420) 评论(2) 推荐(0) 编辑
摘要: 方式一: Handler + Runnable (借鉴网址:http://stackoverflow.com/questions/6207362/how-to-run-an-async-task-for-every-x-mins-in-android private final static int INTERVAL = 1000; // 2 minutes private static final int ALL_COUNT = 5; // 总资源数 private TextView mTextView; private ProgressBar mProgressB... 阅读全文
posted @ 2013-07-06 14:21 Binary-Stream 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 使用EventBushttp://wuyexiong.github.io/blog/2013/04/30/android-fragment/http://yunfeng.sinaapp.com/?p=449使用方式: http://stackoverflow.com/questions/14856296/null-pointer-exception-with-fragments-and-eventbus http://awalkingcity.com/blog/2013/02/26/productive-android-eventbus/ 对比资料:http://stackoverflo... 阅读全文
posted @ 2013-06-24 15:15 Binary-Stream 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 目标:如题解决方法: mEditTextTelNum.setOnKeyListener(new OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DEL) { String content = mEditTextTelNum.getText().toString(); ... 阅读全文
posted @ 2013-06-15 14:15 Binary-Stream 阅读(7712) 评论(0) 推荐(1) 编辑
摘要: BUG描述源地址:http://stackoverflow.com/questions/12102777/prevent-android-activity-dialog-from-closing-on-outside-touchBUG现象: (1) UI界面弹出一个Dialog Activity; (2) 点击该Dialog Activity外的Button(该Button属于调用该Dialog Activity的Activity); (3) Button事件依然响应;需求: 当弹出Dialog后,该Dialog之外的所有组件不响应。解决方式: 在Dialog Activity中,添... 阅读全文
posted @ 2013-06-14 16:33 Binary-Stream 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/14195207/put-constant-text-inside-edittext-which-should-be-non-editable-android 阅读全文
posted @ 2013-06-08 18:53 Binary-Stream 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 解决方式: 重写 Fragment 中的 onActivityCreated(Bundle savedInstanceState) 方法,将 setLayoutAnimation() 写在该方法内。 阅读全文
posted @ 2013-05-27 17:41 Binary-Stream 阅读(343) 评论(0) 推荐(0) 编辑