上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: 一个男人,他应该有修养和抱负。想想,整天关注娱乐版的男人,你指望它有什么成就么?整天玩游戏的男人,整体打麻将的男人,你指望它有什么成就么?一、拥有自信和风度男人到了二十几岁后,就要开始学着用心经营自己,它体现在自己的思想与涵养上。自信是一个男人最重要的品质,自信的男人就像一只在暴风雨中战斗的海鸥,无论暴风雨多么猛烈也依旧无所畏惧。一个自信的男人,总是能够感染别人,无论这些人是朋友还是敌人。要使别人对你有信心,就必须要先对自己充满信心。自信的男人可以战胜一切困难。一个有风度的男人就像一片大海,不拒点滴,又包容江河。有风度使男人得到更多的青睐,不争眼前才能够放眼世界,给予别人才能够受益无穷。正所谓 阅读全文
posted @ 2012-10-03 21:48 sfshine 阅读(140) 评论(0) 推荐(0) 编辑
摘要: package com.su.morebutton; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.LayoutInflater; import android.v... 阅读全文
posted @ 2012-09-29 22:06 sfshine 阅读(521) 评论(0) 推荐(0) 编辑
摘要: package com.su.testimageview; import com.su.testimageview.AsyncImageLoader.ImageCallback; import android.app.Activity; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.widget.ImageView; public class TestImageViewActivity extends A... 阅读全文
posted @ 2012-09-28 20:21 sfshine 阅读(657) 评论(0) 推荐(0) 编辑
摘要: package com.android.util; import java.text.SimpleDateFormat; import java.util.Date; /** * 转化微博发表时间 */ public class BlogTimeUtil { public static String converTime(long timestamp) { long currentSeconds = System.currentTimeMillis() / 1000; // 与现在时间相差秒数 long timeGap = currentSeconds - times... 阅读全文
posted @ 2012-09-28 20:12 sfshine 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 这段时间看见很多人做listview(比如模拟新浪客户端)用到这一个图片下载的类,我也不知道这个类到底是哪个大神写的,反正我使用这个类的时候接手别人的,刚开始,感觉这个类写的听不错,比我写的AsyncImageTask.java好多了,先说说我最开始写的吧,也算是抛砖引玉:public class AsyncImageTask extends AsyncTask<String, Void, InputStream>{ private ImageView imageView; public AsyncImageTask(ImageView imageView){ ... 阅读全文
posted @ 2012-09-28 19:45 sfshine 阅读(373) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class ChineseToPinYin { /** * 汉字转拼音缩写 * * @param str * 要转换的汉字字符串 * @return String 拼音缩写 */ public String getPYString(String str) { String tempStr = ""; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c >= 33 && ... 阅读全文
posted @ 2012-09-26 14:13 sfshine 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 安装:String str = "/CanavaCancel.apk"; String fileName = Environment.getExternalStorageDirectory() + str; Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(fileName)), "application/vnd.android.package-archive"); startActivity(intent);卸载:Uri 阅读全文
posted @ 2012-09-25 21:22 sfshine 阅读(486) 评论(0) 推荐(0) 编辑
摘要: <RadioGroup android:id="@+id/tab_rg_group" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <RadioButton android:id="@+id/textView2" style="@style/TextView_AllOrders" android:l 阅读全文
posted @ 2012-09-23 20:46 sfshine 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 记下来,很重要。Java语言的关键字,当它用来修饰一个方法或者一个代码块的时候,能够保证在同一时刻最多只有一个线程执行该段代码。 一、当两个并发线程访问同一个对象object中的这个synchronized(this)同步代码块时,一个时间内只能有一个线程得到执行。另一个线程必须等待当前线程执行完这个代码块以后才能执行该代码块。 二、然而,当一个线程访问object的一个synchronized(this)同步代码块时,另一个线程仍然可以访问该object中的非synchronized(this)同步代码块。 三、尤其关键的是,当一个线程访问object的一个synchronized(this 阅读全文
posted @ 2012-09-23 20:45 sfshine 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Please check my answerhere. Basically I just had to :@Override protected void onSaveInstanceState(Bundle outState) { //No call for super(). Bug on API Level > 11. } don't make the call tosuper()on thesaveInstanceStatemethod. This was messing things up...EDIT:after some more research, this is 阅读全文
posted @ 2012-09-20 11:09 sfshine 阅读(360) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页