网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

Android开发新手系列之HelloWorld

时间:2024-10-13 14:18:36

1、启动Android Studio,新建工程; 配置工程名字以及包路径、工程存储路径;选择开发的Android程序运行的平台以及版本

Android开发新手系列之HelloWorldAndroid开发新手系列之HelloWorld

3、点击左侧Project,显示工程目录结构

Android开发新手系列之HelloWorldAndroid开发新手系列之HelloWorldAndroid开发新手系列之HelloWorldAndroid开发新手系列之HelloWorld

7、编写系统文件,将HelloWorldActivity设置为MAIN<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ww.n1.n1_helloworld"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".HelloWorldActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application></manifest>

Android开发新手系列之HelloWorld

9、运行Android APP程序,并且选择已经启动好的模拟器

Android开发新手系列之HelloWorld
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com