Pushing a screens poping
OK, I have an app that launches a wallpaper with several buttons, when a button is clicked, I need to push the new screen. But my screen stretches the screen and you can only push and pop with UiApplication. So, how is?
Ty for your time...
You can also use
this.close()
instead of using pop.
Tags: BlackBerry Developers
Similar Questions
-
Hi all
There is a screen with meter as label, datefield and objectchoicefield in the menu drop down and add and go button, this screen is pushed repeatedly on display battery until the meter is new. But when I try to go back to the previous screen, there is problem normally by substituting the onClose() method you can pop current screen and can get the previous screen, using getActiveScreen() and then push it again if you do not override os onClose() automatically do it for you.
But in above case when I click on the button "back" or screen previous override onclose and push, I see my first screen I wanted my current screen with the counter that is if active screen is having against label like new if I press the "back" button, it should display screen with the meter only eight and so on.
Can someone please help me solve this problem.
Thanks Peter for you answer, actually used function for pushscreen on stach display that was written by someone else, when I looked carefully there condtion as below,
if (activeScreen != null) { Class screenClass =activeScreen.getClass(); if (screen.getClass().equals(screenClass)) { UiApplication.getUiApplication().popScreen(activeScreen); } }
It's actually the previous screen of poping before push the screen from the class were same, just commented and everything works, even if you do not override onClose and press return, it will automatically displays the previous screen.
-
Hello
I am completely new to Java and Blackberry development and this may sound silly, but could someone help me with the starting code for pushing a screen?
Please, I beg you!
Agree with the previous poster.
And I want to reiterate my previous comment. It will be a difficult process of slow time if you come back to the forum for any problem that you hit. You are much better by taking one of the sample applications by looking at how it works and then change it.
About your problem, because you are not aware of the differences, use screen until you understand what you are doing better.
-
How to push a screen of a Manager
Hello guys, I have a doubt as to the thrust of the newscreen of a Manager?
I tried to use norma; way, I have not worked, is this correct?
Concerning
Rakesh Shankar.P
Hi arkadyz and Peter, thanks for your help, I tried to push a screen of a component of field (field button) and it worked.
Thank you & best regards
Rakesh Shankar.P
-
How can I push a screen when right button is pressed.
I have to push a screen when I press the right keys means (I roll my wheel in the right direction).
I have replace the trackwheelRoll function, but it does not work...
I have 3 tabs... in which I have to move my focus horizontally.
The 3 legs are in a HorizontalFieldManager.
Like this...
When I wil go to my dial in tab way I will check if it goes left or right... So, how I do that...
My wheel works for the upward direction & down... but I have other work to do for upward and downward...
How can I do this...
Help, please...
navigationmovement has a status field indicating if a key is pressed while rolling. behavior of trackwheelroll is the same, I suggest to use navigationmovement so that you exclude not trackball devices.
-
Not pushing the screens and camera 8900
Im having two problems in my code...
the first don't push a screen in a menu. What of weird, is that I have two other options on the menu that will push the screens.
Here is the code:
private _server MenuItem = new MenuItem ("Server", 110,
30 k
{
public void run()
{
UiApplication.getUiApplication () .pushScreen (new Server());
}
};the second problem is very similar... but it's the camera of 8900 dreaded
SerializableAttribute public class CameraScreen extends form {}
private photMan PhotoManager = new PhotoManager();
private VideoControl _vidcon;
Player;
_videofield of private sector;
private String image_Type = "encoding = jpeg & width = 2048 & height = 1536 & quality = very good;
private byte [] image_Array;Phto of photos;
CameraScreen _camScreen;
VerticalFieldManager _vfm = new VerticalFieldManager (VerticalFieldManager.USE_ALL_HEIGHT |) VerticalFieldManager.USE_ALL_WIDTH)
{public void paint (Graphics graphics)
{
graphics.setBackgroundColor (0x00BDC29A); / / Gray special
Graphics.Clear;
Super.Paint (Graphics);
}};
Private UiApplication UiApp;
CameraScreen (Photos pht) {}Games of skill to the singleton
photMan = PhotoManager.getInstance ();UiApp = UiApplication.getUiApplication ();
Photo gets assigned locally and assigns him photomanager
This.PHTO = pht;
photMan.setPhoto (phto);
make easy pop screen
_camScreen = this;
Add the player to the screen to be used
_vfm. Add (_videofield);
This starts the camara media feature
CreateCamera();
try {}
Player.Start ();
} catch (MediaException e) {}
Dialog.Alert ("Err:" + e);
}
Dialog.Alert ("Press Enter to take photo");
}It takes the photo and shows a preview
Public Sub takePicture()
{
Dialog.Alert ("what happens");
try {}
photMan.setImageData (_vidcon.getSnapshot (image_Type));
Dialog.Alert ("inside the test');
} catch (MediaException e) {};
Dialog.Alert ("just before the next screen push");
UiApp.pushScreen (new CamPreviewScreen (_camScreen));
}Public Sub CreateCamera()
{
try {}
Reader = Manager.createPlayer ("capture://video");
Player.Realize ();
_vidcon = (VideoControl) player.getControl ("alarm");
If (_vidcon! = null)
{
_videofield = _vidcon.initDisplayMode (Field) (VideoControl.USE_GUI_PRIMITIVE, 'net.rim.device.api.ui.Field');
_vidcon.setDisplayFullScreen (true);
_vidcon.setVisible (true);
}
Add (_videofield);
} catch (Exception e) {}
Dialog.Alert("E:"+e);
}
}-------------------------------------------------------------
I use a headset button to access the feature, and I know that the function is called... This works also in the Simulator, but not in the device...
Any help would be appreciated...
This is random... but I solved the problem of 8900. Also, it happened to me when I was with the InvokeCamera App. The solution to get the CameraDemo to work is to make sure you build the program is less than or equal to the JDE version JDE on the phone
Example:
Compile the JDE 4.6.0 (computer)
Work on 4.6.1 (phone)
Compile the JDE 5.0.0 (computer)
Does not work on 4.6.1 (phone)
Just make sure that you compile the .cod with the correct version of the SDK and you wil have no problem. Hope this can help some people.
Note: You will still need to clear the screen of all fields except for the videoField to do, this includes the setTitle()...
-
Problem with push the screen of an application
Hello
I developed an application with another point of entry. I have the main GUI application and an application that listens for push notifications. The background listener auto starts when the unit is turned on and tuned to push. When it receives the push message, it displays a popupscreen with the options 'launch' and 'Cancel '. By pressing 'start' should open the graphical application by pressing the main screen of the application. However, I get "ClassCastException" and I have no idea why.
I looked around and the process is similar to what I did, but somehow, it does not work for me. Can someone explain or show me how to push a background application screen?
See you soon!
Welcome to the forums!
I guess as you push a display context global [and maybe modal] 'launch' and 'Cancel' buttons. When you press 'start', then, you should not just push a screen - you should actually run the main application!
To do this, you must create an application with the appropriate settings and say ApplicationManager descriptor to run it. Take a look at the documentation ApplicationManager, especially the section "running an application with different arguments. Make sure the arguments are according to the needs of your main application, not the bottom one.
Only one problem: what happens if your application is already running but reduced? Don't worry - you try to run the same application with the same arguments will activate one already running!
Good luck!
-
Hey thanks to pass along,
I was sitting on my bed, when it hit me, is it possible to push a screen outside of the application.
So I discovered on the global screens and pushing them. However. Suppose I want to dismiss the screen right now, but I wish instead of opening another application and return to it later. Is it possible to pushGlobalScreen, or I should do otherwise. If other, then suggestions?
None
-
PLAY, STOP, REPLAY, FULLSCREEN / PUSHED NORMAL SCREEN AND SEEKER
can someone tell me please the AS3 code for... PLAY, STOP, REPLAY, FULLSCREEN / PUSHED NORMAL SCREEN AND APPLICANT. I want to do a video player online help pleeeease.
for an as3 project uses a component flvplayback already has all these controls and no coding is required.
-
Hello
I have two simple screens. What I want to do is to push the second screen automatically after a certain period of time. Any thoughts on how to achieve this?
Thank you
Diego
It takes a different approach to the recommendation of mreed, but you can go.
-
Hello
How can I push a screen with "style of shoot left (<-)" rather="" than="" "pop="" up="">-)"><->).
We can see that in the popular app BeBuzz
Is it easy for me a beginner?
Thank you.
You can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/TransitionContext.html
-> -
Screen pushing problem in the incoming call disconnected event
When a phone call disconnects I would push a screen containing some information about the appellant
In the call disconnected event I'm doing this:
UiApplication.getUiApplication () .requestForeground ();
UiApplication.getUiApplication () .pushScreen (new CustomScreen());
It works most of the time.
But when I close this screen the phone keypad.
And sometimes my screen does not get pushed and the keypad appears.
I could be wrong, but I guess that my screen is pushed in the wrong context?
Can someone point me in the right direction?
See you soon
I have a slightly different take on this problem.
I think that you run this code:
UiApplication.getUiApplication () .requestForeground ();
UiApplication.getUiApplication () .pushScreen (new CustomScreen());
at your disposal, and if you run in the context of phone, not your application.
The treatment of changes to it it context moves to your application - the best way to proceed is to use a Global event. Search for informaiton on world events so this is new to you.
-
screen to push during the call
Hello!
I want to push a screen on top of everything I have on the device when I get an incoming/outgoing call or when I'm in a direct appeal... Now, what is happening here is that the phone freezes when I start the call from the phone book screen... If I press the call log screen, I have no problem at all. Here's how to add the screen. This is done in a thread separate, created and launched implementation of the method callInitiated (int callid)...
synchronized (UiApplication.getEventLock()) { UiApplication.getUiApplication().requestForeground(); UiApplication.getUiApplication().pushScreen(new CustomScreen()); }
I'm trying different OS versions as for 8100 v 4.2.1.103 I'm not able to push any screen, while the application is in the background... (However, I put the application in the foreground before)...
Best regards!
Isabelle
Please see the following link for an example on how to display a screen from a background application.
How - to alert a user to a background application
Article number: DB-00407 -
iMac 21.5 k for 2nd display screen resolution
Hi, I currently have an iMac 21.5 with 4 k display. I have a second monitor connected via a Mini display to VGA. My 2nd screen has the ability to 1920 x 1080 (which is the best option), however, when I select this option, it pushes the screen to the right by 5cm, it's why I don't get the full use of the desktop computer. My second monitor is LCD, widescreen 21.5. Has anyone had this problem and managed to resolve it? Any help would be greatly appreciated.
To see all the options for resolution, open system preferences, and then select display. There are two options: default and scaled. Click Scaled while keeping the option key and you will see all available resolutions. You may find that there is more than one 1920 x 1080 option (at different frequencies). Try a different setting.
-
entry screen iPhone 5 away from the body of the phone
Hi all
I was wondering if anyone has had a similar problem - the screen of my iPhone 5 has started to "detach" from the main body of the phone, and I have just been quoted £206,44 to repair.
The screen still works, but at the bottom of the phone around the home button, it raised about 0.5 cm. I can push the screen but then it will be flex and bulge in the Middle the phone and when I let go of the center of the fall of the rear screen and the bottom rises again. I can lift the screen very slightly until the screen goes black.
Phones do not are damaged/deleted and there has been a case on since purchase.
I had looked around this and other forums and it seems to be due to a "battery swelling' users seem to be getting free out of warranty repairs or replacements. I expect to pay a little (postage, possibly a cost of repairs due to the age of phones), but £200 + is that the phone is worth the trouble. It is a model for the launch, so I got it since 2012.
If anyone else has had this problem, and have you solved it without having to spend a huge sum of money?
The most economical solution is to locate a category renowned repair shop.
Be forewarned that the fan - boys on the forum will tell you that you're a bad person if you do.
Maybe you are looking for
-
Hello I seem to have a problem, for which I have already made contact with service to the Netherlands, but all they could do was to advise me to send the walkman to a point of service of the checking, but this is the default response, if they do not
-
Microsoft's scans show no virus, but it always works slowly & freezes.
Microsoft Research viruses, spyware & malware do not detect anything, but yet my computer is still slow and freezes too, when I use another free scan it always says I have hundreds of errors, please help. Thank you
-
large file copy error: specified network is no longer available
Hi, I can not copy the files from large as data 1 GB, 2 GB or so on my network xp but I can copy files of 100 MB to 50 MB with no problems, I got an error, can not copy the file, or the specified network folder is no longer available or some trail ti
-
Windows Error Reporting service connection failed
For some unknown reason to me, the Windows Error Reporting service has decided that it cannot send crash reports to Microsoft. I get the above error when I try to "Find a solution" review problem reports dialog. 'Try again later' does not work. I've
-
I coundn't find my blackberry appworld on my phone and I downloaded another but still can't find .but that's in my application management and still not work.