JXWD
Lurker
Hi just setting out need a little pointer please...
One I go though all the setup in android studio 3.1.2 I get:
package com.example.simplelogin
...
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}
Where as all the tutorials I open start something like below:
is this the equivalent? why is it different? Thanks -Hagen
package com.example.sairamkrishna.myapplication;
...
public class MainActivity extends Activity {
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
One I go though all the setup in android studio 3.1.2 I get:
package com.example.simplelogin
...
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}
Where as all the tutorials I open start something like below:
is this the equivalent? why is it different? Thanks -Hagen
package com.example.sairamkrishna.myapplication;
...
public class MainActivity extends Activity {
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}