You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitProject1/01src/net/micode/notes/ui/AlarmReceiver.java.html

49 lines
2.1 KiB

<html>
<head>
<title>AlarmReceiver.java</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #8c8c8c; font-style: italic;}
.s1 { color: #080808;}
.s2 { color: #0033b3;}
</style>
</head>
<body bgcolor="#ffffff">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#c0c0c0" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
AlarmReceiver.java</font>
</center></td></tr></table>
<pre><span class="s0">/*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
*
* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/</span>
<span class="s2">package </span><span class="s1">net.micode.notes.ui;</span>
<span class="s2">import </span><span class="s1">android.content.BroadcastReceiver;</span>
<span class="s2">import </span><span class="s1">android.content.Context;</span>
<span class="s2">import </span><span class="s1">android.content.Intent;</span>
<span class="s2">public class </span><span class="s1">AlarmReceiver </span><span class="s2">extends </span><span class="s1">BroadcastReceiver {</span>
<span class="s1">@Override</span>
<span class="s2">public void </span><span class="s1">onReceive(Context context, Intent intent) {</span>
<span class="s1">intent.setClass(context, AlarmAlertActivity.</span><span class="s2">class</span><span class="s1">);</span>
<span class="s1">intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);</span>
<span class="s1">context.startActivity(intent);</span>
<span class="s1">}</span>
<span class="s1">}</span>
</pre>
</body>
</html>