I've seen Widget for turning on/off camera flashlight in android but for some unknown reasons its not working I would really appreciate it if someone could help me. I've been trying for over 2 days.There isn't any error in eclipse.

QFlashlightWidgetProvider class:

Code:
public class QFlashlightWidgetProvider extends AppWidgetProvider {

@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
                int[] appWidgetIds) {

        Intent receiver = new Intent(context, QFlashlightWidgetProvider.class);
        receiver.setAction("COM_FLASHLIGHT");
        receiver.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds);
        PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, receiver, 0);

        RemoteViews views = new RemoteViews(context.getPackageName(),
                        R.layout.qflashlight_appwidget);
        views.setOnClickPendingIntent(R.id.flashtoggle, pendingIntent);

        appWidgetManager.updateAppWidget(appWidgetIds, views);

}
    }
class QFlashlightWidgetReceiver

Code:
class QFlashlightWidgetReceiver extends BroadcastReceiver {
private static boolean isLightOn = false;
private static Camera camera;

@Override
public void onReceive(Context context, Intent intent) {
        RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.qflashlight_appwidget);


        AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
        appWidgetManager.updateAppWidget(new ComponentName(context,     QFlashlightWidgetProvider.class),
                                                                         views);



      Toast.makeText(context, "Turning Cam On", Toast.LENGTH_SHORT).show();



}
    }
Manifest.xml

Code:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
Code:
<meta-data android:name="android.appwidget.provider"
                    android:resource="@xml/qflashlight_appwidget_info" />
</receiver>

<receiver android:name="QFlashLightWidgetReceiver">
    <intent-filter>
           <action android:name="COM_FLASHLIGHT"></action>
    </intent-filter>
 </receiver>
P.S: I removed the code for turning the cam on/off and put a toast message but even the toast message isn't showing.The widget should display a toast message when clicked(I will put the code to turn on the flash when i succeed in making it display a toast)