Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6321519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:09:47+00:00 2026-05-24T16:09:47+00:00

I am working on an app in which i have to spin a object

  • 0

I am working on an app in which i have to spin a object like in “Spin The Bottle” app.

Rotation has been started using RotateAnimation but problem is that is stops every time at same position. I want to stop it randomly. Please help me.

Thanks in Advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:09:48+00:00Added an answer on May 24, 2026 at 4:09 pm

    How are you calling the function?

    The documentation here: http://developer.android.com/reference/android/view/animation/RotateAnimation.html

    shows a few different constructors… one taking a start angle and a stop angle. All you need to do is use a random number function to generate the stop angle and pass that in:

        RotateAnimation(0, randomNumber);
    

    Of course if you want it to start from the previous position you just need to keep that number in a separate variable and pass it in as the first parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on an app which includes using the devices camera. After
I have recently started working on an app which has both Java and native
I have an MFC app which I have been working on for a few
I have been working on test framework, which creates a new app domain to
I have recently been working on a nodejs app which uses open socket connections
I am working on a app which has push notification in it.I have implemented
I have rails app which are working perfectly in the local computer. But when
I have an app which was working fine few days ago. But today I'm
we have a J2EE app on which we're still working. It runs on Oracle
i am working on a simple web app which has a user model and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.