Some VB.Net Pointers - Windows Mobile Development and Hacking General

Hello to the developers,
I've just started to write some today screens for my own enjoyment but am stuck on how to launch lets say the phone application or perhaps the SMS folder, i have some notification graphics which say for example i have some unread SMS's i want to click on the SMS notification and load up SMS folder.
I hope i have made sence.
Look forward to a response.
David

Anyone?
I've tried google but i guess i'm not typing the right stuff in.

Ooce last chance anyone any pointers?

not sure if it's still the case but not long agoe
today items was one of the things you could not program
in .net you had to use pure win32 and or microMFC
not sure about the older and more evil vb flavours
if you do a search in the development and hacking forum
for something like
today item
you are sure to get tons of stuff about it

Thanx for your reply but its not a real today plugin but more of a complete shell i guess, the problem i have is i want to be able to open up default containers when i click on my buttons, i.e.
If i select my missed calls button i want to go to phone log missed calls.
If i select my unread SMS button then it opens up the SMS container
etc..
I cant find any documentation on how to open up the standard containers.

Please if someone knows then help a poor learning developer know the answer!!

fergie_uk said:
Please if someone knows then help a poor learning developer know the answer!!
Click to expand...
Click to collapse
there ought to be a "shell" command in. Net CF, to basically launch outside apps. You will find most of the apps like ie, SMS etc in windows folder or in program files folder

Thanx ill check out the Shell Thing

Still strugling here, is there any developers out there wishing to share some knowhow.
Ive tried using the Shell command but i keep getting errors
i want to open up default containers
Phon app, contacts, emails, sms etc...
Any help please please please
Examples if you have some
Kind regards
David

fergie_uk said:
Still strugling here, is there any developers out there wishing to share some knowhow.
Ive tried using the Shell command but i keep getting errors
i want to open up default containers
Phon app, contacts, emails, sms etc...
Any help please please please
Examples if you have some
Kind regards
David
Click to expand...
Click to collapse
I think u can P/Invoke ShellExecuteEx().
check out MSDN docs for P/Invoke or google.

ok i'm oficially stuck!!
my code
Phone
Shell("cprog.exe", AppWinStyle.NormalFocus, False)
SMS
Shell("tmail.exe -Text", AppWinStyle.NormalFocus, False)
Please help me, i totally stuck!!

Final plea for help!! any developers know how and have any examples they wish to share!!

Related

SMS program

