Domanda

Sono in alcun modo un esperto di Java (non proprio intermedio o), ma posso scrivere abbastanza per me. Al lavoro siamo alla ricerca di un modulo wireless Cinterion TC65 che corre integrato Java con una sim card 2G per le connessioni di rete. Non ho mai fatto Java dev cellulare in modo tutto startApp (), pauseApp (), destryApp () mi sta gettando un po '. Quello che ho bisogno di sapere è se possibile includere normale codice Java, vale a dire. Connessioni Mysql, connessioni HTTP? Oppure il tutto deve essere fatto nel corso comandi AT? Ho bisogno di Java buffa di darmi una mano su questo :) Grazie

È stato utile?

Soluzione

Currently there are various UI framework available for J2ME app development

  • lcdui
  • lwuit
  • kuix

If you want simple UI then go for lcdui , It also comes with Netbeans designer so you don;t need to much worry about designing form and flow of application.

You can't have mysql connection directly from j2me application, for that you need to port your webservices accessing your DB and you can call your webservices. you can also make URLConnections.

Altri suggerimenti

The TC65 and later modules such as TC65i, BGS5, EHS6, ELS61-E all run Java ME 3.2 so you can write normal Java. But you do have to write with a reduced J2ME 3.2 feature set, you cannot use newer features of Java 7 or 8 for example.

The two development environments you can use are Eclipse Juno and Netbeans 7. These come supplied on an installation "CDROM" download.

These two links show how to get started with either Eclipse or Netbeans on a current module such as BGS5 or EHS6. The simple tutorial re-uses an beginner's example from a Java text book:

Eclipse - https://developer.gemalto.com/tutorial/starting-out-java-me-volcano-robot-project-eclipse-juno

Netbeans - https://developer.gemalto.com/tutorial/starting-out-java-me-volcano-robot-project-netbeans-72

There are further examples of using HTTP connections on the developer website:

String connProfile = "bearer_type=gprs;access_point=internet;username=;password=";
http = (HttpConnection) Connector.open(url + ";" + connProfile);

You can also use the module's Internet Services via AT Commands, but there is no need as most functions have Java APIs associated with them.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top