安卓快速开发

1.环境搭建

Android Studio下载网页:https://developer.android.google.cn/studio/index.html

第一次新建工程需要等待很长时间,新建一个Empty Views Activity 项目,右上角选择要运行的机器,运行就安装上去了(打开USB调试)。

2.项目结构

3.活动跳转

在安卓开发里面,layout里面的xml文件,是布局文件,相当于前端,java源码相当于后端。

手动新建:

  • layout下新建一个文件
  • 新建一个java类继承AppCompatActivity
  • 重写一个参数的onCreate方法
  • AndroidMainfest.xml新增 <activity>

自动新建:layout下直接新建activity

相关推荐
2501_916007478 分钟前
使用Apple Dashboards显示和自定iOS应用性能指标与数据可视化指南
android·ios·小程序·https·uni-app·iphone·webview
蜡台42 分钟前
# 已解决|MySQL 8\.4\.11 密码正确仍报错1045 \(28000\) Access denied 终极修复方案
android·mysql·adb
JMchen1231 小时前
2026年六款主流AI编程工具深度实测:Cursor、Copilot、Claude Code等对比与选型思考
android·kotlin·copilot·ai编程·开发工具·cursor·claude code
mmsx1 小时前
osmdroid 地图实战 05|让地图动起来:三个实时能力 + 六条工程排雷清单
android
码农coding2 小时前
android12 SystemUI组件之StatusBar启动
android
hai_android2 小时前
Kotlin 协程上下文:从 plus 到 CombinedContext,彻底搞懂左偏结构
android·kotlin
淡淡的香烟2 小时前
AndroidKMP之网络请求
android·网络
basketball6162 小时前
AI Infra 推理部署技术总结:2. vLLM 内核——PagedAttention 与调度器原理
android·人工智能·vllm·ai infra
I'mChloe3 小时前
群晖部署 image-matting:把人像去背景做成一个随开随用的 Web 工具
android·前端
千里马-horse3 小时前
第 61 章:设备策略与 Android 企业版
android·aosp