[英]where to paste the java file into the android studio project
I am new to android studio.I am doing the "Send Data From Android To SQL Server Using RESTful API" using Visual Studio and Android Studio.我是 android studio 的新手。我正在使用 Visual Studio 和 Android Studio 执行“使用 RESTful API 将数据从 Android 发送到 SQL Server”。
There is a one instruction that i do not understand is that有一条我不明白的指令是
I have to copy the RESTAP.java file into my Android studio project but I do not know where should i put inside my android studio (eg., file path location).我必须将 RESTAP.java 文件复制到我的 Android studio 项目中,但我不知道我应该把我的 android studio 放在哪里(例如,文件路径位置)。
below attached is the screenshot that i just create in Android Studio:下面附上我刚刚在 Android Studio 中创建的屏幕截图:
Paste it in the folder containing the MainActivity.将其粘贴到包含 MainActivity 的文件夹中。 Normally the package name would change automatically in Android Studio but if it doesn't then remember to change the package name appropriately.
通常,包名称会在 Android Studio 中自动更改,但如果它不记得要适当地更改包名称。
You can also create a new folder to store all the java files to segregate your API from your main code.您还可以创建一个新文件夹来存储所有 java 文件,以将 API 与主代码分开。 That will be just be like another package in your android studio.
这就像你的 android studio 中的另一个包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.