摘要: 两种情况,第三种情况,类似于微信,点击消息,跳到聊天框,退出后回到主页第一种情况就是:点击Notification ——>进入secActivity——> back键 ——>退出应用PendingIntent contentIntent = PendingIntent.getActivity(con... 阅读全文
posted @ 2015-12-08 22:49 Jimmy_5 阅读(1791) 评论(0) 推荐(0) 编辑
摘要: 在遇到这两个问题的时候:android:TextAppearance.Material.Widget.Button.Inverse找不到或者报错问题Error retrieving parent for item: No resource found that matches the given n... 阅读全文
posted @ 2015-09-21 16:23 Jimmy_5 阅读(2967) 评论(0) 推荐(0) 编辑
摘要: import android.util.Log;public class LogUtil { public static final int VERBOSE = 1; public static final int DEBUG = 2; public static final in... 阅读全文
posted @ 2015-09-18 10:27 Jimmy_5 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 参考来源:http://www.cnblogs.com/leehongee/p/4354803.htmlhttp://jingyan.baidu.com/article/e8cdb32b396dec37052bad25.html我使用的mx5,插入电脑未被android studio识别。这时候做两... 阅读全文
posted @ 2015-09-17 23:05 Jimmy_5 阅读(8844) 评论(0) 推荐(0) 编辑
摘要: 单线程操作UI会使窗口假死,所以UI操作需要用到多线程实现效果:当点击kiss时按钮闪动3次原理:自定义一个消息(WM_CHANGE_BUTTON),当点击按钮"kiss"时,启动一个新的线程,线程每隔0.5s钟发送一次WM_CHANGE_BUTTON消息。程序监听到该消息时调用消息函数,改变按钮大... 阅读全文
posted @ 2015-05-31 23:04 Jimmy_5 阅读(1960) 评论(0) 推荐(0) 编辑
摘要: Httpprivate String getHttpValue() { String str=""; String url = "http://test"; URL getUrl; HttpURLConnection connection; ... 阅读全文
posted @ 2015-04-23 17:26 Jimmy_5 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: ERROR:All WebView methods must be called on the same thread.warnning:所有WebView方法必须在主线程调用(4.0)所有WebView方法必须在同一线程调用(4.4)这是原来报错的程序 public void loadurl... 阅读全文
posted @ 2014-11-19 17:21 Jimmy_5 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 需要注意的是win平台加载图片,用到"file:///"参考来源 StartCoroutine(SaveThePlayerColorImage(320));//save the color image when the player pass the wall IEnumerator Save... 阅读全文
posted @ 2014-09-26 10:41 Jimmy_5 阅读(1631) 评论(0) 推荐(0) 编辑
摘要: 在win上,将配置文件放在了Application.dataPath 目录下,编辑状态下,测试通过。发布为exe后,读取失败。后来将配置文件放到生成的_data文件下,通过。当然想到以后发布到其他平台,在移动端下Application.persistentDataPath才是移动端可用的保存生成文件... 阅读全文
posted @ 2014-09-24 09:32 Jimmy_5 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: using System; using LitJson; string configStr; void Start() { ArrayList info = LoadFile(Application.dataPath,"config1.txt"); ... 阅读全文
posted @ 2014-09-18 15:25 Jimmy_5 阅读(1525) 评论(0) 推荐(0) 编辑