blackberry java wait screen (ActivityIndicatorView) - blackberry

how to add a activity screen to a button click event ?
ActivityIndicatorView view = new ActivityIndicatorView(Field.FIELD_HCENTER);
Bitmap spinImage = Bitmap.getBitmapResource("spinner.png");
view.createActivityImageField(spinImage,6,0);
LabelField label = new LabelField("Loading Hockey...");
s.add(label);
s.add(view);
pushScreen(s);
by this code, it will shows error. ie no import package
how to solve this ?

Are you importing all the right packages? i.e.
import net.rim.device.api.ui.component.progressindicator.*;
import net.rim.device.api.ui.*;
and so on....

Related

how to remove the time and the navigation bar of the phone visible on my application?

I want to see my kivy application compiled with Buildozer on an android phone without seeing the navigation bar and the phone time .
I try:
from kivy.config import Config
Config.set('graphics', 'borderless', '1')
Config.set('graphics', 'fullscreen', 'True')
from kivy.core.window import Window
Window.show()

Kivy: Remove the red dot creation on right clic

When creating a kivy exe on Windows with Pyinstaller, I still have the right click creating red dot.
Why does right-clicking create an orange dot in the center of the circle? proposed to use this to remove this behavior.
from kivy.config import Config
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
But when I do, I can't scroll anymore on my page if I stay pressed on a widget.
Isn't there something more precise like deactivate_red_dot rather than deactivated_multitouch which seems to have side effects ? Maybe a method of the Mouse() that we can override ?
venv/Lib/site_packages/kivy/input/providers/mouse.py
Method on_mouse_press
Replace
do_graphics = (not self.disable_multitouch) and (
button != 'left' or 'ctrl' in modifiers)
By
do_graphics = False
I'm not sure if I won't have others sides effects but that seems legit by the behavior I saw on the code.
EDIT:
Actually for my project, the bug with disable multitouchh was on android so I did:
if isWindows():
from kivy.config import Config
Config.set('input', 'mouse', 'mouse,disable_multitouch')
Good side, doesn't change fundamental library. Bad side, disabling multitouch could lead to others sneaky bugs.

Screen not appearing in python turtle

This is my code
import turtle
scr = turtle.Screen()
When I run it the screen appears and then disappears, what am I doing wrong?
Add scr.mainloop() at the end of your code.

Not seeing flutter screen class in firebase console

I'm trying to see when a user opens a specific screen i my app. But the only screen classes i can see under events/screen_view is MainActivity and FlutterViewController.
In the app I have the following code:
import 'package:firebase_analytics/firebase_analytics.dart';
at the top
FirebaseAnalytics analytics = FirebaseAnalytics();
in the state of a stateful widget
onPressed: (){
analytics.setCurrentScreen(screenName: 'Example');
}
inside a button that opens a page
Have I missed something, or am I looking at the wrong place in the console?

How to display a popupScreen in Blackberry Application?

how can i call the popupScreen on top of my main screen. it functions as a user login
I'm not sure what version of the SDK you are using but I've used the following:
DialogFieldManager manager = new DialogFieldManager();
PopupScreen popup = new PopupScreen(manager);
UiApplication.getUiApplication().pushScreen(popup);
popup.doPaint();
The following link will help you to find solution for push the popup screen on the top of the main screen
Dialog box background color on Blackberry

Resources