I read a bit more and got to the point that that in phonagap plugin i can get context from:
this.ctx
Now my program compiles but it crashes...
my code is pretty simple and it's inside the plugin class to check if it works directly without another class in the middle :
context= this.ctx;
Intent myIntent= new Intent(context, com.Somthing.MyAlarmService.class);
pendingIntent = PendingIntent.getService(context, 0, myIntent, 0);
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(System.currentTimeMillis());
calendar.add(Calendar.SECOND, 10);
alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);
and some of the error log
06-12 16:48:35.006: INFO/ActivityManager(67): Starting activity: Intent { cmp=com.Somthing/.MyAlarmClock }
06-12 16:48:35.297: DEBUG/dalvikvm(524): newInstance failed: no <init>()
06-12 16:48:35.377: DEBUG/AndroidRuntime(524): Shutting down VM
06-12 16:48:35.571: ERROR/AndroidRuntime(524): Caused by: java.lang.InstantiationException: com.Somthing.MyAlarmClock
any help ... :)