Run directly kotlin android activity?

Hi

I have question if is possible to run directly android activity.

Manifest from my application is:

<activity android:name=“KotlinActivity”
                  android:label=“@string/app_name”>

           <intent-filter>
           <action android:name=“android.intent.action.MAIN”/>
           <category android:name=“android.intent.category.LAUNCHER”/>
           </intent-filter>
</activity>

package com.example;

import android.app.Activity;
import android.os.Bundle;

public class KotlinActivity : Activity()
{

  protected
fun onCreate(savedInstanceState : Bundle)
  {
  
super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  }
}



and when I want run I have error:
/uploads/kotlinlang/original/1X/246dd855e43b8bd123e01e2e395ec732ba5c76a5.png

KotlinActivity is good becouse  when I run this activity from activity which is write in java it run without errors.

The problem seems to be in your manifest: please, check that it runs when you replace a Kotlin class with an analogous Java class.

Hi Ok, it was my mistake.

But in IntelliJ Idea (11.1.2  Kotlin Plugin 0.1.2353) is little inconvenience.
I can’t select a activity which is write in Kotlin language, I must write manually.


or when I want select file on Project tab, button Ok is disabled

Except that everything is works for me.

Please file an issue in our tracker. Thanks