java import for HttpConnection
My code has an error that says HttpConnection cannot be resolved. The documentation says it is in the javax.microedition.io package, so I tried:
import javax.microedition.io;
That results in an error stating only a type can be resolved. Using quick fix results in:
import j开发者_开发问答avax.microedition.io.*;
I’m assuming something is wrong with the imports?
The second import should solve your problem with resolving HttpConnection. However, HttpConnection is an interface. Are you using it as a class?
精彩评论