Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3878206
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:35:11+00:00 2026-05-19T22:35:11+00:00

Is it possible to load activities from an external dex-file? I’m thinking of some

  • 0

Is it possible to load activities from an external dex-file? I’m thinking of some plug-in style-architecture, where an application can be extended by downloading dex-files with activities and classes containing extra functionality.

I’ve managed to load and invoke methods on a class from a downloaded dex-file using DexClassLoader and reflection. But could I somehow use this technique to download and present an Activity? Is it possible to register this new Activity programmatically so that I can invoke it using an Intent?

I know that it’s possible (and the recommended way is) to install the other Activity through the normal procedure with an APK, and then load it from my main activity using Intents or simply update the installed application, but I want to extend my already installed application by downloading some extra classes and execute everything in the same VM, same sandbox.

Hm, let me know if you don’t understand what I mean, cause this got a bit messy.. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:35:12+00:00Added an answer on May 19, 2026 at 10:35 pm

    Hello, Is it possible to load activities from an external dex-file?

    Not exactly. Activities must be pre-defined in the application’s manifest.

    You can try to use the approach that JRuby and Ruboto use, where there is one activity in the manifest that gets repurposed with different implementations. I haven’t dissected their approach fully, but I am under the impression that their activity forwards events to a JRuby script. In your case, the activity would forward events to some other class loaded from the DEX file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to load activities from an external dex-file? I'm thinking of some
Is it possible to load new lines from a text file to variables in
Is it possible to load content from an external page (not relative) into div
Is it possible to load an external HTML file into a variable and then
Is it possible to load a swf file after application creation in flex? If
Possible Duplicate: load content from external page into another page using ajax/query May be
Is it possible to load a file from a client computer into a table
Is it possible to load images from an array in jQuery? The array looks
Is it possible to load a single plugin from outside the cake root using
In modern processors it is possible to load a register from memory and then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.