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 8143321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:05:34+00:00 2026-06-06T13:05:34+00:00

I have login- and game-layout in my activity. I would use AndroidAnnotations in my

  • 0

I have login- and game-layout in my activity. I would use AndroidAnnotations in my project, because that is cool! but I don’t know, how to change correctly the login-layout to game-layout.

Initialization of login-layout I would do with the annotation:

@EActivity(R.layout.login)
public class MyActivity extends Activity {

May be that is a failure approche to change the layouts inside of activity? What is the clean way?

  • 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-06-06T13:05:35+00:00Added an answer on June 6, 2026 at 1:05 pm

    No… this is how android annotations is expected to be used. You don’t have a syntax error, if that’s what you are asking.

    There’s not much more I can do than to direct you to the installation page, which can be found below.

    Eclipse Project Configuration


    Just use two separate Activitys for the login and game. When the user logs in, you will launch the new Game activity with,

    startActivity(this, GameActivity.class);
    

    This is far preferred to remaining into the current activity and simply swapping the layouts in and out. An activity is supposed to be focused on a particular aspect that you are trying to achieve. The game and login are completely different in their functionality, so it definitely makes sense to separate their functionality into separate activitys.

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

Sidebar

Related Questions

Hi I want to create a WCF service that have login method, which is
Basically, I currently have login/ in urls.py redirect to the django.contrib.auth.views.login and that seems
I have a login setup on a site that stores login information in PHP's
I have developed a little game using XNA 4.0 and C# (new Project->Windows Game
I am making a battleship game for a project. While I have completed the
I have 2 Activities in my client/server project: 1 - login (openning connection) 2
There are some HTML based games (ie bootleggers.us) that have a simple login form
Suppose I have a game that can be played by 2, 3 or 4
I have a registration page that receives tokens ad parse them and login the
I have created a simply login screen for a test game and it plays

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.