Name | Framework Behavior | Producing Method |
---|---|---|
ContentResult | Returns a string literal | Content |
EmptyResult | No response | |
FileContentResult FilePathResult FileStreamResult |
Return the contents of a file | File |
HttpUnauthorizedResult | Returns an HTTP 403 status | |
JavaScriptResult | Returns a script to execute | JavaScript |
JsonResult | Returns a data in JSON format | Json |
RedirectResult | Redirects the client to a new URL | Redirect |
RedirectToRouteResult | Redirect to another action, or another controller’s action |
RedirectToRoute RedirectToAction |
ViewResult PartialViewResult |
Response is the responsibility of a view engine |
View/PartialView |
标签归档:action
android.intent.action.MAIN与android.intent.category的作用
在android和ophone的应用程序可以有多个Activity,每个Activity是同级别的,那么在启动程序时,最先启动哪个Activity呢?
有些程序可能需要显示在程序列表里,有些不需要。怎么定义呢?
android.intent.action.MAIN决定应用程序最先启动的Activity 。
android.intent.category.LAUNCHER决定应用程序是否显示在程序列表里。
因为你的程序可能有很多个activity,
只要xml配置文件中有这么一个intent-filter,而且里面有这个launcher,那么这个activity就是点击程序时最先运行的那个activity。
如果只有一个Activity,没有这两句也可以。