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

Android: Hyperloop should allow access to a Java inner class within an inner class

    Details

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

      Description

      Summary:
      Hyperloop can currently access the 1st level of inner classes under a Java class, but cannot access an inner class belonging to an inner class (ie: 2 inner classes deep).

      This makes using certain Android classes such as MediaStore's 2 level deep nested classes impossible.
      https://developer.android.com/reference/android/provider/MediaStore

      Test:

      1. Create a Classic Titanium project.
      2. Add "hyperloop" module to "tiapp.xml".
      3. Copy the below code to your "app.js".
      4. Build and run on Android.
      5. Notice that an exception happens for the last line of code below.

      var mediaStore = require("android.provider.MediaStore");
       
      // This works.
      Ti.API.info("### MediaStore.ACTION_IMAGE_CAPTURE: " + mediaStore.ACTION_IMAGE_CAPTURE);
       
      // This works.
      Ti.API.info("### MediaStore.MediaColumns.DISPLAY_NAME: " + mediaStore.MediaColumns.DISPLAY_NAME);
       
      // This fails.
      Ti.API.info("### MediaStore.Images.Media.EXTERNAL_CONTENT_URI: " + mediaStore.Images.Media.EXTERNAL_CONTENT_URI);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
              • Watchers:
                2 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