Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid, App doesn't start
    primarykey
    data
    text
    <p>as the name suggested, my app doesn't startup and debugger is focusing on this line. The app doesn't create the UI and debugger is focusing on one particular line.</p> <pre><code>public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); enabled = (CheckBox)findViewById(R.id.enabled); enabled.setOnCheckedChangeListener (this); flat = (Button)findViewById(R.id.flat); flat.setOnClickListener(this); bass_boost = (SeekBar)findViewById(R.id.bass_boost); bass_boost.setOnSeekBarChangeListener(this); bass_boost_label = (TextView) findViewById (R.id.bass_boost_label); sliders[0] = (SeekBar)findViewById(R.id.slider_1); slider_labels[0] = (TextView)findViewById(R.id.slider_label_1); //More sliders eq = new Equalizer (0, 0);//&lt;----------------------------This line if (eq != null) { eq.setEnabled (true); int num_bands = eq.getNumberOfBands(); num_sliders = num_bands; short r[] = eq.getBandLevelRange(); min_level = r[0]; max_level = r[1]; for (int i = 0; i &lt; num_sliders &amp;&amp; i &lt; MAX_SLIDERS; i++) { int[] freq_range = eq.getBandFreqRange((short)i); sliders[i].setOnSeekBarChangeListener(this); slider_labels[i].setText (formatBandLabel (freq_range)); } } for (int i = num_sliders ; i &lt; MAX_SLIDERS; i++) { sliders[i].setVisibility(View.GONE); slider_labels[i].setVisibility(View.GONE); } bb = new BassBoost (0, 0); if (bb != null) { } else { bass_boost.setVisibility(View.GONE); bass_boost_label.setVisibility(View.GONE); } updateUI(); } </code></pre> <p>How can I start the app properly?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload