The import net.rim.device.api.util.StringProvider cannot be resolved - blackberry

Using JRE 5.0.0:
import net.rim.device.api.util.StringProvider;
http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/util/StringProvider.html
What am I missing?

see this link:
Package net.rim.device.api.util
In this link there is no "StringProvider" class in Version 5.0; It is from Version 6.0. I am not saying that your provided link is fake one; I am surprise one about your provided url; Better to put this question in Blackberry supportforums:
BlackBerry® Support Community Forums
link also;

I'm guessing you've imported one of RIM's examples or created one of the default "Hello World" apps using the BlackBerry eclipse plugin. Unfortunately RIM's code has errors.
StringProvider does not exist in JRE5, try changing it to StringBuffer.

Related

I have a Swift Package and I want to know how to get the current version of this package

Similar to how you get your apps version kCFBundleVersionKey how does one get the version of the package you are working in?
I don't think it's possible at the moment to get the value easily.
You can either read the Package.resolved file or you can set up a public constant where you would define the version of your library.
public let version = "0.0.1"
import MyLibrary
print(MyLibrary.version)
There isn't a standard way how to do this, every package could have a different constant (or not have it at all)
You can check package version rules in project package dependencies tab. Check screenshot below. Propably it would be sufficient for most use cases.
Edit: The context has changed, the question was to get the version of MyPackage I'm working on via code. There isn't any documented or recommended method as of now. Though this can be achieved by a hack through reading the Package.resolved file as mentioned by Malcolm.
I'm not deleting this answer for any future users who are looking for answer on how to get the exact latest version of a Package.
You can give the same major version number and give Update to latest package version option on Xcode. eg: If current version is 2.4.5 you just need to provide 2.0.0 and update. There is also an option to provide the exact version of swift package you need.

ManifoldJS to package a Windows EdgeExtension, but the result is empty

I follow the guide to package the extension in this guide:
https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/packaging/using-manifoldjs-to-package-extensions.
The sample extension is in download from:
https://github.com/MicrosoftEdge/MicrosoftEdge-Extensions-Demos/tree/master/color_changer
I use the tool: ManifoldJS.
but the result of the target folder is empty.
We confirmed that this is a known issue of manifoldjs-edgeextension, please check below link for detail information, still no updates yet.
https://github.com/pwa-builder/manifoldjs-edgeextension/issues/19
As a workaround, NodeJS version 8 works good for this extension, tested it and got the outputs.

Binding Tesseract as a static Lib in Xamarin

I am trying to add tesseract to my iOS-App. Im doing the App with Xamarin.iOS.
I tried creating a .dll with btouch and used for that the ported version of tesseract on github(https://github.com/gali8/Tesseract-OCR-iOS). I created the bindings of tesseractOCR.h with Objective-Sharpie and created a
.dll with the TesseractOCR.a file.
Everything worked fine but when trying to build my app with the .dll referenced it gives me the attached Errors.
https://www.dropbox.com/s/w9cvzozgw4gffdx/Screen%20Shot%202014-03-31%20at%2012.46.24.png
How can I fix them?
Thanks in advance
Alex
This seems a good question and I came here looking for Xamarin bindings for Tesseract library, but there was none on this page. After searching, I found that there are a couple of bindings already for Xamarin:
Classic
1. https://github.com/sraiteri/Xamarin-Tesseract-OCR-iOS
Unified
2. https://github.com/jherby2k/Xamarin-Tesseract-OCR-iOS-Unified
Xamarin Forms
3. https://github.com/halkar/Tesseract.Xamarin
Also, there seems to be an active and modern porting to swift, and can be found here:
https://github.com/WhitneyLand/SwiftOpenCV
This discussion on Xamarin forum seems also very useful for anybody interested in this question:
https://forums.xamarin.com/discussion/3673/help-adding-tesseract-as-a-ios-binding-project
Disclaimer: I have not tried any of them yet, just finished my research, now gonna start my experimentation :)
This is because Tesseract uses c++ and the binding needs to know this.
I would suggest creating a binding project as per the tutorial at Xamarin. Then this Xamarin forum post gives great information on how to add c++ to the LinkWith attribute.

how to use protobuf-net in the xamarin ios pcl

I am trying to use protobuf-net with the new xamarin ios pcl, and it's nuget packet doesn't appear to support the framework. Is there a way to import protobuf-net into the pcl?
Update:
I just found recompiling the PCL with the new Xamarin PCL definitions allowed the resulting library to be references. Nice work! Let me know when a new version is posted to Nuget.
The NuGet package includes PCL drops, but it is unclear to me what change you would have me make to the NuGet package here, as there is no specific "Xamarin" target that I know of; the example targets are described here; protobuf-net currently includes a broad target of portable-sl4+net40+wp7+windows8. If you know of a target (or indeed a PCL build combination) that works for Xamarin for iOS, please let me know.
I should also note that the NuGet drop is the "Full" implementation, where meta-programming is performed at runtime. Because of the limitations in iOS, you may find you get better performance by using the "CoreOnly" implementation combined with the "precompile" tool, available from the google-code drop. This is described here.
I was able to use NuGet version of protobuf-net by manually editing the .csproj file for my portable library and setting the target framework profile to match protobuf-net:
<TargetFrameworkProfile>Profile136</TargetFrameworkProfile>
The resulting portable library worked well with Xamarin.Android. According to this list, it should work with Xamarin.iOS as well.

Can any one tell me in which jar file I can find the de.enough.polish.ui.Command?

Hi Everyone I am working on J2ME polish project, which is just an enhancement project. I have no idea about J2ME Polish. I have an error saying that the
import de.enough.polish.ui.Command cannot be resolved. So can any one tell me where can I find that. I have tried googling but could not find it.
You should download j2meploish once downloaded and installed you should look in the $installdirectory/source/j2mepolish-client.jar or something with the word client in.
You should take a look at this website, they probably have the library you are looking for.

Resources