可使用下面語法
在 AndroidManifest.xml
想要隱藏的 activity 中 設定這個style
android:theme="@android:style/Theme.Holo.NoActionBar">
參考:
Using the Action Bar , android api
android:theme="@android:style/Theme.Holo.NoActionBar">
參考:
Using the Action Bar , android api
if (Request.Headers["user-agent"] != null && Request.Headers["user-agent"].ToLower().ToString().IndexOf("mozilla") != -1)
Response.Redirect("www/index.aspx");
else
Response.Redirect("wap/index.aspx");
if(request.getheader("user-agent")!=null&&(request.getheader("user-agent").tolowercase().indexof("mozilla")!=-1))
{
strfinishurl = "/web/index.jsp";
}else
{
strfinishurl = "/wap/index.jsp";
}