does anyone know how to specify the height of a net.rim.device.api.browser.field2.BrowserField? I cannot find how to do so in the BlackBerry API.
Also, when I use a browser field within my application, am I able to load one page, and from that page click a link and go to another? I am having issues doing that with the BrowserField2...If not, how can I achieve new page loading?
Thanks!
You could implement your own manager and override sublayout
After that you can create your own browser field and inherit your manager you created earlier.
As for the link stuff, this might help
Related
I have already read Lars Vogel's tutorial on creating dynamic help in Eclipse RCP. However, it does not cover one topic - how to create side-pop-up help for dialog's (Like the one in screenshot) and integrate it with the rest of the help mechanism. Surprisingly, I could not find any materials describing this matter.
Derive your dialog from org.eclipse.jface.dialogs.TrayDialog to get the support for the side tray and the help button.
You may need to call the TrayDialog method setHelpAvailable(true)
You can also base your class on TitleAreaDialog (which extends TrayDialog) to get a dialog with a title and message area at the top of the dialog.
I am developing an android application using PhoneGap/cordova and Javascript. I want to include audio/video capturing functionality in a particular html Div of my application using external Java plugin.
Or some mechanism where I can have a native Java based widget which will come in the same screen at a particular location (rather than replacing the current view completely and occupying the entire screen)
I have searched across the web but could not find an efficient way to do it. Can anyone suggest me any way to handle this?
Is it an option to use the built-in feature?
http://docs.phonegap.com/en/1.9.0/cordova_media_capture_capture.md.html
Try to read this blog,hope will be helpful
http://www.raymondcamden.com/2013/5/20/Capturing-camerapicture-data-without-PhoneGap
Might not be exactly what you want: Instead of DIV use overlay android fragment.
CordovaWebView is part of an Android activity. That means we can overlay a fragment or say dialog at a location we want. Similar to native android development.
Challenge: If you want to show DIV/Dialog in between HTML you will have to take care of lot of positioning related issue.
Solution: You can target to have your DIV/Dialog positioned at the start or end and can then re-position your HTML placeholders.
Things you would require: Cordova Plugin creation, Dialog/Fragment understanding, JavaScript to reposition the DOM elements (if required), Then all is native.
Here is a SO link which can help you.
Please let us know if it helps and it would be great if you share your end solution.
i need to add an help window to my android application.
But actually i don't know how to do it if there is a best practice, or some prepare objects.
I simply want to add an help option in the application menu, and when it is chooesed the help is showed. What is the best way to do that?
I think about several solution, but i'm not sure they are good.
Add another activity that contains only a text view or a webview and print the contente of the help
Use a Dialog Box? Maybe a custom dialog?
Launch a web activity and retrieve the help page from the web.
They are good ideas? Btw what is the best way to provide a basic help page into an android application?
Thanks.
Is suitable if your amount of help is small and does not need formatting
Is good for formatted text, bigger amounts of text and does not require internet connection or your server to be present when user likes to have help
Is the most flexible, as you can change help information without updating application,
but requires dedicated web page and internet connection.
Now it's your choice. My personal preference is #2.
What you want to do is make a xml layout containing all the help information and just create an activity that displays it, if you need help with code just ask me.
I want to show the web page normally,but still keep the user in my app,
how to make use of the available web render engines programmatically?
UPDATE
I'm now using the webview ,but can't render the page,reporting 404 page not found.
However,when I pack my project and run in another computer,it works like charm!
How to solve this?
Use a webview and implement webkitclient if needed.
More info here
Please explain your question. I cant understand that you want to open the webview with the URL or by the html code. Both of them is totally different. Please explain how do you want to open the webview in application by URL or by HTML
You, as of now, probably let your app open the device web browser to let the user see the content of the URL, via an Intent Action.
Use your activity which uses a WebView and implements its own WebKitClient. Then you can make the user stay in your app and control what and how content is fetched.
#Achie has a nice link for you which explains how Web things work in Android.
To know how to work with WebViews, go to this URL and read the nice article-cum-tutorial
So I have multiple forms for my current project and I have made classes that interact and do some utility work behind these forms.
However I am unable to access controls on other forms.
Say I have a text control on Form A and I want to use a class that receives/manipulates data from a completely different Form B.
My classes and Form B cannot see this control.
I have tried going to properties
code
variable modifiers set to "Public"
Unfortunately this does not seem to do the trick. Any ideas? I appreciate the help!!
I managed to solve the problem if anyone was curious.
Instead of being lazy I create public methods that allow me to communicate with them via setters and getters.
Thank you for anyone who tried to solve this for me.
Here's how you do it in Netbeans 7.2.1.
Open the form in Form Designer view.
Right click on the control whose visibility you want to change. You can click in the designer window, or in the Navigation pane to the left.
Select "Customise Code". This will bring up the Code Customizer window.
At the bottom of the Code Customizer window is a combo box labelled "Access", which is by default set to "Private". Set this to public.
Your control should now be accessible from other classes.