[Q] WM 6.1 pro + VB (VS2005) + sending sms it send triple :( - Windows Mobile Development and Hacking General

Hi
I has develoed an SMS sender app using VB from VS2005 and it works fine. however, if i send a message for 2 recipients, for instance, the carrier/service provider discounts 6 sms on my account.
I tried to send the same message to my other new mobile phones and only one sms arrives to each phone. however, the service provider discounts 6 sms because their systems registered 2 messages, 3 for each number... Very strange.
If i send ans sms by hand using the phone (instead of app) the service provider only discounts one sms from my budget...
Dim obj As New SmsMessage
obj = New SmsMessage
For i As Integer = 0 To ListBox1.Items.Count - 1
Dim txt As String = CStr(ListBox1.Items(i))
obj.To.Add(New Microsoft.WindowsMobile.PocketOutlook.Recipient(txt))
Next
obj.Body = TextBox1.Text
obj.Send()
Any ideas?
Thanks a lot
Alex

Related

Light weight & Data Saving Push Mail

I have used several push mail services for my Himalaya since wm2k3, but most of them wants to keep my PPC GPRS online, which sucks the battery and expensive kBytes. There are apps that automatically connects when a mail arives, but they are not FREE.
On the otherhand, all four mobile networks operate in my small country Sri Lanka offers either SMS-Email-Alerts or Email-to-SMS service @ a low rental or FREE. We have to set the mail account to send a copy of mail to a e-mail address like "[email protected]" (eg: [email protected]; [email protected])
Usually these alert SMS are received from a fixed number (eg: 7777) or in a default format for that operator (eg: You have a new mail from...... ; email2sms from......)
So, is it possible to create a free software, where we enter the first few words or the from number of the alert sms, so that the application monitors every receiving sms and if matches with the given criteria, it automatically trigers SEND AND RECEIVE of the selected e-mail account...? So this will work as a free PUSH MAIL software.... Great Programs... Any IDEA? Is it possible with mort scripts?
yes... here
There isalso emoze which you can find here.
Thanks pal
sandworm said:
yes... here
Click to expand...
Click to collapse
Just the one I was looking for. I searched in google, but found nothing. Thanks pal...

Communicating with device

I'm working on a location based app that would request the phone to send its GPS location. My question is, what are the available methods for requesting the location from the device? My first choice was HTTPD but the device IP is unreachable from the world (sprint). My second choice is SMS and have the phone intercept the messages. If it sees a location request SMS then it would respond to a web service with its current location.
Is this a reliable method?
chris
Looks like MS My Phone uses SMS to request phone data... interesting.
Location request:
SkY!AVEjDy2DGyMCE6RO0qhs56aR1/zf42OXBlbdErz6sVTLW6iHFk+wQUhRX6aSEDkI0w==
Ring request:
SkY!AZbZmdMB6eVOig9Y5Ol6QtCQZAVU8XFZLi19k95Cqzn14CZ+qKuUi+2ha3VFqbRdXA==
Lock request: pin 1234, text Chris
SkY!AYDmzGeCMrT8NeDWmn5QaK96Jvsv0mQZIqEgwzvwE35ZCuBZea4M349kMwBkjVV63Y0ROvV+okapsl7UnzqcJBU=
You would think that MS would filter these texts out of the sync process...
The Ring request worked and GPS location failed (btw, the GpsSample from the SDK does not work either). So no MS I don't want to pay 4.99$ for your non-working premium services.
Sky Command Received | Command Locate (ID 2) | Request Id 22815
Sky Command Received | Command Ring (ID 1) | Request Id 22816
I wish the app was .NET like bing so I can reflect on it.
\Application Data\Microsoft\My Phone\Config.dat contains some service end point info. I would like to get the WSDL of those.
I'm curious about HKLM\init\Myphone\OEMOverride = 1.
This is great MS, due to your SMS interceptor I can't send myself any SMSs that start with 'SkY!'.
I tried resending the above SkY requests to my phone. The only thing that happened was the phone backlight came on (the SMS was not visible) and \Application Data\Microsoft\My Phone\MyPhoneLog.txt got an entry appended but the request was not valid. keep in mind that I had to uninstall the MyPhone app and use the MyPhone web site to send out those SMSs so that they would not get intercepted by MyPhoneService.dll.
I stopped the SBB0: service but the SMS still got intercepted. I didn't stop the Notification though: NamedEvents\MyPhoneRuntimeStartRuntime (if that's the right notification).
I guess the next step would be to write a .NET SMS interceptor to see if it will intercept the SMSs or not.
it looks like the interception is done using MAPI Rules which I assume is processed before MessageInterceptor and it looks like the SMS cannot be replayed...
List of commands:HKEY_LOCAL_MACHINE\Software\Microsoft\My Phone\SkyServices\SkyCommands

