need help developing SMS and MMS application

Put your problem here if it does not fit any of the other categories.

need help developing SMS and MMS application

Postby kashifmehmood » Wed Jan 04, 2012 8:19 am

hi everyone....

i am new to this forum so please bear with me... :)

i am developing an SMS ans MMS application for android....

but i have no idea where to start oor how to accomplish it.....

anyhelp can be appreciated guys....

regards,,,,
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Top

Re: need help developing SMS and MMS application

Postby Phyll » Wed Jan 04, 2012 6:03 pm

Hi kashifmehmood,

Where to start?
Have you made any Android apps yet?
Are you familiar with Java?
Do you need to know how to make an Android app or just an SMS app?
That could be a fairly big project depending on how complete you make it and whether or not you handle the entire job or pass the send and receive off to the gmail client or something.

Let me know where to begin.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: need help developing SMS and MMS application

Postby kashifmehmood » Mon Jan 09, 2012 11:03 am

HI Phyll....

i havent developed any android apps yet but am a student of software engineering and this is my final year project....

and i know Java i have worked in it....

i just need to know how to make an SMS app because i watched douzen of tutorials and they are just basics....nothing about hoow to make an SMS app....

you said somthing about gmail client...whats the gmail client has to do in an SMS app...? i didnt understood...

plz help me with the probleem...

Kashif....
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby Phyll » Mon Jan 09, 2012 12:29 pm

Hi Kashif,

Well the gmail thing was kind of an example of an available service, probably not quite the right server and I'm sorry if it confused you. But, one way to send an sms is to fire up the app responsible for sending messages. You send the OS the information in an intent and it does the work of starting the app. But you have to tell the app to send. You can also just send one and manage some of the details yourself. Here's a pretty good code example of how to send and receive sms messages.

http://pankajchunchun.wordpress.com/201 ... n-android/

I am not very familiar with mms. It's rather new to Android and I have read a couple of things about doing it but have not done it. I have done sms some.

If you are new to Android, the nuts and bolts of sending and receiving messages is probably trivial compared to getting input from the user, storing things, using the contacts list, coming up with graphics and showing it all on the display. Its all about the UI and I may be able to help you with that.

Hope this helps.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: need help developing SMS and MMS application

Postby kashifmehmood » Mon Jan 09, 2012 1:10 pm

Hi Phyll...

besides sending and recieving an SMS there are so many other things like password protecting an SMS(on contact basis)....
encrypting ... spam checking...

kashif....
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby Phyll » Mon Jan 09, 2012 1:17 pm

Hi Kashif,

Well let me know what I can help you with. The entire subject and your question so far have been pretty broad and I would like to work on smaller pieces.

Thanks,

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Top

Re: need help developing SMS and MMS application

Postby kashifmehmood » Mon Jan 09, 2012 4:57 pm

HI Phyll,

can u please help with the SMS thing and i think i will take care of the rest of the things at least help me start with it then i think it wont b much difficult to carry it on.....

Thanks...
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby Phyll » Mon Jan 09, 2012 7:30 pm

Hi Kashif,

I repackaged what was in that site I pointed out a couple of posts back and here is a project you should be able to get some useful things out of. If you try to run it. Use IMPORT to create a new project in Eclipse.

Hope this helps.

Phyll
Attachments
SmsExample.zip
Sms Example
(64.45 KiB) Downloaded 73 times
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: need help developing SMS and MMS application

Postby kashifmehmood » Mon Jan 16, 2012 6:40 am

Hi Phyll,

i downloaded the example and it gave me a pretty good idea about SMS but what is this "PDUS"
Object[] pdus = (Object[]) bundle.get("pdus");
I have seen it many examples...

Regards...

Kashif.
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby Phyll » Mon Jan 16, 2012 12:42 pm

Hi kashifmehmood,

The type of sms message is referred to as a pdu sms message. Pdu stands for Protocal Data Unit. That bundle contains the sms message and is passed into our receiver in the intent. I expect many people have used the example from Wordpress and the name of the data in the extras is "PDUS".

Hope this helps.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: need help developing SMS and MMS application

Postby kashifmehmood » Mon Jan 16, 2012 3:47 pm

Hi Phyll,

thanks for ur help ...
i hope i can ask more questions as my project moves on... :D

Regards..
Kashif.
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby kashifmehmood » Tue Feb 21, 2012 7:49 am

hi phyll....

i figured out a way to send sms and mms through the following code...
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(sendIntent);
}

but the problem is that i cant figure out how to store the sent sms and the recieved sms because it displays the sms only when the application is running,,,as soon as the application is closed anll the sms are wased out,,,,,

any ideas about that...

regards
kashif
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby Phyll » Tue Feb 21, 2012 12:00 pm

Hi kashifmehmood,

You haven't shown how you are receiving messages but as for the sending, you are using the default messaging app in the phone to do that so any storage it does, I assume, would still be working. If it stores them then I would think it would store these too. If it doesn't, you would have to put them in a file of some kind to keep them around permanently. Same with any messages that you receive. Especially if all you are doing is calling the default view action.

Hope this helps.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: need help developing SMS and MMS application

Postby kashifmehmood » Tue Feb 21, 2012 3:03 pm

Hi Phylll.

as soon as i send sms from my application the other sms that have been sent also shows up but when i close the application and open it again all the sms are gone....

Regards,
kashifmehmood
Junior Developer
Junior Developer
 
Posts: 18
Joined: Wed Jan 04, 2012 7:29 am

Re: need help developing SMS and MMS application

Postby Phyll » Tue Feb 21, 2012 3:25 pm

Hi kashifmehmood,

Are we talking about closing and then opening the default sms app on your phone or your sms app? I would think that the sms messages that have been sent are stored in the default app and that is why they show up when you send one. But if your own app isn't keeping them on file someplace I wouldn't expect it to show them when it is started up again.

Does that make sense?

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Top
Next

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 25 guests