Yuriy
Yuriy

Reputation: 51

How to get AppName() BlackBerry

Is it possible to call getApplicationName() in some way in Blackberry?

Upvotes: 1

Views: 518

Answers (2)

DFTR
DFTR

Reputation: 869

ApplicationDescriptor appDesc = ApplicationDescriptor.currentApplicationDescriptor().getName();

You should use getName. It is possible that the module name may not reflect the actual app name. If you created a project and refactor(renamed) it, you can have module names with the original title, even though you have an app name that has changed.

Upvotes: 0

Vivart
Vivart

Reputation: 15313

try this.

String moduleName = ApplicationDescriptor
                .currentApplicationDescriptor().getModuleName();

Upvotes: 4

Related Questions