简体   繁体   English

将java文件粘贴到android studio项目中的位置

[英]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有一条我不明白的指令是

  • Copy and paste the RestAPI.java file into your project.将 RestAPI.java 文件复制并粘贴到您的项目中。

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.

相关问题 将自己的属性文件放在用Android Studio创建的android项目中的哪里? - Where to put own properties file in an android project created with Android Studio? 应该在Android Studio项目中创建gen / R.java? - Where gen/R.java should be created in Android Studio project? Android Studio专案的外部jsoup档案放在哪里? - Where to put external jsoup file for Android Studio project? 将“ sentry.properties”文件放在Android Studio项目中的何处? - Where to put `sentry.properties` file in Android Studio project? Android Studio:如何将.sfb文件从一个项目复制/粘贴到另一个项目? - Android Studio : how to copy/paste a .sfb file from one project to another? Android Studio-项目目录在哪里? - Android studio - Where is project directories? R.java 文件位于 android 工作室 4.2.1 中 - Where is R.java file located in android studio 4.2.1 将.aar文件添加到android studio中的java模块(子项目) - Add .aar file to java module(sub project) in android studio Java android studio项目中的NoFileFoundException - NoFileFoundException in Java android studio project 我在 android 工作室中遇到了这个问题。我已经下载了链接中提到的文件,在哪里粘贴这些文件 - I'm facing this problem in android studio.I have downloaded the files mentioned in links, where to put paste those file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM