Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27297

Android: Allow Hyperloop to access Titanium's core Java classes

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android, Hyperloop
    • Labels:

      Description

      Summary:
      Hyperloop is unable to access the Titanium SDK's core Java classes. Hyperloop is also unable to access the Java classes of the JAR/AAR libraries included with the SDK such as the "java_websocket.jar" (except for the Google support libraries).

      We should modify Hyperloop to reference the Titanium SDK's JARs/AARs as well and not just the project's "modules" directory.

      Test:

      1. Create a Classic Titanium project.
      2. Add "hyperloop" module to "tiapp.xml".
      3. Copy the below code to the "app.js".
      4. Build and run on Android.
      5. Verify the following gets logged every second: ### Is app in foreground: true

      var tiApplicationClass = require("org.appcelerator.titanium.TiApplication");
      setInterval(function() {
      	var isInForeground = tiApplicationClass.isCurrentActivityInForeground();
      	Ti.API.info("### Is app in foreground: " + isInForeground);
      }, 1000);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code