RichText field active hyperlink problem
Hello
I write a URL in the current RichText field. After you click that, it's hitting the server and back to my application. But after his return also it displays the element menu to open the link. I've implemented the navigation click. How can I remove the menu items or the pop-up windows by clicking.
Here is my code:
mCrtHyperlink = new ActiveRichTextField("url") { int color = Color.BLUE; protected void onFocus(int direction) { color = Color.GREEN; invalidate(); } protected void onUnfocus() { color = Color.BLUE; invalidate(); } protected void paint(net.rim.device.api.ui.Graphics g) { g.setColor(color); super.paint(g); } protected boolean navigationClick(int status, int time) { // TODO Auto-generated method stub Browser.getDefaultSession().displayPage("http://otp.arcot.com"); UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { // TODO Auto-generated method stub Logger.out("ProvisionForm", "Before Perform Action"); performOkAction(); } }); return super.navigationClick(status, time); } };
Help me in this matter...
Not tested, but according to the documentation, you should return true since a navigationClick if you manage the method. You do, instead of
Return super.navigationClick (status, time);
I suggest you just the code
Returns true;
In my view, that can solve your problem.
Tags: BlackBerry Developers
Similar Questions
-
Custom field highlighting the problem
Hello
I have a custom field class that extends the field. the custom class allows me to put a photo inside the field. The problem I have is when I give him a click event, it accentuates not.
I overrided onUnfocus() drawFocus() onFocus() and object;
I tried to use super.drawFocus () inside the drawFocus(), tried to use drawHighlightRegion with HIGHLIGHT_SELECT and HIGHLIGHT_FOCUS but no luck.
Anyone know what I need to do to give hightlight when the user touches the screen, or click?
OK, so as I said in the previous post, you can paint the blue highlight, but your bitmap image will then paint over clear tones.
So that the nail is visible, you must set a fill around the bitmap. In other works, the measurement of field must be slightly larger than the size of the bitmap.
You the best solution would have been to extend BitmapField (rather than field) and use the setSpace() method to set some padding.
Otherwise, you will need to adjust the measurement of field in your replacement of subLayout().
-
Active RichText Field hyperlink does not
All my research indicates that the following should give me a hyperlink to a web page. For example, I click on the underlined text and the browser starts and displays the web page.
ActiveRichTextField ActiveRichTextField1 = new ActiveRichTextField ("http://www.RadicalPhotography.com", RichTextField.TEXT_ALIGN_HCENTER);
aboutvfm. Add (ActiveRichTextField1);The text displays and is pointed out, when you select, it receives focus, it seems that everything is fine. But when I click on it nothing happens.
Someone at - it ideas?
Make sure that you have added DEFAULT_MENU to your PopupScreen style - this should give you the context menu when the user clicks on the active element. The menu should have the choice of 'Get Link'.
-
I have real problems with active hyperlinks.
If I ask the assets to open in a new tab/window [pdf doc] I get just a blank tab. Can anyone help?
When you hover over your link in the browser you see where the link is in you... (example below)
You say that it is a pdf file. The pdf is saved to open on the first page and not tell on a blank page or end page?
-
Active Sync problem - push slow
Hello
I use the premium new Z5 with Active Sync (Microsoft Exchange Online). The email push notifications come very late, sometimes several minutes later. What could be the problem?
Thank you
Marco
Yes, I want to say if he is connected to WiFi or not, is not serious.
But I think to disable endurance mode might be the trick.
-
I guess most of the people are not with the active stylus or there are more messages on its irregular operation. For me this is not worth keeping without functioning active stylus. Sometimes it seems to work fine, but to, it often acts as if the pen is in contact with the screen, even when it's not. This seems to happen with all its functions, inking in OneNote, on the keyboard screen handwriting recognition, select icons... I have the latest firmware and drivers, I hope they are working on a fix, the latter has not solved the problem.
For many, the A01 and A02 of the stylus versions work fine (I use both without problem on a daily basis). For some, they are not quite right.
If you are having problems with a black pen, please contact support to get a replacement of the newest A00 (silver/black) stylus.
-
Active stylus problems (coming Pro 11, 7140)
I have a Dell Active Stylus A02, as well as a meeting place for Dell 11 Pro 7140. The problem I have is that the stylus doesn't work sometimes and that it is not more recognized by the Tablet PC. To work around the problem, reset the pen by removing / reinserting the battery still works, but is a bit annoying. This problem already known and is there a solution available?
MarkusBBI have a Dell Active Stylus A02, as well as a meeting place for Dell 11 Pro 7140. The problem I have is that the stylus doesn't work sometimes and that it is not more recognized by the Tablet PC. To work around the problem, reset the pen by removing / reinserting the battery still works, but is a bit annoying. This problem already known and is there a solution available?
While most customers have good results with version A02 of the pen, there have been some exceptions. You should not reset the pen like that. I recommend contacting our assistance and asking new version A00 of the stylus. The revision has changed back to A00 following a new part number. The new stylus can be identified easily because it is silver and black instead of black.
-
Y at - it a readonly richtext field?
Y at - it a cascades component that has the following attributes:
-Can make multiline
Read-only
-Show a style rich text/HTML
-Be able to select the text in the component
I tried to use a TextArea by putting it in read-only mode by disabling the feature, but that adds a grayish appearance to the text. Labels would work, but the user cannot select the text. Component someother is available?
Yes, but this is not what you expect. There is no support RichText cascading, which is a pain, but you can accomplish what you want with a WebView. Place it on your page as you would for a text field, and fill it with HTML text styles you like. One good thing about this approach is that WebView allows you to set default QML/C++, CSS, which allows to manage the color themes itself without changing the body of the text to display.
I'm doing this in my application support for multi-page popup where I wanted it to be able to display text bold, italic, and colorful, but also to the justification of the text. Just make sure you put interactive as tags in your text, and it will behave as a field read-only.
-
Active FTP problem between Checkpoint and Cisco PIX
Hello
I am facing a strange problem.
Many of our customers have achieved a Checkpoint FW-1/VPN-1 4.1 SP6 (the last before NG). When they try to connect to an FTP server that is located behind a Cisco PIX firewall, they are not able to transfer data: the connection is established, the authentication to follow, but at the stage of the 'LIST' the connection 'freeze' and the user must close the FTP client.
Users are facing this problem ONLY in Active mode: passive mode works very well. Turn passive mode FTP client isn't acceptable workaround for most of my clients.
The problem seems to be related only to the firewall Cisco PIX and active FTP.
Please, what is someone encountered the same problem?
Could someone give me any help?
Thank you in advance.
Paolo
Yes it is a (global) problem, even with the last checkpoint firewalls. What happens with Active FTP, it's that each command (get, list, etc.) causes another log on the client (source port) to the server on port 21. If you run netstat from the customer you can check this for yourself.
What normally happens, with HTTP, FTP, telnet, which have are, it's that the client makes a connection to port 21, 23 etc then returns with a port source such as 1936, 1980, 3000, etc..
Connect problem with statefull firewall is they do not allow multiple sessions control port number on a destination, as well as a source port can be bound to a destination port, in this case, 21 for FTP. I Don t see it changed, an extreme security risk any time soon, since it s, someone else might be hopping session and block this type of traffic, it's what the stateful firewall are all about and FTP servers are problably the machines more pirated on the planet.
You´ve mentioned the workaround solution, unfortunately that s the only way, change your passive customers, I think that Unix/Linux customers have a problem with this, change your FTP server can also help, there are multiple servers that can be configured to disable Active FTP, I wouldn know exactly, I only network & firewall... maybe someone else can move on this...
-
BlackBerry webworks: opening of hyperlink problem
Hello
"I'm new to webworks, I try to create a new application that have a simple hyperlink that opens a url with the following Formate: http://
: /BBScreensTest/Startup/English.html?page=/BBScreensTest/groupslist.html. the app works fine on curve blackberry 9360, but when I try to run it on blackberry torch 9810, I get a Web page with the error message following:
------------------------------------------------------------------------------------------------------------------------------------------------
ERROR
the requested url could not be found
the following error was encountered trying to retrieve the url:
http://
: /BBScreensTest/Startup/English.html? (Note that it is not the full url) Access denied
access control configuration prevents your request being accepted at this time, please contact your service provider if you think that it is incorrectyour cache administrator is webmaster
generated the
by of pmds153 (squid/3.1.16) ------------------------------------------------------------------------------------------------------------------------------------------------
I don't know what it is!
the word webmaster is a link that opens by the workstation with the following message body:
------------------------------------------------------------------------------------------------------------------------------------------------
Subject: CacheErrorInfo - ERR_ACCESS_DENIED
CacheHost: pmds153
ErrPage: ERR_ACCESS_DENIED
Err: [No]
timestamp: Tue, 23 Apr 2013. .etc
ClientIP: 127.0.0.1
HTTP request:
GET /BBScreensTest/groupslist.html HTTP/1.1
Accept-Language: en-GB, fr; q = 0.5
x-wap-profile: "http://www.blackberry.net/go/mobile/profiles/uaprof/9810/7.1.0.rdf".
Host:
: by: BISB_3.5.2.96
user-agent: Mozilla/5.0(Blackberry;) U; BlackBerry 9810; (mobile safari to en-GB) AppleWebKit / 534.11 + (KHTML), lokeGecko) Version/7.1.0.342 / 534.11 +.
Accept: application/xml,application/xhtml+xml,image/png,text/html;q=0.9,text/plain;q=0.8,*/*;q=0.5
Connection: close
------------------------------------------------------------------------------------------------------------------------------------------------
any help is VERY appreciated
Thanks in advance
generated the
by of pmds153 (squid/3.1.16) The line above indicates that your application is via a Proxy Squid server. This means that your device is active on the BES and uses (MDS connection Service) business browser to load the page.
You can use the network of the Web Inspector tab to see if the application contains the full URL (I think that the proxy is truncating it). http://developer.BlackBerry.com/HTML5/documentation/web_inspector_overview_1553586_11.html
What is a page internet or intranet? If it comes from a Web page, you can disable the data network and activate WiFi, that the proxy and go directly to the internet.
If there is a page of the intranet, you can talk to your IT admin on how to provide access.
-
Development/unfocus field custom button problem
Hi all
I have something weird happens. I have a custom button field that swaps the images based on a focused state or blur. I have been using this field custom for awhile now, and I have never had any problems. Imagine the following provision:
______________ ________________________
| Custom button | | BasicEditField |
------------------------ ------------------------------------------
When my screen is launched, the focus is on the custom button. If I move the trackball in a downward movement, the focus is taken the custom button, and its background image changes adequately to what has been defined in the untargeted State. The BasicEditField then has the focus. This is the correct behavior.
If, however, I move the trackball in a movement to the right to the BasicEditField, then the BasicEditField will indeed get the focus, however the custom button field always displays its "highlight" picture Using print statements, I was able to determine that when I move in a movement to the right with the trackball, the custom field button loses the focus and then gets the focus back to back, that's why it shows the highlighted image.
Additional info: This isn't an issue on touch devices, and custom button Manager is a TableLayoutManager.
Any ideas why this might be happening? Here's the code to my custom button field:
public class BitmapButtonField extends Field { private String text = ""; private Bitmap bitmap; private Bitmap bitmapHighlight; private Bitmap b; private boolean highlighted; public BitmapButtonField(String image, String imageHighlight, long style) { super(style | Field.FOCUSABLE); this.bitmap = Bitmap.getBitmapResource(image); this.bitmapHighlight = Bitmap.getBitmapResource(imageHighlight); b = bitmap; } public BitmapButtonField(String text, String image, String imageHighlight, long style) { super(style | Field.FOCUSABLE); this.text = text; this.bitmap = Bitmap.getBitmapResource(image); this.bitmapHighlight = Bitmap.getBitmapResource(imageHighlight); b = bitmap; } protected void drawFocus(Graphics graphics, boolean on) { // Do nothing } public int getPreferredHeight() { return bitmap.getHeight(); } public int getPreferredWidth() { return bitmap.getWidth(); } protected void layout(int width, int height) { setExtent(getPreferredWidth(), getPreferredHeight()); } protected boolean navigationClick(int status, int time) { fieldChangeNotify(1); return true; } protected void onFocus(int direction) { b = bitmapHighlight; invalidate(); System.out.println("FOCUSED"); } protected void onUnfocus() { b = bitmap; invalidate(); System.out.println("UNFOCUSED"); } protected void paint(Graphics graphics) { int topTextPadding = (b.getHeight() - getFont().getHeight()) / 2; int sideTextPadding = (b.getWidth() - getFont().getAdvance(text)) / 2; graphics.drawBitmap(0, 0, getWidth(), getHeight(), b, 0, 0); graphics.setColor(Color.WHITE); if (text.length() > 0) { graphics.drawText(text, sideTextPadding, topTextPadding, Graphics.ELLIPSIS, b.getWidth()); } } }
Have you looked at navigationMovement in the TableLayoutManager? I confess that I rewrote it because it handles no left and right as I wanted. Perhaps, you might be able to do the same thing.
-
Windows 7 Activation real problem
I recently bought a copy of Windows 7 via an online retailer and installed perfectly on my machine for some time. All of a sudden, he gets up as is not authentic. What should I do at this point, because I paid for it? The retailer, contacted, just tells me that the product key must be legitimate, and there is nothing they can do there, other than to sell me a new copy.
Partial product key: YQKDRLicense status: NotificationReason for the notification: 0xC004F009 (grace period expired).Try the following:Click Start, right click on computer
Click on properties
Scroll down to the Windows Activation
Click on the link 'change product key '.
Enter the product key located on the COA sticker attached to the bottom of your laptop or in the battery compartment. Click next to activate via the Internet.
COA certificate of authenticity:
http://www.Microsoft.com/howtotell/content.aspx?PG=COA
??
What is the certificate of authenticity for Windows?
http://Windows.Microsoft.com/en-us/Windows7/what-is-the-Windows-certificate-of-authenticity
or
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us
---------------------- -
New pieces of PC and Activation Win7 problem
Hello!
I built a new PC for myself and wanted to install version Boxed of Win7 bought a few months ago.The key to the box was used for formatting the old PC.Now the key will not work with new construction.The keys are assigned to specific Build?Even if I buy a BONE in a box separate is the key always are assigned to a PC, he is first used on?Have you tried to restart by phone?
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
Windows 7 Activation final problem
I built my computer about 4 + years ago and installed Windows 7 Ultimate and worked fine until recently. One of the disks on the raid disk doesn't have that I replaced. Since, I've been making a problem of Windows Activation, I assumed that the product ID is somehow linked to the serial number of the hard drive and that is why he does not.
Any help would be good.
Thank you
Stuart
Have you tried to restart by phone?
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-usPlease run the Microsoft Genuine Diagnostics Tool then copy and paste the results into an answer here for further analysis:
http://go.Microsoft.com/fwlink/?LinkId=52012 -
Activation Code problems.
I bought Adobe CC and have an activation code. But my current installation, which has expired, has not recognized. I have retried enter the activation code, but he now says it was used already. What should I do?
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
Maybe you are looking for
-
How can I get ringtones after buying a new phone?
-
Can not open pictures on my MacBook air need help
Could not open the photos on my MacBook Air, need help
-
Problem of "Verification".
Many seem to have trouble 'check' downloads of OSX El Capitan. I have a problem check everything. I can download, but not installed, the driver for a Wacom tablet. I use instead of a mouse, so it is a quite important tool. I don't remember seeing thi
-
Envy 17-inch: Envy battery
Hello I'm about to receive the Envy Touch laptop (HP Envy 17 t) but after ordering, I discovered that the battery is installed in the device and not easily moveable. I intend to have this laptop (like desktop computers) permanently plugged into the w
-
Problem with my Personal Media Drive hd1600
Hello I have a problem with my HD1600 Personal Media Drive. After formatting, Windows 7 can not recognize it. Only the power of the blue light is on in the Hp website, I can not find the driver software Please help me Thank you