在自己的app中安装assets目录下的apk文件
public class MainActivity extends Activity {
Context mContext;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);...
分类:
移动开发 时间:
2014-07-24 23:29:43
阅读次数:
370
- (void)viewDidLoad
{
[super viewDidLoad];
UIImageView * animatedImageView = [[UIImageView alloc]initWithFrame:CGRectMake(60, 80, 200, 300)];
animatedImageView.backgrou...
分类:
其他好文 时间:
2014-07-24 23:24:34
阅读次数:
356
转自:http://blog.csdn.net/ccccdddxxx/article/details/78430701、要弄清楚这个问题,首先需要弄明白什么是implicit(隐藏) intent什么是explicit(明确) intent。Explicit Intent明确的指定了要启动的Acit...
分类:
移动开发 时间:
2014-07-24 22:27:52
阅读次数:
211
packagecom.parami.pkapp.view;importandroid.content.Context;importandroid.util.AttributeSet;importandroid.widget.VideoView;/***videoview全屏*@authorlhy**/publicclassMyVideoViewextendsVideoView{ publicMyVideoView(Contextcontext) { super(context); //TODOAuto..
分类:
其他好文 时间:
2014-07-24 17:55:17
阅读次数:
187
Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know...
分类:
其他好文 时间:
2014-07-24 17:28:16
阅读次数:
241
继承标识:Java使用extends/implement,C++使用:super:调用父类的某些东西instanceof:RTTI机制(A is instanceif B)final:类似于C++中的const,static区别001:extends and implementimplement--...
分类:
编程语言 时间:
2014-07-24 17:20:21
阅读次数:
227
求递增子序列的最大和,没什么好说的。粗暴1A,嘎嘎! 1 //#define LOCAL 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int a[1010]; 9 int dp[1010];1...
分类:
其他好文 时间:
2014-07-24 04:59:58
阅读次数:
254
简述构造器的运行机制首先要注意的是的构造器并不是函数,所以他并不能被继承,这在我们extends的时候写子类的构造器时比较的常见,即使子类构造器参数和父类的完全一样,我们也要写super就是因为这个原因。构造器的修饰符比较的有限,仅仅只有public private protected这三个,其他的...
分类:
编程语言 时间:
2014-07-23 15:45:49
阅读次数:
257
场景webdriver中可以设置很多的超时时间implicit_wait。识别对象时的超时时间。过了这个时间如果对象还没找到的话就会抛出异常代码ff = webdriver.Firefox()ff.implicitly_wait(10) # secondsff.get("http://somedom...
分类:
其他好文 时间:
2014-07-23 15:38:19
阅读次数:
227
implicit 关键字用于声明隐式的用户定义类型转换运算符。 如果可以确保转换过程不会造成数据丢失,则可使用该关键字在用户定义类型和其他类型之间进行隐式转换。参考戳此explicit 关键字用于声明必须使用强制转换来调用的用户定义的类型转换运算符。参考戳此有一点要注意的是,一个类中不能同时写显式和...
分类:
其他好文 时间:
2014-07-23 15:36:49
阅读次数:
220