Question: Should I put xml landscape layout files for ALL the activities in the same layout-land folder?
If there are 3 activities and 3 landscape layout, then how should I name them in layout land folder to be recognized? 

I have 2 activities - A and B, they each have 2 lanscape layout in layout-land folder but only activity A can find the layout for landscape, whereas activity B finds the landscape layout for activity A and use it. Why? How to map the landscape layout to its activities?

```
//ACTIVITY- A
    @Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent bmr= new Intent(TdeeActivity.this,BMRActivity.class);
startActivityForResult(bmr,CALLED_ACTIVITY);    

}

@Override
protected void onResume() {
            super.onResume();
            setContentView(R.layout.activity_tdee);
            Button ok=(Button)findViewById(R.id.btnOk);
            rdActLevel=(RadioGroup) findViewById(R.id.rd);
            ok.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View arg0) {
                    showResult();
                }

            });             
}

```

Answer: 
To actually see the JavaScript console select `DEBUG > Windows > JavaScript Console` in the Visual Studio menus. Then you can use the good old [`console.log()`](http://msdn.microsoft.com/en-us/library/windows/apps/hh696634.aspx) to write to it, but you can also use the related `WinJS` functions:

There is [`WinJS.log()`](http://msdn.microsoft.com/en-us/library/windows/apps/jj150612.aspx) to log something after creating the function with [`WinJS.Utilities.startLog()`](http://msdn.microsoft.com/en-us/library/windows/apps/hh701617.aspx):

```
WinJS.Utilities.startLog({type: "info", tags: "custom" });
WinJS.log("my message", "info", "custom");

```

---

Here's some additional information on the `WinJS` logging functions:

> 
> `startLog(options)`: Configures a logger that writes messages containing the specified tags to the JavaScript console.
> 
> 
> 

The `options` object **must** contain a `type` which is supposed to be one of `error`, `warn`, `info` or `perf`. Unless you want to capture all log entries, also add `tags` to the object containing a space-separated list of tags you want to be logged.

`WinJS.log(message, tags, type)`: This function **does not exist** by default. However, it is created by your `startLog()` call. You could also create it manually but since you want logging to the console using `startLog()` is the way to go.
I might be replying to an old post, or maybe you have discovered your way to serve your purpose, but I tried console.log() and WinJS.log() and the javascript console seem to return 'undefined' for both. Also, I made sure with 'debugger;' statement that that code was is executing. Now I am assuming here that you need logging for debugging purposes then what I would prefer to "print" to my screen now is:

```
<body>
  <label id="lblMessage">test</label>
</body>

```

and then in JS :

```
function f(message) {
  document.getElementById('lblMessage').innerText = message;
}

```

( and then, place a call to this function where needed - in my case it was, app.onactivated function)