Hi Folks,
This is my first post, although I've owned my XDAIIs for several weeks and I've ROM'd it to the iMATE 1.4 ROM. So I've had a good play.
I was looking at smsOrganizer (from Jeyo) which is badly supported (and it ain't free) and I wondered why I (we) couldn't write something to do the same thing, for free.
Is there a forum for this kind of activity, or could someone point me in the direction of some exmples of how to pass data between the PC and phone?
Best regards
AndrwB
Andrew, look into RAPI: eg here
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarppc2k/html/ppc_teapppi.asp
Development and Hacking is the right place for this kind of query...what do you want the app to do?
V
Hi V,
Basically I want to control the SMS message transfer on my XDA from Outlook, just like smsOrganizer.
Re. your link, I think we've got those? but I generally write embedded C, non of this fancy C++ stuff :-((
AndrewB
Hi V,
I just tried this :
http://support.microsoft.com/default.aspx?scid=kb;en-us;307256
And I can now copy files to and from my device
Not bad for 1 hours playing, specially as I've fixed 2 work related bugs too )
Andrew B
Good stuff.
I'm just learning C++ actually, I never learnt C, coming from self-taught VB on the PC.
RAPI is the way to do most PC<>PDA communications, although right now I'm only just getting into sms stuff. It'd be easy enough (I think) to write an interface to create an SMS on the PC in text, transmit that to the PDA and then SMS it off, but the backend of it would require some implementation.
Keep us posted though!
V
99% of c programs should compile and work just fine on
c++ compilers and you can write c++ programs without using
oop in which case they are pretty much c programs
From what I've read it looks as if you need to write an app to sit on the device and another app on the main PC. The app on the phone just acts as an agent passing data between the sms services and the PC.
Anybody got any ideas?
AndrewB
Yipeeeee
I can now write a DLL that sits on the device and I can write a C++ application on my PC to communicate with it
Now to start reading some text messages from the device to the PC......
Does anybody know agood way to send and recieve SMS ?? I would also like to edit the text and pass it to an Edit Box.
I am not too sure about the available API's that will let me do this.
Please HELP :shock:
Hey , i would like to send and recieve SMS on my xda2. Also pass the recieved message into an Edit Control. Does anybody know a good way to do this ??
I know about the SMS API but i am unaware of others. Pleas Help !! thnkx
SMS Auto sending
Hi everybody,
Is there a way to auto send all sms in draft? Basically, every sms in draft folder needs to be send one by one by ticking send button.
OK,
I can now send a text message from my PC to a DLL on my phone using RAPI, then send a SMS using MAPI.
The trouble is I can't get the subject and body fields to display correctly on my XDAIIs. Also I can't get the Name to appear instead of the number.
I'll try to post the code later on the understanding that it is FREE and we pool our experiences/knowledge.
Here is the code for the DLL and the PC program. Just press one of the keys on the tol bar to send the message. The number and message are hard coded.
There are ABSOLUTELY NO guarentees with this code, use it at you own risk.
can it recieve SMS as well ?? Has any body thought about other API's to use for sending and recieving SMS's maybe ?
Well.... Not yet.
This is my first ever .net VC++ program !!!!
There are lots of code snipets around but no full source code.
This is a work in progress project hence it is in the "Development and Hacking" fourm.
If you'd like to add some functionality to it......
I am asking because there seems to be a problem when trying to recieve SMS with SMS api as the HANDLE is already attributed to the messaging application (inbox/draft/outbox).
I believe you are using RAPI ? However i do not understand this API that well could u specify a bit more ?
Thanks for your help.
Hi nutitija,
I'm only using the RAPI function to pass parameters from my PC to the XDA. The actual sending of messages is done using the MAPI in the XDA.
My biggest problem is getting the subject/body and from fields to display correctly in the different XDA mail views.

Help Read SMS

Hello,
I would like to use SMS in a new application using XDA. I want my application can read sms in inbox.
Do you know how I could see example of source code using SMS API? Or do you have such example to help me?
I got example to send sms but cannot get sample how to read the sms.
FYI, i am writing program using eVB.
Thanks a lot
You should take a look at PocketPC Network Programming by Steve Makofsky or simply try
http://groups.google.com/groups?q=pocketpc+sms+api&start=0&hl=de&ie=UTF-8&
and
http://msdn.microsoft.com/library/en-us/dnppcgen/html/sms_apps2.asp?frame=true
SMS API is not easy.
Yup, it's not very easy, you need to learn about POOM...
I advise you to look into VB .net, it's been made a hell of a lot easier.
I still do it the Medieval way though! Win32 C++ all the way :shock:
V
I did include some C code on sending/reading SMS in this post
http://forum.xda-developers.com/viewtopic.php?t=10761&highlight=
You are asking about reading messages in the Inbox that is when poom as mentioned by vijay555 comes into play.
I don't know anything about poom, but I have read incoming SMS by making my read thread take control of incoming SMS. This means that the message never goes into the inbox.
vangelderp: interesting code, not seen it before on the board. A very good way to do it. It doesn't need to be installed before pocket outlook etc does it? I don't imagine it does. Good stuff!
V
No it does not need to be installed before PPC Inbox (Outlook), what seems to happen is when a SMS message comes in the Inbox fires up. From that point on my code won't get a handle to SMSRead.
So what you need to do is do a warm reset and then start your user program (including my code sample) before any new incoming SMS messages and then it will get the SMSRead handle first. This then blocks Inbox getting a handle which I am sure it raises a error message on if you then try to go into inbox.
vangelderp: yup, that's what I thought. I never used that technique because of that, I stuck with POOM. But your createevent and thread work is very helpful.
V
SmsReadMessage of SMS.API
Thanks for your all comments.
Do you know how to use SmsReadMessage of SMS.API ?
This function is used to Reads a previously received SMS message. I really hope somebody else out there can help me how to use that function
Regards
You use SmsReadMessage like I do in the code attachment I have mentioned.
This function does not read a SMS message that has already been received by the normal PPC Inbox program. As said for that you need to use POOM.
SmsReadMessage for for your code to get a SMS Read Handle and then wait for the event (The Message) to occur and then use the SmsReadMessage function.
Exactly as I have done in my code snippit.

Class 0 sms sending?

Hi!
I'm asking here if there is around a simple but valid flash sms sender, with GUI and access of outlook's phonebook... possibly with anonymous sender...
Searched a lot on the internet but found too crappy softwares...
cheers, Moccij
Hi MocciJ,
Have you tried Vijay555's tool for this type of sms? I know it's capable, but I'm unsure about the gui & contact integration part you want. You can find it @ www.vijay555.com
Regards, M
Already seen it..
But I'm looking to something qith contacts and some sort of GUI, maybe only for typing in the mex, the phone number from the contacts, and a send button..
Another app I've seen includes this minimal GUI, but no contacts and no copy and paste option..
Maybe I'm asking too much if I want it to integrate with outlook? Is it possible?
Many thanks, MocciJ
I'm sure it can be done, this integration with outlook. TomTom has it's added its 'contact navigation' option & Richard Owens the 'file as first last' option.
The question will be who's going to do it. Try to contact Vijay maybe he can do it for you, although I know he got a lot of stuff on his head lately.
M
Will contact him
Flashy messages rulez!! :lol:
MocciJ
Guys, Class 0 requires sending through a custom app, it's not a simple switch you check within outlook. As such, an Outlook plugin can grab the details of the contact, perhaps, but will then have to jump into its own GUI to do the text message creation and sending etc.
It's feasible, but just a pain in the backside to do GUIs right now...
However, I'm thinking about doing an app that will hopefully integrate such features at some point after a couple of more urgent things first...
V
Vijay,
By no means I'm pushing or rushing you to create this app. The general idea you sketch is just what I had in mind as the solution.
off topic: I see you moved to a new place :-( Hope everything is still ok with the family, especially with Alexander.
Have to get the kids to school & write you laterrrr,
M
an interface for sending class 0 sms would be very cool. Ive made up a basic interface that uses vijays program but its pretty crappy, just two boxs for text and the phone number and a send button :lol: thats about as far as my vb skills go!
Well, I haven't VB skills at all :wink:
Ryanmt:
I've tried carty flash messenger, which has the same GUI as your app, but no paste and phonebook if the app u compiled has cut and paste options at least, then we're at a good point (since u can copy the number from the phonebook and paste into the program ) can u post the app here?
Cheers, MocciJ
just hunting on the net to find some info on accessing contacts
who'd ahve thought they would make it so hard to add a paste option :S
if anybody could give me some pointers ide be willing to have a go at making it all work. But as it stands i could write it easily in java but dont understand the tutorials for C#
glad to see that there are upgrades... flashy sms are pretty cool... Must thank Ryanmt..
Best regards, MocciJ
Have you tried Jgui A.SMS ? It can send class0 smses.
hmm, I wanted a some more simplier app, just as Ryanmt thought.. But in any case I'll try it :wink:
MocciJ
I saw one in the msdn site
you can change in the provider options to change betweent classes
the example there sends in class 0
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfsendsms.asp

Text From Desktop - Testing the water

Hello All.
I am currently in the process of developing an application to text mobiles via an activesync connected device.
So no subscriptions, no pay per text etc etc.. Simply uses your phone\tarrif to send messages..
I was considering releasing it on here, and wondered what (if any) would the interest be? Would anyone use it?
It's in the early dev stages at the moment... But I am willing to consider BETA testers.
Would you be willing?
Cheers
MikeSel^
yes i would love to help beta your application. let me know when its ready! cheers!
Sounds good, I had a program to do this with my ancient Nokia.
If you can make it provider independent I would love to test it
I would also love to help beta your application. let me know when its ready! Thanks
Would you be able to make it read text's also, so you could use it like an email client - would be easier for me to send texts whilst at work like this.
I would be willing to test.
I would use this daily as i send alot of text messages!
this would be great, my phone is hooked up to activesync the whole time at work and im constantly sending txts.
I can send texts from MS Outlook 2k7, no activesync or phone hookup needed- but I think you have to have Sprint as a carrier and a hotmail account.
Thanks for your replies..
I will add them all to my development plans, and post up once the beta is ready to test.
This will be completely independant from any carriers as it will simply use your phones carrier to send\receive messages!
If you have any feature requests feel free to reply with them now.
Thanks
MikeSel^ said:
If you have any feature requests feel free to reply with them now.
Click to expand...
Click to collapse
Ability to browse inbox/sent items if you can please - so no interaction with the phone is needed.
Also, mark messgaes read/unread and delete.
They are all i would probably use. Cheers for the effort man!
Read/Unread... Good idea!!
**Runs off to implement**
KEEP UM COMING!
I use my mobile from desktop by using http://www.jeyo.com/index.asp its not free but works well for me.
I'm very interested in this...
Will you run a client application on the device, or are you directly accessing the data? (RAPI maybe?)
Well the idea stems from Jeyo, I've used it for ages.. But I feel there are parts missing from it. An I like to be able to customize the software to how I want to use it.
I am currently using RAPI with a 'server\client' type thing going on. However I am not sure this will be how it ends up. Depends on how much I can squeese from RAPI.
Looking forward to this mate, should be a good little project for you.
I know what u mean with customizing software that ur using.
MikeSel^ said:
KEEP UM COMING!
Click to expand...
Click to collapse
OK, how about supporting command line so that i can send txt msgs using my '.net programs'.
Even better would be to expose a sort of API through a dll file.
I would love that.
Ok, Well my proof of concept exe may help you there.. The exe simply reads from a text file. First line phone number, next line message..
So I have an app that creates the text message copies it to the device and then starts the exe. Which sends the exe,,
So if you want to use this, make the text file in the root of the device and run the exe.
I will build in a similar function to the final version.
Thanks
Mike
cool im looking forward to this. it would be really usefull.
im up for this too....will it work with Vista?
mDesktop is wicked for txtin from tour desktop, if you have ur diamond connected the txts pop up on you monitor 2

[App Request] SMS/MMS Hide function

Hey guys and girls,
Ive got a Samsung Omnia (please no booing ) and I need an application to hide text and or mms messages. I work overseas from time to time with my business and my wife and I swap MMS and text messages to each other while I am away. Having a new phone means everyone wants to check it out and i certainly do not want anyone stumbling across any MMS or text messages my wife has sent me ;-)
I have already well and truly searched this forum and the only software I can find is by evolvens and it doesn work.
Im sure it couldnt be to hard for someone to code a little piece of software to hide sms or mms depending on who sent it?
Sorry if ive posted in the wrong section, id be willing to pay for the right app and im sure many others would as well.
Cheers
Dave
hey, i ran into a problem in my last relationship where i ended up dating 2 chicks... so i had their sms' saved using ez secret sms 2.0. basically, you can set it up to run in the background, and you set certain contacts to be received in this program instead of outlook. the program can be named anything you want. so i named it something boring like system priority. you click it, and it brings up a calculator. you put in the code you specified, and hit ok... and it opens your "secret inbox." you can also set it to notify you in some way that you received a text from whoever. i set it as "islanders won!" for one chick, and "rangers lost!" for the other... pretty simple program to use, and it works fairly well.
if you want to hide just the pics, you could always just save the pics and encrypt the folder using resco explorer with a password or something. but if you really want to save the actual sms, this program worked fairly well for me.
I agree - SMS Security is great - I use it on my Diamond with no problems
I don't think it willl work with MMS though. As the post above - save the image from your MMS into your main files in a private folder. Call that folder something odd and I'm sure you friends won't open it. If you really want to protect the images, you can lock just that file with Resco or I use VisCrypt
Thanks hays and ou2mame for your input, I will try ez secret sms,
hays is this the same program you use on your diamond?
Thanks again guys
waverdr said:
Thanks hays and ou2mame for your input, I will try ez secret sms,
hays is this the same program you use on your diamond?
Thanks again guys
Click to expand...
Click to collapse
Yes it is. It works 100%
It is easy to switch it on and off reverting back to normal diamond SMS
I've emailed the author to suggest a few minor tweaks and will report back

Categories

Resources