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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:33:16+00:00 2026-06-05T03:33:16+00:00

I want to open EditTextPreference when I open Preference screen. I try mLabel =

  • 0

I want to open EditTextPreference when I open Preference screen. I try

mLabel = (EditTextPreference) findPreference("labelKey");
mLabel.getDialog().show() // this does not work. getDialog return null
mLable.getEditText().requestFocus(); // this does not work too.

How can I do this?

  • 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-05T03:33:18+00:00Added an answer on June 5, 2026 at 3:33 am

    If I understand you right, you need to open a single preference inside your preference screen as soon as you open your preferences (??).

    You might want to have a look at this: https://stackoverflow.com/a/4869034/668240

    // the preference screen your item is in must be known
    PreferenceScreen screen = (PreferenceScreen) findPreference("pref_key");
    
    // the position of your item inside the preference screen above
    int pos = findPreference("abc").getOrder();
    
    // simulate a click / call it!!
    screen.onItemClick( null, null, pos, 0 ); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want open a path to vim from Screen's copy-mode by Ctrl-A f similarly
I want to open a file for reading. However, in the context of this
I want to open info page through this link on uiwebview http://www.facebook.com/TinRoofNashville?sk=info But on
I want to open a pop-up window on click of 'link', then show some
**i want to open open-in-jd-gui.sh this file in ubuntu terminal or execute in eclipse.i
I want to open-source my notes similarly as at DjangoBook . I have not
I want open xls file in iPad which contain macro. This macro are security
I want open pdf file directly without asking open,save options(prompt window).In this temppath is
I want open a window and then does something after it finishes loading, is
I want to open the Settings-> Sound & Display-> Phone Ringtones screen from my

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.