Is there any way to import following in BlackBerry JDE 5.0 or in eclipse with BlackBerry JDE 4.7 ?
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
I need to implement it for Barcode Reader in BlackBerry. For barcode Reader, I download the rVision.jar & import it.
If there is any solution or alternative solution then please suggest me ?
No, AWT is not part of the API on the BlackBerry. However, you do have both the J2ME and RIM APIs that are equivalent in functionality to what you get from above. Just search around in the JavaDocs, and you'll find them.
However, you will need to modify the library you are trying to use, so that it uses those alternative graphics APIs instead.
How about the open source project ZXing? Check it out. They even provide the full source code for a BlackBerry client that uses their library.
Related
I came across a websocket example that I would like to use. However it uses import 'dart:html';. When I introduce that in my Flutter project seems like its not being picked up. Do I need to add additional dependencies to the pubspec.yaml?
dart:html can't be used in Flutter.
It is for browser applications only.
dart:html also only comes with the regular Dart SDK, not with the Dart SDK shipped with Flutter.
I know this is an old question but let me drop this answer here.
I've searched for a web crawler/scraper for Flutter for a while now. I've tried to use FlutterWebview and also the HTML package but no way. Recently I've found a new package for this.
The advantage of this package is that it is really cross platform as explained:
Cross-platform dart:html that works in the browser, Dart VM, and Flutter.
Typical use cases are:
Cross-platform application development (e.g. Flutter mobile and web versions).
Web crawling and scraping
you can use universal_html for any scraping/crawling purpose
Since the merge of Flutter-web into the main Flutter repository, it's no longer possible to directly add imports for web libraries (e.g. dart:html) in a Flutter project on the main channel when targeting Web, Android and iOS.
Use the universal html package which provides extensive support for multiple platforms and web libraries.
From the root level of your project, command
1.
flutter pub add universal_html
2. import 'package:universal_html/html.dart' as html
This package isn't required to run some web files (e.g. dart:js). In my case, I just had to remove the import 'dart:js' import statement.
I'm fairly new to Xamarin, and I was handed a PCL project and asked to add the option to take a picture "within" the application (not by simply calling the camera app). For iOS, it seems the only way to do this is using the AVFoundation library. However, when I went to look into the issue, it seems that they're relying on using UIKit and UIView controls to accomplish their tasks. Is there anyway I can implement this into my PCL project? Maybe by using a DependencyService? I'm at a loss here.
I was able to figure this out by using a CustomPageRenderer in the iOS portion of the app. I borrowed a lot of code from here.
want to create QR code reader based application. Using which library, I can create my application ? Note: I searched in google. Always I am getting zxing. I downloaded the zxing project … . But the problem is; I run the application. But it is reading only the Barcodes. There is no option to read QR code. Please tell me how to do this... Thanks in Advance. …
Try out ZBar, it reads both barcodes and QR code.
If you are targeting iOS 7 and higher you can use AVCaptureMetadataOutput from standard AVFoundation.framework.
Below iOS 7 I've also recommend ZBarSDK
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.
I am tryint to generate an EAN-13 barcode in blackberry 5 sdk.I know I can do this in Blackberry 6.0 but I can not use ByteMatrix in 5.0, can you help me or give me an example about how to do this ?
ZXing is an open source project. You can copy the classes you need, or if it is too messy, just download the packages you need from the library and refactor them so that the package names do not collide with the Zxing ones already in blackberry 6.0.