flash mode torch not found in motorola fire xt-530
<p>I am trying to create a flash torch app for my motorola fire xt-530.
check this code which responds to a toggle button.</p>

<pre><code>public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
        if (isChecked) {
            if (getApplicationContext().getPackageManager().hasSystemFeature(
                    PackageManager.FEATURE_CAMERA_FLASH)) {
                camera = Camera.open();
                params = camera.getParameters();
                List&lt;String&gt; flashModes = params.getSupportedFlashModes();
                if (flashModes == null) {
                    Toast.makeText(getApplicationContext(), "No Flash Found",
                            Toast.LENGTH_SHORT).show();
                } else {
                    camera.startPreview();
                    if (flashModes.contains(Parameters.FLASH_MODE_TORCH)) {
                        Toast.makeText(getApplicationContext(),
                                "Torch Mode Found", Toast.LENGTH_SHORT).show();
                        params.setFlashMode(Parameters.FLASH_MODE_TORCH);
                        camera.setParameters(params);
                        camera.takePicture(null, null, null);
                    } else {
                        Toast.makeText(getApplicationContext(),
                                "Torch Mode Not Found", Toast.LENGTH_SHORT).show();
                    }
                }
            } else {
                Toast.makeText(getApplicationContext(), "Not Available",
                        Toast.LENGTH_SHORT).show();
            }
        } else {
            camera.stopPreview();
            camera.release();
            Toast.makeText(getApplicationContext(), "Not Checked",
                    Toast.LENGTH_SHORT).show();
        }
</code></pre>

<p>which toasts torch mode not found. not rooted.
please help me.</p>
