I was wondering what would happen if I write one code in XML and another in Java.
I had this code in my program:
import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class ActivityName extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
So far in my manifest I have had this:
<activity android:name=".ActivityName" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar"> </activity>
My application started without any problems, but it ran Java code, not what I had in XML. I suppose this is true for all XML editions, but I would like to make sure that if I had Java code similar to XML with few differences, would it use my XML format or Java code?
source share