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

  • Home
  • SEARCH
  • 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 8175371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:45:22+00:00 2026-06-06T22:45:22+00:00

I am writing a blackberry application – after the application has started I need

  • 0

I am writing a blackberry application – after the application has started I need to get a .class file(or maybe something else like a .COD file?) from a database(I will probably have to create a web page from which to get the file) and then instantiate it and invoke its methods… Can anybody help me? Please?!?

The point is to allow students to get code on their phones and see what a method would return. A teacher would write a simple programming method that returns some integers. The students need to be able to get that method into the application. They can see the code and enter what they would expect the method to return. Then they need to be able to run the method so as to be able to see what the method returns…

Basically I want to be able to unit test some code that isn’t on my blackberry yet…

I saw an advert for an app which does something similar… How can I do this:
.net for BlackBerry (C and VB.NET)
If you are learning ASP.NET, C# or Visual Basic.NET, then this application allows you type .NET code onto
your BlackBerry®, and view the output in seconds. It is an excellent way to try out snippets of .NET code
without having to fire up Visual Studio on your PC.

Code written with this application is stored on a remote server, and thus can be recalled from other devices,
so it can be shared with other users of this app.

  • 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-06-06T22:45:23+00:00Added an answer on June 6, 2026 at 10:45 pm

    The BlackBerry JVM doen’t support reflection, however if the applications all extend a Class that is also defined in the base application, and you can derive the fully qualified name of that Class in the downloaded software you can do something similar:

    abstract public class MyDemoObject {
        abstract public void myDemoMethod();
    }
    

    Then:

    Class class = Class.forName("org.some.sample.ClassName");
    MyDemoObject obj = (MyDemoObject)class.newInstance();
    obj.myDemoMethod();
    

    In the downloaded app:

    package org.some.sample
    
    public class ClassName extends MyDemoObject {
        public void myDemoMethod() {
            System.out.println("package org.some.sample.myDemoMethod()");
        }
    }
    

    Kind of clunky but it does work. myDemoMethod will be running in the context of the base application, which is not a bad lesson to learn about programming for BlackBerry OS.

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

Sidebar

Related Questions

I'm writing a little application for my BlackBerry and I need to send some
I'm writing a BlackBerry Java application and need it to submit a print request
I am writing an application in BlackBerry, where I want to do some custom
Is there an equivalent Android class to the BlackBerry's DateTimeUtilities? What I really need
So, my phonegap application has to work on a blackberry with OS 5. This
Writing something like this using the loki library , typedef Functor<void> BitButtonPushHandler; throws a
I'm writing the HTML for a hybrid (iPhone/Android/Blackberry) mobile application. I'm not directly involved
I’m writing a app for the blackberry and would like to call up the
I am writing an app for Blackberry and will need to scan the device
Writing my first silverlight application. I need to deliver some bitmap that the customer

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.