Ke7in
Ke7in

Reputation: 927

Android Empty Activity and Blank Activity

I am trying to make an android project and there are many types of activities, from there I see blank activity and empty activity.

Does anyone know the difference between the two?

Blank activity is not creating main_activity.xml but is created by empty activity.

In empty activity, I am unable to add EditText Field, Does anyone know why I am not able to add it? Error says :

Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
Exception details are logged in Window > Show View > Error Log

And when I open error log, there is no error

Upvotes: 21

Views: 19758

Answers (3)

Rafi Kamal
Rafi Kamal

Reputation: 4600

Check which API level you're using for rendering the view. In my case it was API 20 (for Android Wear). I changed it to API 19 and the error is gone.

enter image description here

Upvotes: 25

PQH
PQH

Reputation: 31

In my case, same to you blank activity don't generate java&layout but empty activity works well. EditText could use with API20, API21. (BTW blank activity worked well with previous installed).

Upvotes: 3

firefly
firefly

Reputation: 419

Blank Activity: this will create a blank activity with just 1 textview. Full Screen Activity: This is typically used by games. This activity hides the status bar and then your activity takes all screen space. Master Detail Flow: This template creates advanced navigation, based on fragments, which will work on both tablets and phones without any change

Upvotes: 0

Related Questions