Sha256: 392dd7e59e6a1da959365febe4f7fee40182a601d42cfca357ea9692337acaff
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
package THE_PACKAGE; import org.ruboto.JRubyAdapter; 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)) { loadScript(); scriptLoaded = true; } else { // FIXME(uwe): What to do if the Ruboto Core platform is missing? } } super.onReceive(context, intent); } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruboto-0.8.0 | assets/src/InheritingBroadcastReceiver.java |
ruboto-0.7.0 | assets/src/InheritingBroadcastReceiver.java |