getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); ????@Override??
????protected?void?onResume()?{??
????????super.onResume();??
????????...
分类:
移动开发 时间:
2015-03-19 13:28:40
阅读次数:
147
反编译smali注入显示LOG的代码,备以后用:
.class public Lnet/iaround/connector/DebugClass;
.super Ljava/lang/Object;
.source "DebugClass.java"
# direct methods
.method public constructor ()V
.locals 0
.pro...
分类:
移动开发 时间:
2015-03-19 11:30:59
阅读次数:
597
public class MyButton extends Button{ public MyButton(Context context , AttributeSet set) { super(context , set); } @Override public boolean onKeyDow....
分类:
其他好文 时间:
2015-03-19 10:05:03
阅读次数:
130
super代表的是父类、超类,用在继承中的子类中;this代表对象本身,用在本类中。super访问的是被子类隐藏的父类的属性或被覆盖的方法,而this访问的是同一类中的成员。super调用的是父类中的某一个构造函数,而this调用的是本类中其他的构造函数。super和this都需要位于构造器..
分类:
编程语言 时间:
2015-03-19 06:37:08
阅读次数:
141
1、先看一个现象 public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat....
1 public class LoginActivity extends Activity { 2 3 @Override 4 public void onCreate(Bundle savedInstanceState) { 5 super.on...
分类:
移动开发 时间:
2015-03-18 21:45:28
阅读次数:
196
- (id)initWithFrame:(CGRect)frame delegate:(id)delegate focusImageItems:(SGFocusImageItem *)firstItem, ...
{
self = [super initWithFrame:frame];
if (self) {
NSMutableArray *imageItems...
分类:
其他好文 时间:
2015-03-18 20:36:24
阅读次数:
186
publicclassTitleViewextendsFrameLayout{
privateButtonleftButton;
privateTextViewtitleText;
publicTitleView(Contextcontext,AttributeSetattrs){
super(context,attrs);
LayoutInflater.from(context).inflate(R.layout.title,this);
titleText=(TextView)findViewByI..
分类:
移动开发 时间:
2015-03-18 18:19:54
阅读次数:
151
一、创建线程的第一种方式:继承Thread类class Demo extends Thread{ @Override public void run() { super.run(); for(int i=0;i<20;i++) Syste...
分类:
编程语言 时间:
2015-03-18 15:37:39
阅读次数:
195
首先上代码:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIButton *button = [UIButton buttonWithType:UIButtonTyp...
分类:
编程语言 时间:
2015-03-18 12:23:29
阅读次数:
241