WMA on Real Device
Hi
can any one tell me how to install WMADemo application (containing SMS Sending and receiving) on a real Mobile Device ?
Ajay
Hi
can any one tell me how to install WMADemo
application (containing SMS Sending and receiving) on
a real Mobile Device ?
AjayIt depend from device. On some devices you may send this program by bluetooth, on some you must install them from phone's wap explorer etc..But !!! not all mobile phones have JVM with WMA. Second problem is that WMA has two versions - 1.1 and 2.0. In wersion 1.1 for example you may not send MMS messages.
Similar Messages
-
"Application Error" While running application in real device
HI all,
When i run application on real device( Nokia 7360), It gives me Application Error
My application is running well in wireless toolkit Emulator..
I dont know why this is happining on real device?...
regards
PravinHere is the code
It just create a new contact in the AddressBook
and i use Nokia 7360 for running my application
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.pim.*;
import java.util.Enumeration;
public class AddContact extends MIDlet implements CommandListener,Runnable
Form form;
Display display;
Command exit;
Command add;
Alert alert;
public Thread th;
private boolean quit = false;
public AddContact()
display = Display.getDisplay(this);
form = new Form("Add Contact");
exit = new Command("Exit",Command.EXIT,1);
add = new Command("Add Contact",Command.OK,1);
alert = new Alert("Add Contact","Contact Added Succesfully",null,null);
alert.setTimeout(Alert.FOREVER);
form.addCommand(add);
form.addCommand(exit);
form.setCommandListener(this);
public void startApp()
display.setCurrent(form);
th = new Thread(this);
public void pauseApp()
public void destroyApp(boolean unconditional)
public void commandAction(Command c, Displayable d) {
if(c==exit)
destroyApp(false);
notifyDestroyed();
else if (c == add)
if(!quit)
th.start();
display.setCurrent(alert);
public void quit()
quit = true;
public void run()
while (!quit)
try
PIM pim = PIM.getInstance();
ContactList cl = null;
Contact new_contact = null;
Enumeration read_contact = null;
String final_no="";
try
cl = (ContactList)pim.openPIMList(PIM.CONTACT_LIST,PIM.READ_WRITE);
catch(PIMException pime)
Alert alert_1 = new Alert("Error","Error Accessing Database"+pime,null,null);
alert_1.setTimeout(Alert.FOREVER);
alert_1.setType(AlertType.ERROR);
display.setCurrent(alert_1);
catch(SecurityException se)
Alert alert_2 = new Alert("Error","Security Error"+se,null,null);
alert_2.setTimeout(Alert.FOREVER);
alert_2.setType(AlertType.ERROR);
display.setCurrent(alert_2);
new_contact = cl.createContact();
new_contact.addString(Contact.TEL,Contact.ATTR_HOME,"123456");
new_contact.addString(Contact.FORMATTED_NAME,Contact.ATTR_NONE,"AasdD");
new_contact.addString(Contact.TEL,Contact.ATTR_MOBILE,"2634465");
new_contact.addString(Contact.TEL,Contact.ATTR_FAX,"+91 7834465");
new_contact.addString(Contact.TEL,Contact.ATTR_PAGER,"7034465");
new_contact.addString(Contact.TEL,Contact.ATTR_MOBILE,"9234465");
try
new_contact.commit();
catch(PIMException piem)
Alert alert_4 = new Alert("Error","Error while saving Data"+piem,null,null);
alert_4.setTimeout(Alert.FOREVER);
alert_4.setType(AlertType.ERROR);
display.setCurrent(alert_4);
try
cl.close();
catch(PIMException piem)
Alert alert_5 = new Alert("Error","Error Closing Application"+piem,null,null);
alert_5.setTimeout(Alert.FOREVER);
alert_5.setType(AlertType.ERROR);
display.setCurrent(alert_5);
catch (Exception e)
Alert alert_4 = new Alert("Error","Error on first try"+e,null,null);
alert_4.setTimeout(Alert.FOREVER);
alert_4.setType(AlertType.ERROR);
display.setCurrent(alert_4);
quit();
-
MIDP 2.0: Problems on real device
Hi All,
im experiencing an issue with my small midlet. I wrote it using NBeans5Beta and tested on WTK 2.3 and it worked fine- without any exceptions beeing thrown etc. But on real device I have - Moto V600 (MIDP 2.0, CLDC 1.0) it crashes in some strange way.
The app has several classes with their forms. An those forms it is possible to 'click' on some items and this navigates to the same forms but with a bit different content. It looks like this:
1. Class 1 has its form (FormClass1) - that is created& populated on creation and modified when handling an item command from this initial form. This form serves as micro browser through hyperlinked pages.
When on a specific textitem a command is invoked the class just clears the form using:
FormClass1.deleteAll()
changes the title:
FormClass1.setTile("xxx")
and adds some new elements (text items) to the form.
2. Class2 has also its form (FormClass2)- and behaves exaclty the same as class 1 with one remark - no title is changed.
When I run the midlet on WKT simulator - it works just fine - no issues, crashes, exceptions. Ive tried with several sims (some Moto provided, WKT several versions) and it works.
When I upload it to my V600 - it crashes on Class1 when 'clickin' an action that rebuilds the form. One important remark here is that once I click the link on Page1 (ex. targeting to Page2), i can see that my form is reloaded with Page2 contents - but when I only press my up or down button on the mobile (what makes navigation on page elements) - the app exits - im back on my phone main screen. The message is that application performed some incorrect operation.
What is even stranger - is that when I perform same operations for Class2 - it works - i can delete all elements from its form - readd new elements and still navigate without crashes.
From the code perspective those two classes looks almost the same (structure). And this makes me even more confusing.
Can I test it somehow on my PC (simulator) with some more strict restrictions - that I will catch this issue and can debug it ?
Looking for help.
Thanks in advance
Cheers
hyparkHuh, answerying my own questions ( i do not expect any dollars from that :)).
Anwyay - doing new Form() instead of deleteAll on FormClass1 helped a lot :). Still dont know what is the root cause of that situation but now will look into it more efficient.
For Moto phones there is a nice utility called Midway (2.*). Once U have an USB cable You can track with that utility the output from Midlet running on real device (both exceptions, and System.out/err statements :)). -
How can I load font in real device?
I am building mobile text SMS in my native country language using j2me wireless toolkit. But I face one problem. Without installing font in windows font directory, I did not display my country font. I used Unicode for my project. My question is:
* How does the real device get my desire font without install it to device.
* If I want to give fontname.ttf file with my package. Where can I load this file in midlet package/ midlet suite? Does it work on device?
Please, help me.
BabuHi,
U can try this
http://developers.sun.com/techtopics/mobility/midp/articles/termemulator3/ -
Secure certificate in a real device??
regards!!
I have a doubt ... I´m develops an application in J2ME using a secure connection with HTTPS, and
I'm using apache with self signed certificate ...., (use OpenSSL to do this), to run the application in the emulator,
I need to add the root certificate to the certificate store of the emulator, once done, the connection
works perfectly .....
my problem is that: when I moving the application to an real device (I'm doing tests with a nokia 5310 and a Sony K550),
the applicative don´t work and show me a runtimeException: Invalid certificate (bad certificate ).... I guess that is because I need to add the root
certificate to use for apache, in the real device ......, but I searched and read many forums, but i can´t find how
to do this... anyone have any idea?You most probably need a real certificate from Certificate Authority recognized by your device.
-
SUP 2.1.1 - Blackberry native app could not connect to SUP in a real device
Hi,
I'm developing a native BB app, and I'm almost done, but it doesn't work in a real device.
For some reason, when I execute the medhot beginSynchronize to get data from SUP, the http connection petition through RBS port never reaches the SUP server... But the same code in the same device simulator works all right...
I've tried via 3G (public IP with the RBS port opened) and wifi with the network IP, but the result is the same...
Can anybody help me?I think it's because the device OS version... 7.0 is not supported by Sybase
-
Want to deply my project on real device
Hello Friend,
I have develop my application using netbeans 6.5. Now I want to test it on Real device, How i will be able to deploy my application so that I can run it on real device.
Any help would be appreciated.
Thanks.
Regards,
Ravi-IndiaPhiLho wrote:
As time of writing, to my knowledge, JavaFX mobile isn't ready for real deployment on physical devices, ie. it works only on emulators.See: http://forums.sun.com/thread.jspa?threadID=5352750 -
App working fine on all emulators but not on real devices
hi, i made a 3d scene using height map it worked perfect on sun emulator but did not work on real device Nokia 6280 and instead said nullpointer exception there is no err with jar file or any other small error.
When i run that same application on sonyerricson emulator then it did not show anything at all just blank screen on all phone of sony erricson
plz help me regarding this issue
thanks
byehi,
can u describe more detail about your application.I think you are using any API that is not implemented on real device. -
Cant achieve sendind SMS on the real device.
Hi, I tested my code on the emulator and worked, now I tried to send a sms from a device to another and the icons show that some data are being transmited but the SMS never arrived or at least I cant see it.
I am sending from a Blackberry 7290 and sending it to a samsung sph-i550, the blackberry seems to be sending correctly the message but the cell phone never receives it. What can it be?mmmm, Any clue here is my code. It works on the emulator but not on the real device, actuallt I have only a Blackberry 7290 to test it.
This is the code of my Thread.
SMSManejo sms=new SMSManejo ();
try {
boolean envio=sms.enviarSMS (sms.conectarSMS ("sms://+5935433278:0"), "Hola, mensaje de prueba");
m.append ("Envio de sms: "+envio);
} catch (Exception E) {
m.append ("Error: "+E.getMessage ());
}And the SMSManager class.
public class SMSManejo extends Thread {
boolean salir;
public SMSManejo () {
salir=false;
public MessageConnection conectarSMS (String URL) throws Exception{
MessageConnection servercon= (MessageConnection) Connector.open (URL);
return servercon;
public boolean enviarSMS (MessageConnection mcCliente, String mensaje) {
TextMessage Tmensaje = (TextMessage) mcCliente.newMessage (MessageConnection.TEXT_MESSAGE);
Tmensaje.setPayloadText (mensaje);
try {
mcCliente.send (Tmensaje);
return true;
} catch (Exception E) {
E.printStackTrace();
return false;
public Message recibirSMS (MessageConnection mc) {
try {
return (mc.receive ());
} catch (Exception E) {
E.printStackTrace();
return null;
public void run () {/*
salir=false;
MessageConnection mc=conectarSMS ("sms://:6050");
while (!salir) {
Message mensaje=recibirSMS (mc);
if (mensaje instanceof TextMessage) {
TextMessage mensajeT=(TextMessage) mensaje;
String texto=mensajeT.getPayloadText();
FileManejo fm=new FileManejo ();
fm.agregarRegistro("Mensajes entrantes", texto.getBytes ());
try {
mc.close();
mc=null;
} catch (Exception E) {
E.printStackTrace();
public void salir () {
salir=true;
public void cerrarMC (MessageConnection mc) {
try {
mc.close ();
} catch (Exception E) {
E.printStackTrace();
}So the output on the device is:
Envio de sms: true -
Cannot build ios app on real devices
Hi guys,
I recently made some changes to the KeyChain Access. I remembered I copied some certificates from system root to system and delete the certificates in system root. Now in XCode I don't see my real devices. I can only build on simulators but not on real devices. I checked the organizer and found the Provisioning Profiles says 'valid signing identity not found'.
I am not sure whats going on here. How can I recover the keychains I broke and be able to build app on real devices?
Thanks!
-Erbeneverything seems to be fine after I reboot my mac...
-
Sun Java Wireless Tookits and Real device communication via bluetooth
Hi,
I have one Bluetooth Adapter plugin my PC, Can I use JWT emulator to communicate to a real device via Bluetooth? Is there any configuration I have to do on JWT? Thanks.
Regards,
BenCan I use JWT emulator to communicate to a real device via Bluetooth?No.
db -
Import Configuration as real device not simulated
Hoping there is a way for this.
We have multiple DAQs and multiple computers that can be used in any configuration at any time. One computer has all the DAQs in NIMAX loaded. We would like to be able to grab any computer use any VI and use it with no worries of configuration (DAQ1 is DAQ1 on each computer).
I backed up the configuration file on the main computer, and attempted to export it on another. It states that all the devices will be simulated on the new computer. If they are simulated in NIMAX, correct me if I'm wrong, when I connect the real daq to that computer it will create a new device assigning it a new number, and therefore not allow the VI to work without re-configuration. Am I correct on this? How do I get around this?NIerrors wrote:
I backed up the configuration file on the main computer, and attempted to export it on another. It states that all the devices will be simulated on the new computer. If they are simulated in NIMAX, correct me if I'm wrong, when I connect the real daq to that computer it will create a new device assigning it a new number, and therefore not allow the VI to work without re-configuration. Am I correct on this? How do I get around this?
When you add a read card, just delete the simulated device and configure the real one to be whatever name you need it to be. Shouldn't take more than 2 minutes (including the loading of MAX).
Or if you really want to play it safe, delete the simulated device and then reimport your DAQ configuration.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Application works in emulator but not on real device
Hi Everyone,
I have been trying to build this application and avail users to download it from a WAP page.
Now, initially for testing purpose I managed to transfer it on my mobile device which is a Sony Ericsson Z800 using a data cable.
The application downloads 2 images from an Apache Tomcat web server and displays it on user screen. I have created this application using MIDP 2.0. I managed to install it on my mobile device and now when I m trying to send request to the server I wont get any response ? The request itself is not reaching to the web server.
Strangely it works when I give a static path from my mobile browser like: http://xxx.xxx.xxx.xxx:8080/servlet?param1=x¶m2=y but when the same path is accessed from installed application it wont work :-(. Its a static IP so there is no problem with changing of IP Address.
Please note that I have transferred only the jar file. Does that make any difference ?
Please guide me as to where I m going wrong..
RegardsHey thanks mate.
I have posted my code in other thread if you would like to have a look at it.
I m using 3G to access my webserver. Oh yeah, I m using pure HTTP and not WAP-HTTP since I have changed the configuration.
But, as I said previously I had no problems doing the samething from the same device although I didnt send any data, just something like pinging the web server and getting a reply in form of say " works1","works2" and so on....
Ok, I will have a look at device config. data sheet.
Thanks for your reply -
How to run a midlet on a real device and other questions!!VERY VERY URGENT
PLEASE I NEED HELP FOR ALL THESE DETAILS
AS SOON AS POSSIBLE
hi
i would like to know the following details regarding
J2ME:
1. What is the size of a KVM(Kilobyte Virtual Machine)?
2. What would be approximately the memory size
of a mobile phone?
3. How do i transfer my midlet application developed
with the help of a J2ME tool kit to a mobile device?
4. Should the device to which i am transferring
be MIDP compliant alone i.e as of now
i can transfer my midlet application only
to an MIDP compliant mobile device?Or rather
what are the in-built features/softwares/specification
a mobile device should have before i transfer
a midlet to a mobile device??
5.Suppose i have written midlets...and put them
in .jad and .jar files(midlet suite has been created).
Now suppose i have to download it to my
mobile phone,how do i do it?
And if other people have to download it to
thier mobile device...i need to put it on the web-site
right?How do actually put my midlet to a web-site?
Are there any steps involved for all that?
6.Will the mobile device have ENOUGH MEMORY
for executing the midlet which i have created
considering the memory constraints of a mobile
device.Also the fact that the KVM also
would take up a lot of space though it is measured
in kilobytes
thanx in advance2. What would be approximately the memory size
of a mobile phone?
This depends on the phone vendors.But the min size should me 128kb.Normally it should be 128 to 512 kb.
3. How do i transfer my midlet application developed
with the help of a J2ME tool kit to a mobile device?
There no provision to do this with j2mewtk.
Once angin this depends on the phone vendors.If the phone supports to download from a site then you can directly download it from that site or you have to connect to pc(you have to install the Java Application Manger) and then you can do it by using a serial cable.
4. Should the device to which i am transferring
be MIDP compliant alone i.e as of now
i can transfer my midlet application only
to an MIDP compliant mobile device?Or rather
what are the in-built features/softwares/specification
a mobile device should have before i transfer
a midlet to a mobile device??
The device must be j2me enable.ie midp/cldc compatble.Then you can download the application on to the device.
5.Suppose i have written midlets...and put them
in .jad and .jar files(midlet suite has been created).
Now suppose i have to download it to my
mobile phone,how do i do it?
And if other people have to download it to
thier mobile device...i need to put it on the web-site
right?How do actually put my midlet to a web-site?
Are there any steps involved for all that?
How to download i already explained in q3.
If you place the .jad and .jar in www.j2me.com/app/
then In your jad you must give the url of the midlet.
Then any one can download your application.
6.Will the mobile device have ENOUGH MEMORY
for executing the midlet which i have created
considering the memory constraints of a mobile
device.Also the fact that the KVM also
would take up a lot of space though it is measured
in kilobytes
Once again This also depends on the phone vendors only.For motorola i85 they support 50kb, NTTDoCoMo phones they support only 10kb size of your application.
All The Best
Gone anything worng plz let me know
koka -
Google Maps API for flash not working on real device iPad
I use flash builder 4.5.1 to build app for Google Maps API for iOS (map_flex_1_20.swc), and it is working well even on the simulator on PC, but after I generate the IPA use FB4.5.1, and install on iPad , it not working at all, only show a while screen.(I used the TabbedViewNavigatorApplication, the botton Tabbar is working, I can switch the page, but on the maps page show nothing)
I also try the code on Flash CS5.5 using map_1_20.swc , when on the PC debug, it works well,(swf files), but install the AIR ipa on the iPAD, show nothing only a white sceeen.
anyone met this problem?You can also use the MapQuest Mobile Flash Maps API. It's supported by MapQuest and does not need any work-arounds in order to work with the Flash Platform. It also takes advantage of the "build once, deploy anywhere" functionality in Flex 4.5+. MapQuest provides a demo app for Android and iOS and has the source code available for download, too.
Maybe you are looking for
-
Change date format in EP when introduce values with "/" as date separator
Hi experts, We have ECC 6 EHP3 with Enterprise Portal 7 SP 18. We instal BP_ERP5ESS 1.31 SP 4.0, BP_ERP5COM 1.31 SP 4.0, BP_ERP5MSS 1.31 SP 4.0, SAP_ESS 603 SP 4.12 and SAPPCUI_GP 603 SP 4.1 We activate the Travel Management (FIN_TRAVEL_1) business f
-
Quality Inspection in EWM - Partly accepted scenario
Hello Everyone I need help regarding partially accepted scenario. For example out of 10 Cases/Item XYZ of qty 10, 4 are good and remaining 6 are not good. Business wants to accept only those 4 and return remaining 6. In this scenario, how do we confi
-
Passing pl/sql variable to oracle procedure from java
Dear Sir/madam From java its easy to call procedure or function to get pl/sql variables like cursor type or varray type and cast back to that equi type thro' oracle extn package.Is there any way it could be done vice versa.Can i pass Oarcles Pl/SQL d
-
How can I rollback a transaction using EJBContext.rollbackOnly()?
I failed to rollback a "required" method of a seesion bean using EJBContext.rollbackOnly() , but it rollbacked if I throw EJBException , how can I rollback a transaction by EJBContext.rollbackOnly() ? Thanks for your help. regards, dean
-
Can I use MapViewer without Oacle Spatial?
Can I use MapViewer without Oacle Spatial and get spatial data from other method (such as Java Caches or directly from other application)?