Facebook Twitter Instagram
    DeepCrazyWorld
    Facebook Twitter Instagram Pinterest YouTube
    • FLUTTER
      • FLUTTER APP
        • QRCode
        • Quiz App
        • Chat GPT
        • PDF App
        • News App
        • Fitness App
        • Weather App
        • BMI Calculator
        • GAME APP
        • Ecommerce App
        • wallpaper App
        • Finance app
        • Chat App
        • Wallet App
        • Taxi App
        • Quran app
        • Music player app
      • FLUTTER UI
        • Splash Screen
        • Onboarding Screen
        • Login Screen
        • Card Design
        • Drawer
    • PROJECT
      • Android Projects
      • College Projects
      • FLUTTER APP
      • Project Ideas
      • PHP Projects
      • Python Projects
    • SOURCE CODE
    • ANDROID
      • ANDROID APP
      • GAME APP
      • ANDROID STUDIO
    • MCQ
      • AKTU MCQ
        • RPA MCQ
        • COA MCQ
        • HPC MCQ
        • SPM MCQ
        • Renewable Energy All MCQ
        • Data Compression MCQ
        • Data Structure MCQ
        • Digital Image Processing MCQ
        • Software Engineering MCQ
        • Machine Learning MCQ
        • Artificial Intelligence MCQ
      • D PHARMA MCQ
        • Pharmaceutics – I MCQ
        • Pharmacognosy MCQ
        • Pharmaceutical Chemistry MCQ
        • Biochemistry and Clinical Pathology MCQ
        • Human Anatomy and Physiology MCQ
        • Heath Education and Community Pharmacy MCQ
    • INTERVIEW QUESTIONS
      • Flutter Interview Questions
      • INTERVIEW QUESTIONS
      • Python Interview Questions
      • Coding ninjas solution
    • MORE
      • WORDPRESS
        • SEO
        • TOP 10 WORDPRESS THEME
      • PRODUCTIVITY
      • Program
      • QUOTES
    DeepCrazyWorld
    Home»ANDROID APP»Create Spinner Bottle game App with Source code using android studio
    ANDROID APP

    Create Spinner Bottle game App with Source code using android studio

    DeepikaBy DeepikaDecember 3, 2019Updated:January 19, 2022No Comments3 Mins Read

    Design Spinner Bottle Game With Source Code Step wise by using Android Studio and download this Spinner Bottle game app for Design First Open Android Studio .

    A simple Bottle Spinner Game app For Entertainment nothing more nothing less. deepcrazyworld.com is an online learning.
    deepcrazyworld is an online learning Platform with the help of various videos and blogs.
    with free courses, all blogs are high demanded in today’s and explore your knowledge.
    Search for deepcrazyworld.com in online with free .

    1.Open Android Studio

    2. Select Empty Project With min Sdk Version 15

    3. Put This given XML Source Code for Designing Purpose .

    4. Place This Given Main Activity code for Processing

    5. Download Images For Spinner Bottle need Two Images Bottle And Surface Image

    6. There is No Change in Manifest File .

    7. After Download This Zip File , Than Require Unzip This File .

    Table of Contents

    Toggle
    • Download Images Click Here >>>>>>>>
    • Visit my Google Play Store Apps Click on this Link
    • Download Complete Project Click Here >>>>>
    • build.gradle
    • activity_main.xml
    • MainActivity.java
    • AndroidManifest.xml
    • Spinner Bottle YouTube Video
        • How To Published App on Google Play Store Visit my YouTube Video . For More Videos Visit My Channel TECHNIC DUDE
    • CLICK ME YOU-TUBE VIDEO
    • Visit on Play Store For This Spinner Bottle Game App click Me>>>>>>>>>>
    • READ MORE

    Download Images Click Here >>>>>>>>


    Visit my Google Play Store Apps Click on this Link

    Visit For Browser 5 G App On google Play Store>>>>>>>>>>

    This My Creative App Click on DeepCrazyWorld App>>>>>>>>>>>

    To Solve Your Math Calculation Math Solve App >>>>>

    Spinner Bottle Game App>>>>>>>>>>>>>>>>>>>>>

    This News Nation App News7on>>>>>>>>>>>>>>

    Shopping App ZampKart >>>>>>>>>>>>>>>>>>>

    Math Equation Solving App>>>>>>>>>>>>>>>>>>>

    Event Basis Picture LovingCaring143 App>>>>>>>>>

    Here This Blogger Site App to Explore Your Knowledge Download all this Apps By Google Play Store My Blogger Site App Download And InstallParagraph

    Click on Link CrazyCoder>>>>>>>>>>
    Flying Fish Video Game Visit Here >>>>>>

    Download Complete Project Click Here >>>>>

    8. Run The Project .

    build.gradle

      apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 29
        buildToolsVersion "29.0.2"
        defaultConfig {
            applicationId "com.deep.spinnerbottle"
            minSdkVersion 15
            targetSdkVersion 29
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.appcompat:appcompat:1.0.2'
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test:runner:1.1.1'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    }
    

    activity_main.xml

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/flor"
        tools:context=".MainActivity">
    
        <ImageView
            android:id="@+id/bottle"
            android:layout_width="300dp"
            android:layout_height="300dp"
            android:src="@drawable/mybottle"
            android:layout_centerInParent="true"
            android:onClick="spinBottle"/>
    
    </RelativeLayout>

    MainActivity.java

    package com.deep.spinnerbottle;
    
    import android.os.Bundle;
    import android.view.View;
    import android.view.animation.Animation;
    import android.view.animation.RotateAnimation;
    import android.widget.ImageView;
    
    import androidx.appcompat.app.AppCompatActivity;
    
    import java.util.Random;
    
    public class MainActivity extends AppCompatActivity {
        private ImageView bottle;
        private Random random = new Random();
        private int lastDir;
        private boolean spinning;
    
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
    
            bottle = findViewById(R.id.bottle);
        }
    
        public void spinBottle(View v) {
            if (!spinning) {
                int newDir = random.nextInt(1800);
                float pivotX = bottle.getWidth() / 2;
                float pivotY = bottle.getHeight() / 2;
    
                Animation rotate = new RotateAnimation(lastDir, newDir, pivotX, pivotY);
                rotate.setDuration(2500);
                rotate.setFillAfter(true);
                rotate.setAnimationListener(new Animation.AnimationListener() {
                    @Override
                    public void onAnimationStart(Animation animation) {
                        spinning = true;
                    }
    
                    @Override
                    public void onAnimationEnd(Animation animation) {
                        spinning = false;
                    }
    
                    @Override
                    public void onAnimationRepeat(Animation animation) {
    
                    }
                });
    
                lastDir = newDir;
                bottle.startAnimation(rotate);
            }
        }
    }

    AndroidManifest.xml

    <img loading=
    Android Manifest Pic
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.deep.spinnerbottle">
    
        <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
            <activity android:name=".MainActivity">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    
    </manifest>

    Spinner Bottle YouTube Video

    How To Published App on Google Play Store Visit my YouTube Video . For More Videos Visit My Channel TECHNIC DUDE

    CLICK ME YOU-TUBE VIDEO

    Visit on Play Store For This Spinner Bottle Game App click Me>>>>>>>>>>

    <img loading=
    PUBLISHED ON PLAY STORE

    READ MORE

    Share. Facebook Twitter LinkedIn WhatsApp Telegram Pinterest Reddit Email
    Previous ArticleAndroid Game Development tutorial for biggners | source code free
    Next Article Color Picker android app with Source code using android studio

    Related Posts

    Music player app in flutter and dart using node.js music API

    ANDROID APP 2 Mins Read

    How to create Simple movie app with Source code 2023

    ANDROID APP 4 Mins Read

    Scratch to Win Android Earning App (Admob, FB Ads, StartApp, Unity Ads)

    ANDROID APP 2 Mins Read

    Covid-19 Tracker App(Coronavirus Tracker) source code 2023

    ANDROID APP 3 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Implementing a Dynamic FAQ Screen UI in Flutter Using ExpansionTile March 29, 2025
    • Creating an Instruction UI Screen in Flutter Application March 29, 2025
    • Animated Backgrounds in Flutter: A Complete Guide March 15, 2025
    • How to make Diary App using flutter stepwise using getx August 31, 2024
    • How to Create Music Player UI screen with fully functional in flutter August 30, 2024
    • How to make ListView Builder Ui in flutter with Source Code August 29, 2024
    • Create a TabBar View in flutter with fully functional stepwise August 28, 2024
    • How to create TabBar view in flutter with source code step wise August 27, 2024
    • How to make Heart rate measure app with Flutter stepwise August 26, 2024
    • How to make ChatGpt App in flutter with source code Stepwise August 25, 2024
    Facebook Twitter Instagram Pinterest YouTube
    • About
    • Contact
    • Disclaimer
    • Privacy Policy
    Copyright by DeepCrazyWorld © 2025

    Type above and press Enter to search. Press Esc to cancel.