android eclipse using method HdxUtil.GetPrinterPort - java

I'm new here.
I need help, right now I'm coding for android and involved in 'have to connect to printer' thing.
I already import the HdxUtil library, but I don't seem to found method HdxUtil.GetPrinterPort();
does anyone ever see this problem or familiar with it?
thank you

Related

I can't find a solution for "The type org.newdawn.slick.opengl.Texture is not accessible"

I'm trying to learn how to make a 3d game engine in java following the tutorials from ThinMatrix (loving them so far). The problem is that one of the libraries from slick-utils seems to be missing? or corrupted? or not supported? I don't really know and I'm a total begginer in LWJGL, OpenGL and big java projects. I searched the error and nothing seems to work or the solutions are too problem specific, ie. related to an error in the coding rather than in the libraries.
There's not much code to show, I add the import in the class and the IDE prompts me with the error on the title: "The type org.newdawn.slick.opengl.Texture is not accessible".
On the comments of the video there was a "solution" that seems to have worked for at least 5 people, but for some reason it doesn't work for me.
The problem in the solution code (that avoids using slick-utils) is that there's a MemoryStack class that I can't seem to find anywhere, I serached the text that the IDE prompts me but it was fruitless...
This is what I searched for: "MemoryStack cannot be resolved", and for the life of me I can't find how to import, resolve, or do anything, really.
I'm really frustrated and google isn't my friend today, it seems.
I think there may be a problem with the LWJGL libraries that I'm using (I don't remember if I'm using LWJGL2 or 3, I believe 2 because the tutorials are from 2014 and 3 didn't exist yet? Idk), but I can't figure out what's the problem and all the hints that the IDE trows at me are leading me to flat out dead ends.
Thanks so much for reading, and helping me if you can! I can show the code but I don't think it matters that much, as the problem seems to come from the slick-utils library being corrupted or something, or that I don't understand how to add it properly to my project.
This should be the minimum reproducible example:
import org.newdawn.slick.opengl.Texture;
This is the first question I make so feel free to tell me if I'm missing something or whatever! :)
It's often the case that googling specific parts of a new error message will find other people who have had the same problem. When I google that class name, I find someone who had the exact same problem that you did, many years ago. The thread shows where to find the library which has that class.
https://gamedev.stackexchange.com/questions/35047/where-can-i-find-the-library-for-org-newdawn-slick-opengl-texture

Import doesn't work. Android Studio, SDK, Linux

I have two example imports.
import android.os.MessageQueue;
import android.os.PerformanceCollector;
Both files, after tracking them down, is in Android/Sdk/sources/android-19/android/os. MessageQueue.java and PerformanceCollector.java.
In my Android Studio->Project Structure->SDK Location, Android/Sdk is marked.
MessageQueue works. PerformanceCollector gives "Cannot resolve symbol 'PerformanceCollector'".
Cleaning/invalidating caches/restarting/reimporting did not work. Can someone suggest what might be the cause of this? It would be appreciated.
I don't know why I didn't find the PerformanceCollector class in Android Documentation
but you can use this code. Just create a new class in your application
PerformceCollector Source code
pskink was correct. The reason I was seeing an error was because the class "PerformanceCollector" was hidden by {#hide}. However, having done further research from there I have found that this isn't an issue at all.
How can Android project compile when imported class is missing in SDK?
- From reading the answer to this question, I have found that the error will not appear when running the application at runtime, so the fatal error I am getting has nothing to do with the issue I asked this question about. It was unrelated, as I now know what the real cause was.
So, pskink answered with a comment and not a proper answer, so I can't mark him/her as being correct. So, this will do. Thank you all who've read my question and so on.

NetBeans doesn't want to build (import) Android support lib

I use NetBeans and don't want to switch to Eclipse cause of this but it really gets on my nerves. I imported support.v4.app.NavUtils and it still says it can't find it. Here's the picture. Please help me!
P.S. Sorry if it's trivial problem.

Run Java ScreenGrabber example

I'm trying to test the Screen Grabber sample from JMF. Could anyone tell me how to write the main method to run this example?.
I have reviewed a lot in Google and have not found a way to make it work. because I do not know which of the two classes (LiveStream or DataSource) I must to use in the main method.
otherwise, I tried running the command:
java JMStudio screen://0,0,160,120/10
But it shows me the following exception:
UNABLE_CREATE_PLAYER*javax.media.NoPlayerException: Cannot find a Player for :screen://0,0,160,120/10
Thanks for the help.
Greetings!
Don't.
JMF never really worked out and has been abandon. (Google: "JMF is dead".) Find another mechanism for screen grabbing.
it's a late answer, but with the same hopes as Lobo, i'd like to add some constructive info :
1) JMF is old but also an old gun. it's working
2) it's pure Java, and if you are a Java guy, it will be helpful, this way or that way
3) use the methods you mentioned, if you can. follow the tutorial. otherwise, there is a free package that can be downloaded from http://www.kemottron.com, MODERATOR-CONFERENCE, you can try. pure Java, and it captures your desktop and broadcast to the Internet.
regards,

Where can I find "Device" file to add to EclipseME java project?

I installed JavaME and EclipseME, and I'm trying to make a Hello World to my Nokia5530. But the imports are not working.
This page says that I need a "Device" file, but I don't know where to find it.. any idea?
Since it appears no on else is helping with this, I will start an answer, and put in my last comment into here.
OK, you need to install the Nokia SDK and then import it, as explained here, though your phone may not be series 60, you will need to d/l and then import the appropriate nokia sdk version: http://wiki.forum.nokia.com/index.php/Installing_Java_ME_development_tools_for_S60#Configuring_EclipseME
I haven't tried the suggestions here as I primarily develop on Windows at the moment, but the idea of using wine to install the SDK, and then move the files to an appropriate place on Linux sounds like a reasonable suggestion. I don't know if the suggestion below of compiling it yourself would be useful, but, there were some suggestions in the link below that may help you solve this particular problem.
http://www.wirelessforums.org/alt-cellular-nokia/nokia-sdk-linux-8895.html

Categories