| 1 |
package ${packageName}; |
| 2 |
|
| 3 |
import android.app.Activity; |
| 4 |
import android.content.Intent; |
| 5 |
import android.os.Bundle; |
| 6 |
<#if applicationPackage??> |
| 7 |
import ${applicationPackage}.R; |
| 8 |
</#if> |
| 9 |
|
| 10 |
/** |
| 11 |
* Example shell activity which simply broadcasts to our receiver and exits. |
| 12 |
*/ |
| 13 |
public class ${stubActivityClass} extends Activity { |
| 14 |
@Override |
| 15 |
protected void onCreate(Bundle savedInstanceState) { |
| 16 |
super.onCreate(savedInstanceState); |
| 17 |
|
| 18 |
Intent i = new Intent(); |
| 19 |
i.setAction("${packageName}.SHOW_NOTIFICATION"); |
| 20 |
i.putExtra(${receiverClass}.CONTENT_KEY, getString(R.string.title)); |
| 21 |
sendBroadcast(i); |
| 22 |
finish(); |
| 23 |
} |
| 24 |
} |