I’m working on J2ME Barcode Scanner using Zxing1.7 Library since 1.7 is the latest version which supports J2ME.
Since barcode functionality is already present as part of this Zxing, I need to call ZxingMidlet.java from my component Midlet.
As I’m very new to J2ME, I’m not getting how to invoke a ZxingMidlet from another Midlet.
Please provide your input/support If anyone has already worked on J2ME/has any experience on this.
It will be of great help to me.
Regards,
Deepak
The ZXingMIDlet.java is just an example of how to use their library. You should copy the parts of the code you need into your own project, instead of trying to start another midlet from your midlet.
Related
I am attempting to develop a Wear OS app which is dependent on a paired Android phone to perform some higher complexity computations. To this end I have implemented on the wearable side the proper infrastructure to pass a PutDataMapRequest message to the phone app, where I am having trouble is extending the WearableListenerService class on the phone side. When I alt+enter to see the suggested actions menu, the option to add the requisite library is there. However when I select that option nothing happens and the option is still there afterwards (the error is not rectified). I will caveat this by saying I have only been developing for Android for about 2 weeks so some of this Android Studio and its' quirks are still a little new to me. Prior to this point I had attempted various incarnations of building this app. The first where I had built the apps separately, and on that attempt this same extension caused problems (the IDE didn't even offer any suggestions at that point). I also tried loading the data layer api sample to find an example of the wearable listener service but unfortunately it is only present on the wear side of the app. The original source of this approach was from this tutorial, which I know is a little old at this point (at least one of the calls on the wear side are deprecated which I already worked around). At about 2:00 in the presenter is able to extend WearableListenerService without any issue within his phone side app and I have no idea what I am missing to be able to do that. I also did look into just trying to add the support library manually but to no avail.
Ok so, for anyone who runs into a similar issue down the road. The solution appears to be that when you create a wearable app through the new wizard and attempt to add an application module to the project, you will need to manually add the following lines to your phone app side gradle file under dependencies.
implementation 'com.google.android.gms:play-services-wearable:17.1.0'
implementation 'androidx.wear:wear:1.1.0'
This allowed the IDE to recognize the requisite classes and import them accordingly into the companion phone side application.
I'm trying to create simple app and one of my phones for testing is Nokia 2330c. My question is - is there any way to get connected to this particular model(preferably using cable), get inside and read the log file (similar to android logcat)? And does this model support any GUI like LWUIT or Polsih?
Thanks
Regs
Me
If you are using LWUIT, you will find the Log class to help you to get log info from your code. There is not any program similar to Logcat, sorry.
Log LWUIT
I have made an app for j2me Mobile, now I wanted to give it polish effects for which I copied Build.xml and resources folder and the issues were solved, but my project uses javax.microedition.pim.Contact; and I have written my whole code using that API.
When I clean & debug this project it gives error as below
error: package javax.microedition.pim does not exist
import javax.microedition.pim.Contact; //if it asks to import then there should be a way, but what?
I know polish offers its own PIM API as de.enough.polish.pim.PimContact, but I can't change my code for this. What I want to do is to apply polish css effects and run it as polish project but using the javax.microedition.pim.Contact for PIM operations.
There should be some way to use it and I guess there is, I did try to find something useful there but couldn't get it. I am new to polish and J2me so there is possibility of lack of knowledge. But I would love to find a satisfactory answer to this issue.
Strange that being so many users and developers of J2me and Nokia I didn't get the answer of a stupid mistake I was doing since long. I just had to select the PIM api from the selection of target API and devices when creating the object as we know that in all J2me or Nokia uses the Generic javax.microedition.PIM api. Sorry for answering my own question but I think it could be helpful for any other dumb like me. Thanks for bearing
I wrote a c#.net 4.0 application and I need to send data to a VB6 application.
the VB6 can send and recive data via DDE, but I can't find any working and or understandable DDE protocol for my C# app. I can try and change the communication protocol of the VB app.
Do you have any suggestions for suitable protocol?
I found this topic and I think I will choose the TCP winsock protocol, which is availible at the two workspaces, but I can't find any working code sample of such multilanguege use of Winsock.
I'll be glad to get such example.
Thanks!
If you want to stick with DDE you could check out this project: http://ndde.codeplex.com/
or http://www.angelfire.com/biz/rhaminisys/ddeinfo.html. I have no experience using them, but they aim to solve the problem.
However, if you have the source code for the VB6 application, then it may be much simpler for you to expose a COM interface.
You can do so by changing the project from Standard EXE to ActiveX EXE and creating at least one public class exposing your methods. I did this for all my VB6 apps that previously used DDE and higly reccommend it. It gives the client application a better interface to work with.
i am developing application in which requirement is to use TWUIK framework in J2ME
i have worked with j2me polish as well as LWUIT but i didnt find any kind of help regarding
TWUIK. Even i am not able to create sample application which simply contain two textbox for login.
core style in TWUIK is to creating every component on canvas
i can create textbox but cant even get focus to that component
Experts any one can guide me???
Thanks in Advance