You Are Here:

Community: Developer Discussion Boards

#1 Old Calling Native SMS API from JAva App - 2003-10-12, 08:04

Join Date: Oct 2003
Posts: 3
paulbutler
Offline
Registered User
I'm writing a Java Application to run on a 6610 (and basic model phones) but I need to be able to send data by SMS. How can I access the native SMS API ?

I know you can use WMA to achive the same but this is only found on high-end phones.

Thanks
Paul
Reply With Quote

#2 Old 2003-10-12, 15:16

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
Nohow, only apps, that a secure for sure can freely send/receive smses. Freely downloadable Java MIDlets are not among them
Reply With Quote

#3 Old 2003-10-12, 23:05

Join Date: Oct 2003
Posts: 3
paulbutler
Offline
Registered User
Thanks for feedback - What paltform should i use if i want to develop applications for low-end phones that can SMS the data entered.
Reply With Quote

#4 Old 2003-10-13, 09:07

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
U can use Symbian for Nokia Series 60 phones
Reply With Quote

#5 Old 2003-10-29, 10:30

Join Date: Oct 2003
Posts: 8
Location: Milano, Italy
loregian
Offline
Registered User
Do you mean that I can write a SMS with a Serie 60 phone (a 3650 or 7650 for example) and that's the only platform on which it is possible?

My problem is that I'd like to transfer some data through IrDA and since I cannot send it directly through a MIDlet I thought (since I only need to transfer very small amounts of text data) I could store my string into an SMS or MMS and then write a server-side component that could download that sms through IrDA and read it.

Do you think this is a feasible solution for my problem?

My last chance would be to send that string directly as an sms to a specified number but I'd prefer not to.

Thank to all who might help me :)
Reply With Quote

#6 Old 2003-10-29, 10:44

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
Do you mean that I can write a SMS with a Serie 60 phone (a 3650 or 7650 for example) and that's the only platform on which it is possible?


Actually only 3650 of those two, not 7650 :)
Phones that support WMA or Nokia SMS API (very close to WMA) are able to send SMSs. Look at devices specifications to find out which phones support WMA. Post results of your research here of course :)

My problem is that I'd like to transfer some data through IrDA and since I cannot send it directly through a MIDlet I thought (since I only need to transfer very small amounts of text data) I could store my string into an SMS or MMS and then write a server-side component that could download that sms through IrDA and read it.


MIDlet can interact with the outer world only by the means of Bluetooth (if phone supports Bluetooth API), SMS (if phone supports WMA API) and HTTP (every MIDP1.0 phone supports this one). Some phones also support socket connections, but most of Nokia phones don't.

Choose any option you like :)
Reply With Quote

#7 Old Thank you :) - 2003-10-29, 11:37

Join Date: Oct 2003
Posts: 8
Location: Milano, Italy
loregian
Offline
Registered User
Thank you very much for your quick, detailed and very useful reply.

I think I'll try the SMS way (store data I need in an SMS without sending it) and try also to write a "Standard Edition" Component to access those sms on the phone via Infrared. I think it should be feasible since there are many suites around for synchronizing calendars, address books and all that stuff.

I presume it's possible to save an SMS in a folder without sending it. [This is my last question ;) ]

Thank you again,
Marco

P.S. doctordwarf: I've been to Oulu University twice and I like your city very much.
Reply With Quote

#8 Old 2003-10-29, 12:00

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
I presume it's possible to save an SMS in a folder without sending it. [This is my last question ;) ]


..I presume it is not.
..I am not completely sure about this issue, but I can hardly imagine why WMA designers would create delayed SMS sending feature..
If MIDlet wants to store SMS, it can use RMS database.

Well, on Symbian phones you can save your pseudo-SMS into RMS database and access RMS-DB file using Symbian facilities. Actually, this way you can store data in your own format, no need for SMS restrictions.

However, there is no guarantee that future phones will store RMS-DB same way as they do it now.
Also you'll have to check current format. I assume that phones just pull all the MIDlet's RMS-DB content into single file without any compression, but they might add some index entries.

Heh, there's no guarantee, that all the phones do it same way, though I expect same Symbian versions do the same

