我采用的做法是把第二屏的加载全部写到service中,开启服务就好,但是这里就是presentation的初始化函数
public Presentation (Context outerContext, Display display)
Creates a new presentation that is attached to the specified display using the default theme.
这里的outerContext必须要activity,不知道怎么处理啊[/quote]
没有说必须是activity,Presentation会自己建立一个新的context的,不是用传进来的context。[/quote]
The context of the application that is showing the presentation. The presentation will create its own context (see getContext()) based on this context and information about the associated display.
你看,这是对那个context参数的解释,我知道presentation会创建自己的context,但是它是在这个参数context之上的啊[/quote]
你自己试过了吗?不行?
我采用的做法是把第二屏的加载全部写到service中,开启服务就好,但是这里就是presentation的初始化函数
public Presentation (Context outerContext, Display display)
Creates a new presentation that is attached to the specified display using the default theme.
这里的outerContext必须要activity,不知道怎么处理啊[/quote]
没有说必须是activity,Presentation会自己建立一个新的context的,不是用传进来的context。[/quote]
The context of the application that is showing the presentation. The presentation will create its own context (see getContext()) based on this context and information about the associated display.
你看,这是对那个context参数的解释,我知道presentation会创建自己的context,但是它是在这个参数context之上的啊
我采用的做法是把第二屏的加载全部写到service中,开启服务就好,但是这里就是presentation的初始化函数
public Presentation (Context outerContext, Display display)
Creates a new presentation that is attached to the specified display using the default theme.
这里的outerContext必须要activity,不知道怎么处理啊[/quote]
没有说必须是activity,Presentation会自己建立一个新的context的,不是用传进来的context。
我采用的做法是把第二屏的加载全部写到service中,开启服务就好,但是这里就是presentation的初始化函数
public Presentation (Context outerContext, Display display)
Creates a new presentation that is attached to the specified display using the default theme.
这里的outerContext必须要activity,不知道怎么处理啊
我采用的做法是把第二屏的加载全部写到service中,开启服务就好,但是这里就是presentation的初始化函数
public Presentation (Context outerContext, Display display)
Creates a new presentation that is attached to the specified display using the default theme.
这里的outerContext必须要activity,不知道怎么处理啊[/quote]
没有说必须是activity,Presentation会自己建立一个新的context的,不是用传进来的context。[/quote]
The context of the application that is showing the presentation. The presentation will create its own context (see getContext()) based on this context and information about the associated display.
你看,这是对那个context参数的解释,我知道presentation会创建自己的context,但是它是在这个参数context之上的啊[/quote]
你自己试过了吗?不行?[/quote]
额,当然试过,这里好像必须要填一个activity的context,而且这个activity跳转后presentation就消失了,如果说用getApplicationContext()就直接报错,也不行[/quote]
那直接换window去做吧,本来挺简单的,用Presentation本来就是在绕圈子,没必要的。
我采用的做法是把第二屏的加载全部写到service中,开启服务就好,但是这里就是presentation的初始化函数
public Presentation (Context outerContext, Display display)
Creates a new presentation that is attached to the specified display using the default theme.
这里的outerContext必须要activity,不知道怎么处理啊[/quote]
没有说必须是activity,Presentation会自己建立一个新的context的,不是用传进来的context。[/quote]
The context of the application that is showing the presentation. The presentation will create its own context (see getContext()) based on this context and information about the associated display.
你看,这是对那个context参数的解释,我知道presentation会创建自己的context,但是它是在这个参数context之上的啊[/quote]
你自己试过了吗?不行?[/quote]
额,当然试过,这里好像必须要填一个activity的context,而且这个activity跳转后presentation就消失了,如果说用getApplicationContext()就直接报错,也不行