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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:51:32+00:00 2026-06-12T18:51:32+00:00

I have an activity and it has theme as dialog . inthis activity, 10

  • 0

I have an activity and it has theme as dialog .
inthis activity, 10 edit text’s are there. for one edit box i am unable to set text to the edit box.

public void onCreate(Bundle savedInstanceState) {

    this.requestWindowFeature(Window.FEATURE_NO_TITLE);     
    is_tablet=SharedVariables.sharedPrefDate.getBoolean("isTablet", false);
    if(!is_tablet){
        super.setTheme(android.R.style.Theme_Black_NoTitleBar);
    }
    //overridePendingTransition(R.anim.slide_bottom_to_top,0);
    super.onCreate(savedInstanceState);
    activity=UpdateCasePersonAddressScreen.this;
    setContentView(R.layout.update_person_address_screen);



    //allocating memory to objBLAddCasePersonScreenOperations
    objBLAddPersonAddressScreenOperations=new BLAddUpdatePersonAddressScreenOperations();
    objBLCommonOperations=new BLCommonOperations(); 
    getAllIds();


    //objPersonAddress=new clsPersonAddress();
    bundle = getIntent().getExtras();

    //code to get all objects using Bundle from previous activity
    if(bundle!=null){

        objPersonAddress = (clsPersonAddress) bundle.getParcelable("clsPersonAddress");
        System.out.println("from Extras");
        bundle=null;
    }        



    initTextFields();
    inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    /* if (inputMethodManager != null) {
        inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
    }*/
}
public void initTextFields(){

    updatePersonAddressTitleEditText.setText(objPersonAddress.getAddressTitle());
    updatePersonAddressMemoEditText.setText(objPersonAddress.getAddressMemo());
    updatePersonAddressNameEditText.setText(objPersonAddress.getAddressName());
    updatePersonAddressBusinessNameEditText.setText(objPersonAddress.getAddressBusinessName());
    updatePersonAddressWorkPhoneEditText.setText(objPersonAddress.getAddressWorkPhone());
    updatePersonAddressHomePhoneEditText.setText(objPersonAddress.getAddressHomePhone());
    updatePersonAddressMobilePhoneEditText.setText(objPersonAddress.getAddressMobilePhone());
    updatePersonAddressAddressLine1EditText.setText(objPersonAddress.getAddressLine1());
    updatePersonAddressAddressLine2EditText.setText(objPersonAddress.getAddressLine2());
    updatePersonAddressCityEditText.setText(objPersonAddress.getAddressCity());

    System.out.println("objPersonAddress.getAddressState()))))))))))))))))))))))))))))))))))"+objPersonAddress.getAddressState());

    updatePersonAddressStateEditText.setText(objPersonAddress.getAddressState().toString());//setText(objPersonAddress.getAddressState(), TextView.BufferType.EDITABLE);
    System.out.println("updatePersonAddressStateEditText text is now is:"+updatePersonAddressStateEditText.getText().toString()+"null check:"+updatePersonAddressStateEditText.toString());
    System.out.println("below objPersonAddress.getAddressState()))))))))))))))))))))))))))))))))))"+objPersonAddress.getAddressState());

    updatePersonAddressZipEditText.setText(objPersonAddress.getAddressZip());
    updatePersonAddressCountryEditText.setText(objPersonAddress.getAddressCountry());
}

can any body help me in this issue.For any help 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-06-12T18:51:33+00:00Added an answer on June 12, 2026 at 6:51 pm

    Android native:

    String text = "Example";
    EditText edtText = (EditText) findViewById(R.id.edtText);
    edtText.setText(text);`
    

    Look! EditText accept only String values, if necessary convert to String.

    if int, double, long value, do:

    String.value(value);
    

    Exemple:

    int i = 5;
    edtText.setText(String.value(i));
    

    Android annotations:

    @ViewById
    EditText edtText;
    

    To set:

    @UiTread
    void setText(){
        edtText.setText("Text");
    }
    

    To call:

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        
        this.setText();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an activity that has the following set as theme: android:theme=@android:style/Theme.Dialog However, there
I have an activity, that has in manifest: android:theme=@android:style/Theme.Dialog When I start it, it
I have an activity with ListView that has: android:theme=@android:style/Theme.Dialog in Manifest. When I open
I am using an activity with the dialog theme set, and I want it
I have an Activity which has an 'OK' button. And I have an 'Edit'
I have an activity that has an EditText. After a user enters their text,
I have an activity that has a TabHost containing a set of TabSpecs each
I have two activities. One activity has the main game and the other activity
I have an activity that has properties that look something like this (they're set
I have a activity which has a button and 2 autocomplete widget. for the

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.