[Q] Is the SMSC address for inbound SMS stored somewhere?

Hi
I want to write an app that goes through all my stored SMS, lets me pick one and then would display the SMSC address which was involved in sending said SMS to my phone.
Question: Is this SMSC address stored somewhere? And just to be totally clear: I am not asking for the SMSC address of my operator which would be used for sending SMS from my phone to other phones, okay?
I tried to find something in the deprecated SMS content provider. But either I did not look hard enough or it's simply not there.
Has anybody got some tip for me regarding this?
thanks a lot!
gsm-man
Try the following code:
ContentResolver cr = context.getContentResolver();
final Cursor c = cr.query(Uri.parse("content://sms/inbox"), new String[]{"_id", "address", "date", "read", "body", "service_center"}, null, null, null);

[API] Simple API to send messages to/from PC via Android and get contacts.

SMS2PC API
Introduction
It is with great pleasure that today I am releasing the first public beta of SMS2PC API which is designed to allow developers and hackers to quickly and easily send and receive messages via an Android (and soon to be BlackBerry and WinPhone) device as well as loading contact information and address credentials.
The API is designed in an async like manner allowing you to create a request, forget about it and then easily handle any return to the original request while not having to worry about threads, connections and protocol management. As an example, you can send a message with only a few lines of code and then handle delivery notifications and send notifications when they occur by providing a callback that is fired when a the message's status has changed.
You are free to use the API as you wish. You will be able to do things like send messages from a server to notify of events on the server, you could make an application than can receive commands such as ‘shutdown_pc’ via SMS and then shut down the current PC, run in on embedded systems, create alarm system that notify via SMS of intruder etc!
Features
Current
Send message
Handle Delivery Notifications
Handle Send Notifications
Load Contact Details
Receive incoming message from device.
Loading message list for a contact
Upcoming
MMS Support
Inbox Support
Load advanced contact details
Example of Handling Incoming Messages
As an example to highlight how simple it is to receive new messages when the arrive on device the actual code used is provided below.
Code:
class MyHandler implements IMessageReceiveHandler
{
@Override
public void messageReceived(Message message)
{
System.out.println("New message received: " + message.getBody());
}
}
// Create instance of your handler and provide it to the API
MyHandler myMessageHandler = new MyHandler();
sms2pc.setMessageReceiveHandler(myMessageHandler);
Requirements
Current the API is Java based (requiring JRE). We have nearly finished the C# version and the mobile apps for BlackBerry and WinPhone will be available shortly.
Terms of Use
Please be aware that although you are totally free to use the API in any software as you choose (commerial or personal) , the Android/BlackBerry & WinPhone app is currently paid for at around £1.99. Also, if you use SMS2PC API in your software you must provide a mention of this fact in your about/info dialog or help if console application. This may be updated in the future although the price will never increase. If you are an XDA user you can download SMS2PC API for free for Android but must not re-distribute the apk.
Conclusion
Thank you for reading. If you have any questions feel free to email me at [email protected] or PM me.
Can't wait until the c# version is done ^_^
Any chance you plan on fixing the desktop app to work with Lion or Mountain Lion?
It's only $3, but you've got it (literally tried to refund moments later and couldn't), and the app flat out does not work on Mac OSX.
Great work, can you show an example on how to send sms?

[Q] How to group calls from CallLog.Calls by Number

Hello everyone,
I've queried Android's CallLog.Calls and populated an ArrayList with my call model object however when I display these objects in a RecyclerView, certain phone-numbers appear multiple times, once for each call entry that was made from or to that number.
I'd like to group the calls from the same number together.
Is there a built-in way in Android to group these call entries so that I can display them as a single entry in my call log RecyclerView?
I tried to add "GROUP BY" to the query but contentResolver.query() does not seem to accept it in any of its parameters.
Thanks!
You can remove the duplications after you get the data using a HashSet, for example:
ArrayList<String> items = getItems();
HashSet<String> hashset = new HashSet<>();
hashset.addAll(items);
items = new ArrayList<String>(hashset);

Categories

Resources