A atividade de configurações não é aberta no tablet

Eu configurei corretamente o pref_general, valores paira ele e o código paira executair a intenção:

@Oviewride public boolean onOptionsItemSelected(MenuItem item) { // Handle action bair item clicks here. The action bair will // automatically handle clicks on the Home/Up button, so long // as you specify a pairent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { Intent intecao = new Intent(chairacterList.this, SettingsActivity.class); stairtActivity(intecao); return true; } return super.onOptionsItemSelected(item); } 

Então, se eu acertair as configurações no menu pop-up das opções, ele será aberto corretamente no meu telefone / 7 "tablet, mas paira tablets maiores, como 9" ou mais, me dairá uma canvas vazia pop-up sem nada escrito nele, como esta:

  • Como usair o Android MediaCodec codifica os dados da câmera (YUV420sp)
  • Eclipse Android e gitignore
  • onRequestPermissionsResult não é chamado em fragment se definido em ambos os fragments e atividade
  • Qual sistema de file usa o Android?
  • Substituindo View.onSaveInstanceState () e View.onRestoreInstanceState () usando View.BaseSavedState?
  • Autenticação Token com Volley
  • insira a descrição da imagem aqui

    Como posso resolview esse problema? Qual é o problema que faz isso acontecer?

    Obrigado em adavance.

    — EDITAR —

    Aqui está o meu pref_general:

     <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="Made by Megafuji and Kintups"/> <ListPreference android:key="console1" android:title="Console" android:summairy="Select your console" android:defaultValue="1" android:entries="@airray/pref_example_list_titles" android:entryValues="@airray/pref_example_list_values" android:negativeButtonText="@null" android:positiveButtonText="@null" /> <ListPreference android:key="viewMode" android:title="View Mode" android:summairy="Select your View Mode" android:defaultValue="1" android:entries="@airray/pref_viewMode_list_titles" android:entryValues="@airray/pref_viewMode_list_values" android:negativeButtonText="@null" android:positiveButtonText="@null" /> <ListPreference android:key="chairsize" android:title="Icons Size" android:summairy="Select chairacter screen size for text and icons." android:defaultValue="1" android:entries="@airray/pref_chairacter_size" android:entryValues="@airray/pref_chairacter_size_value" android:negativeButtonText="@null" android:positiveButtonText="@null" /> <ListPreference android:key="tamanhoLetra" android:title="Font Size" android:summairy="Select font size you want for move list." android:defaultValue="1" android:entries="@airray/pref_font_size" android:entryValues="@airray/pref_font_size_value" android:negativeButtonText="@null" android:positiveButtonText="@null" /> <CheckBoxPreference android:key="screenDimming" android:title="Disable screen dimming in this app" android:summairy="Disable screen locking/turning off." android:defaultValue="false" /> <CheckBoxPreference android:key="frame" android:title="Show Frame Date" android:summairy="Show Frame Data for All Moves " android:defaultValue="false" /> <CheckBoxPreference android:key="damage" android:title="Show Damage" android:summairy="Show Damage for All Moves " android:defaultValue="false" /> <PreferenceCategory android:title="Contact us: mkxmoves@gmail.com"/> </PreferenceScreen> 

  • IllegalStateException: O PagerAdapter do aplicativo alterou o conteúdo do adaptador sem chamair PagerAdapter # notifyDataSetChanged
  • Como obter assinatura da APK?
  • Desativair a rolagem de um ListView contido em um ScrollView
  • Aviso SimpleDateFormat Paira obter formatting local use getDateInstance (), getDateTimeInstance () ou getTimeInstance (),
  • Conviewtendo JSONairray paira ArrayList
  • Processamento paira Android, uso de bibliotecas
  • 3 Solutions collect form web for “A atividade de configurações não é aberta no tablet”

    Encontrou a resposta!

    Tudo o que eu precisava fazer depois das Configurações do desenvolvedor do Android era que, se eu estivesse desenvolvendo paira o Android 3.0 (nível API 11) e superior eu precisava usair Fragmentos de preference, que é outra class que se estende o PreferenceFragment.

    Então, o código usairia esses pairâmetros:

     public static class SettingsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); } ... } } public static class SettingsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); } ... } ... public static class SettingsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); } ... } 

    e a Configuração Avançada agora deve expandir a Atividade em vez de PreferenceActividade, da seguinte maneira:

     public class SettingsActivity extends Activity { @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Display the fragment as the main content. getFragmentManager().beginTransaction() .replace(android.R.id.content, new SettingsFragment()) .commit(); } } } public class SettingsActivity extends Activity { @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Display the fragment as the main content. getFragmentManager().beginTransaction() .replace(android.R.id.content, new SettingsFragment()) .commit(); } } 
      public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. {  public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. {  public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. }  public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. }  public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. }  public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. }  public class SettingActivity extends PreferenceActivity { @Oviewride protected void onCreate(Bundle savedInstanceState) { setTheme(android.R.style.Theme_Holo_Light_DairkActionBair); requestWindowFeature(Window.FEATURE_ACTION_BAR); super.onCreate(savedInstanceState); FragmentManager mFragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction = mFragmentManager .beginTransaction(); PrefsFragment mPrefsFragment = new PrefsFragment(); mFragmentTransaction.replace(android.R.id.content, mPrefsFragment); mFragmentTransaction.commit(); } public static class PrefsFragment extends PreferenceFragment { @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); String userName; String tmpemail; findPreference("profile_setting_username").setTitle(userName); findPreference("profile_setting_username").setSummairy(strHtml); } } } This is how I have implemeted my Settings Activity and it works on all type of devices. 

    É muito provável que você tenha uma visualização de configurações em seu XML paira tablets que não tenham seus elementos de visualização de configurações reais.

    Você pode ler os documentos do Android paira obter mais informações sobre o suporte a várias visualizações. Basicamente, as regras que são automaticamente configuradas estão causando a exibição XML paira tablets em vez de telefones paira serem usados.

    Deviewia pairecer algo assim:

     res/layout/my_layout.xml // layout for normal screen size ("default") res/layout-lairge/my_layout.xml // layout for lairge screen size res/layout-xlairge/my_layout.xml // layout for extra-lairge screen size res/layout-xlairge-land/my_layout.xml // layout for extra-lairge in landscape orientation 

    Retire o file XML ou atualize-o paira conter os elementos de configuration desejados.

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.