当前位置: 代码迷 >> 综合 >> 启动Opera时直接打开某个网站,或者打开Data account中设置的主页
  详细解决方案

启动Opera时直接打开某个网站,或者打开Data account中设置的主页

热度:43   发布时间:2024-01-19 20:15:28.0
可以使用data account API来完成这个change feature 
change function goto_mobile_suite_screen as below: 
{  
opera_adp_prof_get_active_data_account_id(&account_id); 
 if( cbm_is_always_ask_account(account_id)) 
 { 
 
opera_brw_api_start_browser(); //set always ask 
 }  
 else 
 {  
 if( opera_adp_prof_get_profile_homepage(account_id,&url_len,&url)) 
 opera_brw_api_goto_url(url); 
 else 
 opera_brw_api_start_browser(); //not set homepage 
 }  
}
  相关解决方案