Sha256: 9f1e8b23da52c8c6c3ec1698bc1032f0e4298d1740852d3fc691029b806e8d7c
Contents?: true
Size: 835 Bytes
Versions: 4
Compression:
Stored size: 835 Bytes
Contents
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); } }
Version data entries
4 entries across 4 versions & 1 rubygems