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:

public class QFlashlightWidgetProvider extends AppWidgetProvider {

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

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

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

        appWidgetManager.updateAppWidget(appWidgetIds, views);

class QFlashlightWidgetReceiver

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

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),

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


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

<receiver android:name="QFlashLightWidgetReceiver">
           <action android:name="COM_FLASHLIGHT"></action>
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)