assets/src/RubotoService.java in ruboto-1.1.2 vs assets/src/RubotoService.java in ruboto-1.2.0

- old
+ new

@@ -7,11 +7,28 @@ public class THE_RUBOTO_CLASS THE_ACTION THE_ANDROID_CLASS { /** * Called at the start of onCreate() to prepare the Activity. */ private void preOnCreate() { - System.out.println("RubotoService onCreate(): " + getClass().getName()); - getScriptInfo().setRubyClassName(getClass().getSimpleName()); + if (!getClass().getSimpleName().equals("RubotoService")) { + System.out.println("RubotoService preOnCreate(): " + getClass().getName()); + getScriptInfo().setRubyClassName(getClass().getSimpleName()); + JRubyAdapter.setUpJRuby(this); + } + } + + private void preOnStartCommand(android.content.Intent intent) { + if (getClass().getSimpleName().equals("RubotoService")) { + System.out.println("RubotoService preOnStartCommand(): " + getClass().getName()); + scriptInfo.setFromIntent(intent); + } + } + + private void preOnBind(android.content.Intent intent) { + if (getClass().getSimpleName().equals("RubotoService")) { + System.out.println("RubotoService preOnBind(): " + getClass().getName()); + scriptInfo.setFromIntent(intent); + } } THE_METHODS }