This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
import appindicator | |
import bs4 | |
import datetime | |
import glib | |
import gtk | |
import logging | |
import pynotify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleActivity extends ListActivity { | |
[...] | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
[...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent data = new Intent(); | |
[...] | |
if (getParent() == null) { | |
setResult(Activity.RESULT_OK, data); | |
} else { | |
getParent().setResult(Activity.RESULT_OK, data); | |
} | |
finish(); |
NewerOlder