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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:44:47+00:00 2026-06-06T10:44:47+00:00

I have to implement an application in which I have set small edittext for

  • 0

I have to implement an application in which I have set small edittext for input PIN number and Mobile Number. Each edit text contain 1 character at a time.
Now when I run this app, I found that for each box I need to give focus to each edittext.
So in this case is it possible to set focus in next edittext after character is entered in first and then goto third after character is entered in second.
so please help me out this

Here is layout image.

enter image description here

  • 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-06T10:44:48+00:00Added an answer on June 6, 2026 at 10:44 am
    1. implements TextWatcher on EditTexts
    

    and then when you get Edittext’s text length is 1.

    2. Change focus on other EditText using
    

    Call requestFocus() on the other EditText..

    CODE: (This code is for your understanding, It may be different on your case and your need)

    public class LoginActivity extends Activity implements TextWatcher
    {
     .
     .
     .
    
      editTextUName = (EditText) findViewById(R.id.edttextusername);
      editTextUName.addTextChangedListener(this);
      editTextPwd = (EditText) findViewById(R.id.edttextpassword);
      editTextPwd.addTextChangedListener(this);
    
    @Override
    public void afterTextChanged(Editable s)
    {
        if (s.toString().length() == 1)
        {
                  editTextPwd.requestFocus();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a school project in which I have to implement a chat application,
I have an application in which I am trying to implement ManyToMany relation between
I have an application in which a number of objects are all extending an
I am developing a small application in android in which i have few image
I have an existing asp.net c# application for which I'd like to implement a
I have a simple application that reads data in small strings from large text
I need some advice for a design which I have to implement in application.
I have one desktop application which was implemented in C#. This app uploads file
I have Spatial Selection implemented on Map in my Web Application, which selects the
we have started research on Service Broker and planning to implement in application. But

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.