ChatGPT is a large language model developed by OpenAI. It’s based on the GPT (Generative Pretrained Transformer) architecture and is trained on a large corpus of text data to generate natural language responses to prompts. How to get ChatGPT API key To get an API key for the OpenAI API, you’ll need to sign up for an account on the OpenAI website. Once you’ve created an account, you can generate an API key in the API dashboard. You’ll need to use this API key when making API requests to authenticate and authorize your access to the API. Keep in mind…
-
-
Configure the environment for android in ubuntu server First requirement for this is to have an android sdk and the compatible java installed in the server side. The java version needs to be matched with the java version you are using in yourandroid project. To install the android in the ubuntu server here is the reference link.https://medium.com/@barcelos.ds/install-android-sdk-in-the-ubuntu-20-04-lts-withoutandroid-studio-1b629924d6c5 After installing the android sdk, you have to set the path for the same as ANDROID_HOME,which will be used further while using the android and java inline commands. Create Project and a plan for continuous integration To start configuring the continuous integration, we…
-
Android Studio’s Project and editor windows I introduced Android Studio’s main window at the end of Part 1. This window is divided into several areas, including a Project window where you identify an app’s resource files, and various editor windows where you’ll write the code and specify resources for mobile apps in Android Studio. The Project window and an editor window are shown in Figure 1. The Project window highlights W2A, which is the name of the app’s W2A.java source file (although the .java file extension isn’t shown). Corresponding to W2A is an editor window, reached by double-clicking W2A in the Project window. The editor window reveals the…
-
Installing Android Studio on 64-bit Windows 10 I launched android-studio-ide-181.5056338-windows.exe to start the installation process. The installer responded by presenting the Android Studio Setup dialog box shown in Figure 1. Clicking Next took me to the following panel, which provides the option to decline installing an Android Virtual Device (AVD). I chose to keep the default settings. After clicking Next, I was taken to the Configuration Settings panel, where I was asked to choose where to install Android Studio. I kept the default installation location and clicked Next, and was greeted with the Choose Start Menu Folder panel. I kept the default setting and clicked Install. The following Installing panel appeared: Clicking Show details causes the names…
-
Kotlin KOTLIN is a cross platform, statically types, general purpose programming language with type inference. KOTLIN is designed to interoperate fully with java but type inference allows its syntax to be more concise.KOTLIN is sponsored by JetBrains and Google through the Kotlin Foundation. Java JAVA is an Object Oriented Programming Language developed by JAMES GOSLING and colleagues at SUN MICRO SYSTEMS in 1991.The language was initially called OAK. It was developed as a full fledged programming language in which one can accomplish the same sorts of tasks and solve the similar problems that one can do in other programming languages such as BASIC,C++ etc. Using Kotlin…
-
In this tutorial, we are going to see how to use Retrofit HTTP client in your Android application. Retrofit is an awesome type-safe HTTP client for Android and Java built by awesome folks at Square. Retrofit makes it easy to consume JSON or XML data which is parsed into Plain Old Java Objects (POJOs). So, without any further delays, lets get started by first creating a new project in Android Studio. 1.Go to File ⇒ New Project. When it prompts you to select the default activity, select Empty Activity and proceed. 2.Open build.gradle in (Module:app) and add Retrofit, Picasso, RecyclerView, Gson dependencies like this. dependencies { ... compile "com.android.support:cardview-v7:26.1.0" compile…
-
Basically, the one screen of mobile is knows as Activity in Android. Android Activity Lifecycle is controlled by 7 methods which are included in android.app.Activity class. The android Activity is the subclass of ContextThemeWrapper class. An activity is the single screen in android. It is like window or frame of Java. By the help of activity, you can place all your GUI components or widgets in a single screen. The activity goes from one state to another which is known as activity lifecycle. Methods Of Activity Lifecycle Method Description onCreate called when activity is first created. onStart called when activity…