First File->New->New Project
then give Application name and Company Domain as in figure with red circle
domain name is given by name.com or name.com.something
then perform next next and choose Blank Activity
There are more activity
MainActivity.java
package com.broadway.helloworld;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.v7.app.AppCompatActivity;
/** * Created by dhruba on 7/22/2015. */public class MainActivity extends AppCompatActivity {
@Override public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
super.onCreate(savedInstanceState, persistentState);
setContentView(R.layout.activity_main);
}
}
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.broadway.helloworld">
<application android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter >
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
activity_main.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="fff">
</LinearLayout>
This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
this is so good i like it very much
ReplyDelete