title: Alarm Manager using clock
body: <pre><code>class MyHandler extends Handler {
  
          @Override
          public void handleMessage (Message msg){
              Bundle bundle = msg.getData();
              timeHour = bundle.getInt(MyConstants.HOUR);
              timeMinute = bundle.getInt(MyConstants.MINUTE);
              textView1.setText(timeHour + ":" + timeMinute);
      *        setAlarm();
          }
      }
      @TargetApi(Build.VERSION_CODES.KITKAT)
      private void setAlarm(){
          Calendar calendar = Calendar.getInstance();
          calendar.set(Calendar.HOUR_OF_DAY, timeHour);
          calendar.set(Calendar.MINUTE, timeMinute);
      *    alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);
      }
  </code></pre>
  
  <p>getting error of i will making * this on lines</p>
  
  <pre><code>   java.lang.NoSuchMethodError: android.app.AlarmManager.setExact 
  at jawad.alm.MainActivity.setAlarm(MainActivity.java:87)         
   at jawad.alm.MainActivity.access$400(MainActivity.java:24)      
    at jawad.alm.MainActivity$MyHandler.handleMessage(MainActivity.java:79) 
  at android.os.Handler.dispatchMessage(Handler.java:99)
  </code></pre>
  
  <p>Help me and thanks</p>