Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Sms Interception library.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-15-2010, 06:43 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default Sms Interception library.

SmsIntercept.dll for device.
SmsInterceptDesktop.dll (dummy library) to compile for device.

The library contains 2 objects.

1: SmsInterNAD (NotifyAndDelete)
This object intercepts sms messages but doesn't pass the message to your device sms handler. The sms won't appear in your sms Inbox.
It has 2 properties, 'From' and 'Body'.
'From' contains the 'Name' of the sender if they are stored in your contacts list. Or the phone number if they aren't.
'Body' contains the actual sms text.

2: SmsInterN (Notify)
The message is still intercepted and is also received by the device sms handler.
It has the same 2 properties as above.

I've tried it with the hardware library 'ShowTodayScreen'. It doesn't work.
Your application must be the visible, on screen form :-(

Feel free to ask any questions
Attached Files
File Type: zip SmsIntercept.zip (4.4 KB, 37 views)
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk

Last edited by taximania : 12-25-2010 at 05:26 PM. Reason: New version of SmsIntercept.dll posted.
Reply With Quote
  #2 (permalink)  
Old 12-15-2010, 07:36 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Nice adition.....where were you two years ago, when I coded a spy app for a special phone?...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 12-25-2010, 06:24 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I've the added SmsSend object.

Add object reference to SmsSend
name it, eg smss
Then smss.New1(string number,string text) Just like the Outlook.dll

I've also added the Time and Request methods.
Add object reference to InterSmsNAD or InterSmsN
Name it, eg smsinternad
smsinternad.time returns Ticks, so,
msgbox(Time(smsinternad.Time)) gives the time of the text received.
msgbox(Date(smsinternad.Time)) gives the date of the text.

msgbox(smsinternad.Request) returns True or False if the sender of the text asked for a request notification.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #4 (permalink)  
Old 12-26-2010, 07:27 PM
Junior Member
 
Join Date: Apr 2008
Posts: 15
Default

Also not working on the HD2

Last edited by bloxmedia : 12-26-2010 at 07:56 PM.
Reply With Quote
  #5 (permalink)  
Old 12-27-2010, 07:56 AM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by bloxmedia View Post
Also not working on the HD2
Are you trying to send yourself texts from the same device the program is running on?
I forgot to menton that this doesn't work.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #6 (permalink)  
Old 12-27-2010, 09:06 AM
Junior Member
 
Join Date: Apr 2008
Posts: 15
Default

No I try to receive a external sms. Seems that basic4ppc and hd2 are no friends.


Quote:
Originally Posted by taximania View Post
Are you trying to send yourself texts from the same device the program is running on?
I forgot to menton that this doesn't work.
Reply With Quote
  #7 (permalink)  
Old 12-27-2010, 09:23 AM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Another omission from my first post.
Don't try reading the values in the Inter_MessageReceived Sub.

Try

Sub Inter_MessageReceived
msgbox("Text received")
End Sub

Sub Button1_Click
Msgbox(Inter.Body)
End Sub
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #8 (permalink)  
Old 12-27-2010, 10:54 AM
Junior Member
 
Join Date: Apr 2008
Posts: 15
Default

No doesn't work out. already

Sub Inter_MessageReceived
msgbox("Text received")
End Sub

Is not doing it for me.
Reply With Quote
  #9 (permalink)  
Old 12-27-2010, 05:31 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Done some googling. It's an HD2 problem. Not Basic4ppc.
This link has a possible fix.
windows mobile - MessageInterceptor is not called on HTC HD2 - Stack Overflow

Or possibly this upgrade.
HTC HD2 - Update for HTC HD2 ? New SMS Function Update
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #10 (permalink)  
Old 01-10-2011, 06:18 AM
Junior Member
 
Join Date: Jan 2011
Posts: 28
Angry I can‘t use it in my HD2

I write a test demo, like this
Sub Globals
'Declare the global variables here.

End Sub

Sub App_Start
Form1.Show
Smsinternad.New1
textbox1.Text =Smsinternad.From
textbox2.Text =Smsinternad.Body
End Sub
Sub smsInternad_MessageReceived
Msgbox("Text received")
End Sub

Sub Button1_Click
Msgbox(Smsinternad.Body)
End Sub
I Compile it to a device .exe file and copy it and SMSintercept.dll to my HD2.
I run it and use other phone send the SMS to my phone. but the program can't intercept it .
what wrong with me?
can you tell me
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
turning off hardkey interception hlo Questions (Windows Mobile) 2 07-04-2009 06:48 PM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:26 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0