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

  • Home
  • SEARCH
  • 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 747445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:12:20+00:00 2026-05-14T14:12:20+00:00

I am implementing one application gust i am adding validations in login page implemented

  • 0

I am implementing one application gust i am adding validations in login page implemented then two fields required username and password button login i am applying validations then focus are not getting then set focus in unfilled edittext

>

 if(Username.contentEquals("")) {
    > Toast.makeText(LBS.this, "Please enter
    > username ",Toast.LENGTH_SHORT).show(); 
    > } else { if( pwd.contentEquals("")) 
    > Toast.makeText(LBS.this, "Please enter
    > password ",Toast.LENGTH_SHORT).show();
    > else
    >             try { ........................... }

not filling username then filling password then username entered some toast displayed fine focus are entered in username edittext this is the problem how can implemented focus in unfilled username

  • 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-14T14:12:21+00:00Added an answer on May 14, 2026 at 2:12 pm

    You should be able to use requestFocus after you’ve come back from the Toast.

    For example, if you’ve got an editText object called username, you SHOULD be able to add a line like

    username.requestFocus();

    But I’m having some problem, right now, making that work just right. In my emulator, the edittext I specify appears to have focus (blinking cursor) but the next field also has a blinking cursor and is where the next key strokes go. So there may need to be some extra bit of code before/after the requestFocus call.

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

Sidebar

Related Questions

I am implementing one application some fields are edittext in edittext clicking open mobile
i am implementing one graph related app. In that when application start i am
I have two Java interfaces and one implementing class. (I have used Eclipse to
I am implementing one iphone application in which i want to find direction of
We are implementing one web based application in iPhone. if i answered the incoming
I have a COM class CMyCOMServer implementing IMyInterface in one application, both with correct
I am implementing one application related to getting download files info. Based on my
I am implementing one application related to mailing sever. As for my requirment,i want
A fundamental idea in implementing a single page application with Knockout and Upshot is
Can any one get me idea in implementing the spotlight search inside application for

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.