Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
51 changed files
with
80 additions
and
1,303 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
package THE_PACKAGE; | ||
|
||
import org.ruboto.JRubyAdapter; | ||
import org.ruboto.ScriptLoader; | ||
|
||
public class InheritingBroadcastReceiver extends org.ruboto.RubotoBroadcastReceiver { | ||
private boolean scriptLoaded = false; | ||
|
||
public InheritingBroadcastReceiver() { | ||
super("sample_broadcast_receiver.rb"); | ||
if (JRubyAdapter.isInitialized()) { | ||
scriptLoaded = true; | ||
} | ||
} | ||
|
||
public void onReceive(android.content.Context context, android.content.Intent intent) { | ||
if (!scriptLoaded) { | ||
if (JRubyAdapter.setUpJRuby(context)) { | ||
ScriptLoader.loadScript(this); | ||
scriptLoaded = true; | ||
} else { | ||
// FIXME(uwe): What to do if the Ruboto Core platform is missing? | ||
} | ||
} | ||
super.onReceive(context, intent); | ||
} | ||
|
||
} |
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.