Posts

Showing posts from May, 2025

๐ŸŽฏ Retrofit เคธे API Call เค•ैเคธे เค•เคฐें – Android Studio เคฎें (Java เค•े เคธाเคฅ Step-by-Step เค—ाเค‡เคก)

  ๐Ÿ“ เคชเคฐिเคšเคฏ (Introduction) เค†เคœ เค•े เคฆौเคฐ เคฎें เคฒเค—เคญเค— เคนเคฐ Android App เค•ो เค•िเคธी เคจ เค•िเคธी API เคธे เคกेเคŸा เค•ी เคœ़เคฐूเคฐเคค เคนोเคคी เคนै — เคœैเคธे เคฒॉเค—िเคจ, เคฐเคœिเคธ्เคŸ्เคฐेเคถเคจ, เคฏा JSON เคกेเคŸा เคซेเคš เค•เคฐเคจा। Retrofit เคเค• เคฒोเค•เคช्เคฐिเคฏ HTTP เค•्เคฒाเค‡ंเคŸ เคนै เคœिเคธे Android เคฎें API เค•ॉเคฒ्เคธ เค•े เคฒिเค เค‡เคธ्เคคेเคฎाเคฒ เค•िเคฏा เคœाเคคा เคนै। เค‡เคธ เคฒेเค– เคฎें เค†เคช เคธीเค–ेंเค—े เค•ि Retrofit เค•ा เค‰เคชเคฏोเค— เค•เคฐเค•े Android เคฎें API เค•ॉเคฒ เค•ैเคธे เค•เคฐें , Java เคญाเคทा เค•े เคธाเคฅ। ๐Ÿ”ง เค†เคตเคถ्เคฏเค•เคคा (Prerequisites) Android Studio Installed Basic knowledge of Java & XML เคเค• API Endpoint (เค†เคชเค•ा เคฏा เคซेเค• JSON API) ๐Ÿš€ Step 1: Retrofit เคฒाเค‡เคฌ्เคฐेเคฐी เคœोเคก़ें เคธเคฌเคธे เคชเคนเคฒे เค…เคชเคจी build.gradle (app level) เคซ़ाเค‡เคฒ เคฎें Retrofit เค•ी dependency เคœोเคก़ें: gradle implementation 'com.squareup.retrofit2:retrofit:2.11.0' implementation 'com.squareup.retrofit2:converter-gson:2.11.0' Sync Gradle เค•เคฐเคจे เค•े เคฌाเคฆ เค†เคช Retrofit เค•ा เค‡เคธ्เคคेเคฎाเคฒ เค•เคฐ เคธเค•เคคे เคนैं। ๐Ÿ› ️ Step 2: เคฎॉเคกเคฒ เค•्เคฒाเคธ (Model Class) เคฌเคจाเคं เคฎाเคจ เคฒीเคœिเค เคนเคฎाเคฐी API เคฏเคน JSON เคกेเคŸा เคฆेเคคी เคนै: json { "name": "Rehan Khan", "email": rehan@gmail.com" } เค‡เคธเค•े เคฒिเค เคฎॉ...

How to create React JS application

                                                                    NODE JS * Node JS Install //Check on powercell *  node --version * npm --version * react dev tools install * Visual Studio Extension(thunder client, ES7 React,bracket,auto rename,live server,prettier) * npx create-react-app my-app * cd my-app * npm start

BASIC CORE JAVA INTERVIEW QUESTIONS AND ANSWERS

                                CORE JAVA 1. WHAT IS JAVA:-                                     A programming language created in 1995 by James Gosling, now owned by Oracle, is secure, fast, and powerful. It supports multi-paradigm development, and it has huge community support. It is used to develop mobile applications, desktop applications, Web applications, Web servers, Games, and Database connections. It runs on more than 3 billion devices. 2. HOW IS A JAVA PROGRAM EXECUTED:-                source code => Compiler => bytecode(.class file) => JVM => Machine code (010100..) 3. HOW IS JAVA PLATFORM INDEPENDENT:-             source code => compiler(Java code cane be written once and run anywhere) => bytecode(.class file) this is...

Git And GitHub

Image
                                                    Git AnD GitHub *  Git:-             A Version Control System is a tool for tracking code changes. Git is a version control system.  1. Free & Open Source 2. Fast & Scalable  3. Track the history 4. Collaborate * Github:-             The website that allows developers to store and manage their code using Git. 1. Folder(Repository) 2. Create a new repository: firstproject 3. Make our first commit * Setting Up Git:-(git-scm.com link)     1. Visual Studio Code     2. Windows(Git Bash)     3. Mac(Terminal) * Configuring Git:- 1. git config-- global user. name "My name" 2. git config-- global user.email "My email" 3. git config-- list * Clone & Status:- 1. Clone- Cloning the repository on our ...