I've been to Oulu University twice and I like your city very much

Those who thinks of world as a big village are mistaken. In fact it's a small village :)

Yep, nice city :)
Actually I just moved here this summer from Jyväskylä and I'm originally from Ukraine. Forum Nokia is quite an international place :)
Reply With Quote

#9 Old 2003-10-29, 12:37

Join Date: Oct 2003
Posts: 8
Location: Milano, Italy
loregian
Offline
Registered User
>>I presume it's possible to save an SMS in a folder without sending it. [This is my last question ;) ]
>..I presume it is not

Alas, this is bad indeed. I'm checking out documentation and I found no mention of it.

So if I want to go on on my "store & retrieve" way I have to check whether sent messagese are store in the "Sent Items" folder at least or not. I don't think they are, but I should try.

Else I could just send data via SMS to my recipient (could be both as binary or text) but this does not fully fits my needs. I really wanted to use IrDA in my project because of many qualities infrared comunication has and others have not, despite of other lacks I care less.

I don't understand what you refer to with this:
>Well, on Symbian phones you can save your pseudo-SMS into RMS database and access RMS-DB file using Symbian facilities. Actually, this way you can store data in your own format, no need for SMS restrictions.

Do you mean I can save data and then retrieve it anyway from external devices? It seems like rms can only store for internal purposes.

It would be very nice for me to find a way for passing (user created) data from a phone to a PC without passing throug GSM net or the Internet.

Thank you again,
Marco
Reply With Quote

#10 Old 2003-10-29, 12:46

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
So if I want to go on on my "store & retrieve" way I have to check whether sent messagese are store in the "Sent Items" folder at least or not. I don't think they are, but I should try

I think I've seen somewhere in WMA docs that WMA messages should not be visible for user... I'm not sure
And even if they are not visible for user, they still might be accessible programmatically.

How are you going to put them into "Sent" folder if you are not going to actually send messages?

Do you mean I can save data and then retrieve it anyway from external devices? It seems like rms can only store for internal purposes

The point is that RMS-databases are stored somehow on the phone. And on Symbian phones they are stored just as simple files. Hence, if you can access phone files, you can access RMS-DB.

You can have a look at RMS-DB files by creating DB in some MIDlet and then browsing your phone with FExplorer or any other Symbian file browser
Reply With Quote

#11 Old 2003-10-29, 13:12

Join Date: Oct 2003
Posts: 8
Location: Milano, Italy
loregian
Offline
Registered User
>How are you going to put them into "Sent" folder if you are not going to actually send messages?

I meant that I could send the message and then see if it's saved or not... but this would be silly since once I've sent the message I'd already have it on the other side :)

I like this thing of accessing RMS-DB files and I'd try it if I only had a Symbian phone. I don't think that an emulator could give me the possibility to check if I can save this file and see it through IrDA. The point is always that "if you can access phone files" :)

Thank you *very* much for your help, I learnt a lot this morning.
Reply With Quote

#12 Old 2003-10-29, 13:24

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
Just to make sure, that these things are clear:

1. You cannot access/transfer files using Java MIDlets
2. You can easily access them using Symbian C++ apps and send them via IR
3. You might be able to access it from desktop app (without writing Symbian program). Ask in Symbian area of this forum
4. RMS-DB might be saved in some specific format. You'll have to decode it. And there's no guarantee that future phones will use same format
Reply With Quote

#13 Old 2003-10-29, 13:38

Join Date: Oct 2003
Posts: 8
Location: Milano, Italy
loregian
Offline
Registered User
>1. You cannot access/transfer files using Java MIDlets
Ok, I got this :)

>2. You can easily access them using Symbian C++ apps and send them via IR
Although I am a Java programmer and have never used C++ I think I can switch to it.

>3. You might be able to access it from desktop app (without writing Symbian program). Ask in Symbian area of this forum
I will take a peek to it :)

>4. RMS-DB might be saved in some specific format. You'll have to decode it. And there's no guarantee that future phones will use same format
This is a further issue I think I can deal with until files are not encrypted somehow.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia