How to send Cell Broadcast message in Java ME development environment? - java-me

I have been trying to develop a Java ME application using WTK 2.5.2 (Java Wireless Toolkit) and Nokia SDK 3. The application would broadcast a CBS (Cell Broadcast Service) message using the WMA (Wireless Messaging API).
Documentations says that the CBS messages are read-only, thus it can not been sent. When I tried to send myself, it threw an exception.
Is there anyone who has some experience with the problem please inform me!
Is there anyway to do this with another SDK or even mimick it?

Your handset is capable of receiving CBS messages, not sending them. They are sent on a many-to-one basis by the operator. See here for more info.
What exactly are you trying to achieve?

Related

Create MediaSource from AudioPlaybackConnection

I'm trying to make my windows computer a valid output for bluetooth audio from my phone. Enabling the actual audio was easy enough using the winrt AudioPlaybackConnection, but I'm trying to get metadata working and running into dead ends in the Windows UWP documentation. I'm familiar with the MediaPlayer class, but I can't see how to set the source to the AudioPlaybackConnection. My next thought was to create a MediaPlayer and handle the controls/metadata myself, but I can't see how to access the metadata for the AudioPlaybackConnection either. I tried getting the BluetoothDevice matching the same phone since I see the properties for the actual device list AVRCP Transport and A2DP SNK as two separate hardware "devices" making up the phone device, but I have no more luck accessing metadata with the BluetoothDevice. I know Windows 10 supports Bluetooth's AVRCP and can handle metadata/controls (source), but I'm beginning to think it's under a different device in winrt and I don't have the winrt know-how to track it down.
I've consulted the Bluetooth team about this. But currently, control like this is not supported in Windows at this time. You could submit a feature request about this in the Feedback Hub. Please select Developer Platform->API Feedback as the category when you submit your request. The related team will check the request.

React Native - How to make two devices communicate between each other when connected to the same network?

I'm working on a personal project in React Native and part of it involves two devices, regardless of whether they're Android or iOS and both using this app, sending each other some data in a JSON format. To give some context, three devices (A, B and C) are connected to the same wifi network and once device A created a group, devices B and C should be able to find device A through a unique id and then send data to it. Device A, upon receiving data, will do some stuff and send a status code back.
I couldn't find questions about this related to react native, but more about Android and WifiP2P. I also found an npm packages (p2p), but being new to React Native, I'm not sure if you can use them or if they only apply to browser-related code.
Can you guys help me finding libraries to use to accomplish this?
Edit: I also found this package, but it looks like you have to invite a device to be part of a channel, rather than ask to join. Can anyone confirm if that library could work for my purposes and if there's a workaround for the issue I just described?
You can use react-native-wifi-p2p
react-native-wifi-p2p is a library that provides WiFi Direct (peer-to-peer) services to a react native system.
Important: currently only Android support realized. If you want to provide iOS support, then you should to note to react-native-multipeer repository.

How to implement push notification in Nokia Series 40 using Nokia Java SDK 2.0?

I want my app to be able to receive notification from the server while it is running in the background. I don't like pooling, that will drain user's battery since I need almost realtime response, does Series 40 support that?
To answer the question if you can intercept SMS on an S40 phone then I'd say yes. You can use push registry. See this link for the j2me sample. This is only half of the problem as this is the receiving end. You need to create a server that "pushes" a message to a certain mobile number on it's push registry port. You can use an SMS gateway maybe to push messages?

Reading SMS from inbox in j2me

I am using j2me technology. My application is for sending and receiving sms. Sender can not send sms on specific port and sms always goes to inbox. Is it possible to read sms from inbox in j2me?
No you cannot read SMS from inbox in J2ME. However you can do so using AT commands as I described in this answer.
You can not read SMS from Inbox directly. For reading SMS from Inbox you need APIBridge.jar. Using this .Jar file you can read the SMS from inbox too.
For Sending SMS on a particular port, try this Sending/Receiving SMS from MIDlets
The API Bridge package includes a server component and set of plug-ins that are installed on a Nokia Symbian device. This device component is complemented by a JavaScriptâ„¢ library, set of ActionScript classes, and a JAR file containing classes and resources that enable the use of the features of the shipped plug-ins.
The other features of APIBridge.Jar is as follows,
Uploading files.
Capturing video, image, and audio.
Reading files.
Resizing images.
Creating image thumbnails.
Using the logging service.
Using the location service.
Using the media management service.
Sending DTMF tones in an active call.
Please note that APIBridge.jar works for Symbian OS Based Phone Only. Not for S40 Device
Yes it can be done with AT-command. I have done it before. J2ME can't read your native SMS can came with the phone unless you write a background processes in Symbian C++ that extracts the SMS from your inbox and handles it to your Java ME application.
In the AT command implementation, you use the following algorithm
Set the phone on text mode by doing this - "AT+CMGF=1" + RETURN, then also send AT+CMGS="RECIPIENT NUMBER " + CTRL+Z. Then, before you can send the AT command to the GSM modem, in your J2ME program, you need to use CommConnection framework i.e. serial port protocol.
You can receive/send SMS messages using WMA https://web.archive.org/web/20070205092831/http://java.sun.com/products/wma/
A sample application can be found here

What are the codes(like MEID) related to CDMA phones?

What are the codes related to CDMA phones? Like we have IMSI,IMEI,CellID in GSM,do we have any such codes that can be retrieved from a CDMA phone?
And can anyone suggest how to retrieve them from a phone(programatically)?
There is still no standard J2ME telephony API, so either see what the cbs connection in JSR-120 can give you or use system properties.
I would suggest trying to retrieve the same codes on a GSM phone and on a CDMA phone. It might just work.
To retrieve the IMEI, look at:
Getting Device IMEI

Resources