摘要: 進行submit操作時,提示:org.tigris.subversion.javahl.ClientException: Operation not permitted進行更新操作時,提示:Attempted to lock an already-locked dir進行刪除操作時,提示:Resource is out of sync with the file system網上給解決方法是進行clean操作,不過在執行時也提示Operation not permitted,這個方法不行。找到如下的參考網頁:http://stackoverflow.com/questions/1765232/ 阅读全文
posted @ 2012-10-17 15:11 日光之下无新事 阅读(425) 评论(0) 推荐(0) 编辑
摘要: ubuntu12.04英文环境下,gedit,firefox,eclipse等,无法使用ibus进行输入已经尝试的修改:1.ibus安装后,在~/.bashrc文件中添加了如下代码:export GTK_IM_MODULE=ibusexport XMODIFIERS=@im=ibusexport QT_IM_MODULE=ibusenv GTK_IM_MODULE=ibus gedit最后一行为后来添加,仍然没有作用。第二行中@im=ibus有没有加双引号都测试过,都无法使用。2.新建了一个文件在home路径下,~/.xprofile内容同上,依然无法使用。3.执行过了im-switch -s 阅读全文
posted @ 2012-10-11 11:28 日光之下无新事 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 在命令行中启动,执行eclipse -clean如果还是不行可以尝试移除adt的plugin,然后启动后重新安装。一般执行clean之后就可以启动。 阅读全文
posted @ 2012-10-11 11:12 日光之下无新事 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: 网页上的button定义 <input tyoe="file" />方法一,也是网上能搜到最多的解决方案参考网址:http://stackoverflow.com/questions/4944102/android-webview-file-input-field-filechooser-doesnt-show-up http://m0s-programming.blogspot.tw/2011/02/file-upload-in-through-webview-on.html @Override protected void onActivityResult( 阅读全文
posted @ 2012-09-05 18:43 日光之下无新事 阅读(11440) 评论(1) 推荐(0) 编辑
摘要: 最近有一个问题,困扰了很久都没有解决,就是在使用aidl进行进程间通信时,我的开发环境无法自动在gen目录下生成java文件。我用的是ubuntu的操作系统。而同样的source在其他同事的开发环境下都是可以的。检查sdk开发包安装都没有问题,platform-tools文件夹下aidl的编译工具也安静的躺在那边,怎么就不工作呢?薪水太少??在android发布了4.1开发包以后,发现tools和platform-tools都有更新安装,于是想刚好趁这个机会看能不能把问题解决。于是更新安装最新的tools和platform-tools。clean一下project,重新build,竟然报错了, 阅读全文
posted @ 2012-08-23 11:50 日光之下无新事 阅读(4587) 评论(0) 推荐(0) 编辑
摘要: 其中播放youtube视频的核心代码借鉴网上开源代码。代码如下:Format.java/** * Represents a format in the "fmt_list" parameter * Currently, only id is used * */public class Format { protected int mId; /** * Construct this object from one of the strings in the "fmt_list" parameter * @param pFormatString one of 阅读全文
posted @ 2012-08-06 12:43 日光之下无新事 阅读(4757) 评论(1) 推荐(0) 编辑
摘要: ImageButton webClose = (ImageButton)this.findViewById(R.id.webClose); webClose.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // TODO Auto-generated method stub browser.destroy(); // 可以在关闭视频时停止声音 ... 阅读全文
posted @ 2012-07-16 18:38 日光之下无新事 阅读(710) 评论(0) 推荐(0) 编辑
摘要: android 中,利用瀏覽器來開啟網頁的做法為String url_Str = "http://www.google.com.tw";Uri uri = Uri.parse(url_Str);Intent intent = new Intent(Intent.ACTION_VIEW,uri);startActivity(intent); 但是若要在url後面加上參數則可能會造成中文亂碼問頭發生,解決方法為將參數利用URLEncoder.encode轉成utf8再傳送即可String url_Str="http://www.yahoo.com/search?tes 阅读全文
posted @ 2012-07-16 18:27 日光之下无新事 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1.使用VedioView VideoView videoView = (VideoView)findViewById(R.id.video); String src = "rtsp://v6.cache7.c.youtube.com/CjYLENy73wIaLQlSNwWysTZuKRMYESARFEIJbXYtZ29vZ2xlSARSBXdhdGNoYP6mvvezrYeZTgw=/0/0/0/video.3gp"; videoView.setVideoURI(Uri.parse(src)); videoView.setMediaController(new Media 阅读全文
posted @ 2012-07-13 12:45 日光之下无新事 阅读(4760) 评论(0) 推荐(0) 编辑
摘要: 在之前处理过一个问题在任意窗口前弹出rss更新提醒对话框,如下页面:http://www.cnblogs.com/sipher/articles/2502092.html利用上面的方法可以弹出窗口,不过没有办法在窗口中启动一个activity。于是最近看有没有其他办法可以实现,想到在alertDialog中无法启动,那就还是弹出一个activity模拟窗口,再在其中启动activity。代码如下:private void showRssUpateRemindDialog() { view = View.inflate(getApplicationContext(), ... 阅读全文
posted @ 2012-07-11 10:29 日光之下无新事 阅读(1047) 评论(1) 推荐(0) 编辑