Friday, March 11, 2011

Android SMS Send and Receive.

Android SMS Send And Receive Application.

DOWNLOAD SOURCE CODE 



you can check this sms send receive local emulator.

just create two emulator .

where you give  phone no that place you have pass that receiving emulator no:5556

ex:
first emulator no:5554(sms sent)

second emulator no:5556(receive sms) .

source code
serbt.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                EditText no=(EditText)findViewById(R.id.no);
                EditText name=(EditText)findViewById(R.id.name);
                EditText author=(EditText)findViewById(R.id.author);
                EditText version=(EditText)findViewById(R.id.version);
                data.insertData(no.getText().toString(), name.getText().toString(), author.getText().toString(), version.getText().toString());
               
                String phoneNo = "5556";
                String message = "Books Succesfully  Details Added!!!!"+","+no.getText().toString()+","+name.getText().toString()+","+author.getText().toString()+","+version.getText().toString();                
                if (phoneNo.length()>0 && message.length()>0)               
                    sendSMS(phoneNo, message);               
                else
                    Toast.makeText(getBaseContext(),
                        "Please enter both phone number and message.",
                        Toast.LENGTH_SHORT).show();              
                Intent in=new Intent(AddBooksActivity.this,AddBooksActivity.class);
                in.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(in);
                // ArrayList<String> getData = data.getAllData();                          
            }
          });
       
        Screen Shot First Emulator:5554

             

Second Emulator 5556



               





Source Code:
for receving purpose

@Override
    public void onReceive(Context context, Intent intent) {
        // TODO Auto-generated method stub
         //---get the SMS message passed in---
        Bundle bundle = intent.getExtras();       
        SmsMessage[] msgs = null;
        String str = "";           
        if (bundle != null)
        {
            //---retrieve the SMS message received---
            Object[] pdus = (Object[]) bundle.get("pdus");
            msgs = new SmsMessage[pdus.length];           
            for (int i=0; i<msgs.length; i++){
                msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);               
                str += "SMS from " + msgs[i].getOriginatingAddress();                    
                str += " :";
                str += msgs[i].getMessageBody().toString();
                str += "\n";       
            }
            //---display the new SMS message---
            Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
        }                        
    }





19 comments:

  1. Various computer programs given by Mac OS X for which memory cards used
    are like Adobe Southbooth for music and sound track
    editing, iPhoto for photos, GarageBand for music/podcast production
    etc. UBS mass storage devices are considered to the most compact and affordable memory devices these days.
    When you lose data and have made the big mistake of not backing up your data, what you need
    is a hard drive data recovery software. They will inspect the drives electrical components, along with its
    electronics, to see whether any of these are faulty and need
    to be replaced.
    Also visit my webpage - data recovery freeware

    ReplyDelete
  2. Sеvегal targeted сuѕtomerѕ
    аs well aѕ smallег businesѕes as bulk buуerѕ;
    adԁitіonal web-based venԁoгs сoncеntrate οn buѕinеss machinеѕ as well aѕ Computeгѕ.
    Achieѵe Digital camеra Photоgraph
    Dаta Rесovery about Мac A lοt of ρеople foгget
    about thаt they can have mοre informatiοn about јust аbоut any matеriаl, whetheг it iѕ dаtа гecοvery serѵiсes on-line informаtіon oг
    other upon sοme οf the key engineѕ like google Us dot Net.

    search If уou suspect that your рaгticulаг RAӏD
    asѕoгtmеnt feаtuгes a breaκ down dаtа loss occurrence
    or pегhapѕ maу be ρlanning to fall short,
    therе arе stepѕ yοu сan
    take tο bе sure that your ѕituatiοn doеѕn't get virtually any a whole lot worse. This can provide you with a thought concerning the convenience of your software in retrieving dropped data through hard drive. You can see the particular Computer animated Working Manifestations how a software performs, provided by the corporation.
    Also visit my site : search

    ReplyDelete
  3. Thank you a lot for sharing this with all people you actually know what you're talking approximately! Bookmarked. Please additionally consult with my website =). We will have a link trade contract between us
    Here is my web page :: Handy AbhöHren Im Internet

    ReplyDelete
  4. To carry out data recovery in the correct way, the best thing is to see
    several principles: Correct advertising and marketing of one's freshly started data recovery services business is very important. The majority of you should may have learned the data you save on your computer has been practically kept in advertising just like magnetic disks, difficult disks, RAID options regarding tough disks. hard drive Data Recovery birmingham In these stress situations, systems similar to hard disk data recovery might be immensely helpful in recovering the dropped, wiped, hard to get at or even arranged data from your struggling hard disk. Mac consumers alternatively is able to keep their own data safe and sound which has a peace of mind eventually equipment. Any time RAID A few and other sent out arrays don't succeed the
    particular data recovery treatment is complex and will have to have a expert agency with clear area labs to ensure excellent treatment is actually
    delivered to go back all the data as you can.

    It may help your current private data to safeguard in opposition to illegal access.
    It is crucial even though to be sure that details isnit corrupted.
    Feel free to surf my blog post :: hard drive Data Recovery birmingham

    ReplyDelete
  5. In a fast overview, these software or anything else out there will proceed down the right
    after collections: There is several drive disappointments or any
    other significant difficulties in the RAID and for that reason
    you will need to make contact with good raid data recovery companies like
    Raid Recovery On the internet. Protected Data Recovery Services provide all sorts of RAID
    data recovery solutions over United states of america along with Nova
    scotia. In some instances prefer that than it business the business enterprise cannot afford to
    run with no ready laptop or computer function. forward
    This specific program code can be dangerous such that
    the actual operating-system (for example.
    My blog : forward

    ReplyDelete
  6. Softwarе sοlutіοns are generallу сost-effectiνе ωithіn costs and also yоu ԁο nοt need
    to coѵer a grеat deаl for the small sіze rеport.
    Thiѕ coulԁ be to aѕsist уou stop basicallу any kіnd оf ѕoіl as well аs relаtеd impuritieѕ
    becаuѕe of acquіring in to the shoves аnd alѕo utility
    area items. data recovery software Οn the other hаnd in actual misfortune, аll is ѕtill securе, otheг
    than the particular physique in the dгiνe, which makеs
    it not reachablе. Οѵer-wгitten data is іnсreԁibly tоugh to acсesѕ.

    Virtually any in the event of dаta loѕѕ- thгough sіmple to thе most compleх along with tragic data reduction situatiοnѕ- which inсlude viгusеs, naturаl disasteгs, accidentаl erradication, system cгashes, file corгuption
    error, equірment fаiluгe plus mοгe it's crucial to understand that data recouping is possible regardless of what the situation.
    Feel free to visit my website : data recovery software

    ReplyDelete
  7. You're only wasting your time and money when buying items of poor quality. I personally prefer to shop with irenelim. There is so much to choose from. kupovinabc.com You can also get great inkfruit coupon codes online, coupon raja currently have a range of coupons, such as 20% off your order, and even 40% off full sleeve t-shirts. What you plan to use your computer for can make a big difference in what type of system you need. This used to be a major dilemma initially but presently most if not all manufacturers have their kvm switches compatible with linux, unix, mac, and all versions of windows os.
    Also visit my web-site ; kupovinabc.com

    ReplyDelete
  8. Most have additional calories, fats, or carbohydrates.
    Shopping for your own wedding tokens kupovinabc.Com There are sophisticated
    gowns that nicely display your shoulders or back that will have
    the boys drooling. Today, the world is following the fashion icons and divas
    more closely than ever before. Print fliers and leave them at retirement communities, and on bulletin boards at the grocery store,
    the laundromat and the dry cleaners.
    my webpage - kupovinabc.Com

    ReplyDelete
  9. The particular Web-based software is particularly useful
    for businesses that possess big sources and
    work in your allocated environment. You need to be watchful about
    that you give your data to manage. Our secured on the web data back up services provides
    the comprehensive security in your delicate data along with
    gets rid of the necessity of just about any data recovery charge in the future.
    data recovery direct You'll find probable solutions you can utilize in order to get back again the data that you missing, of course, if anyone act quickly, it's possible so that you can have a minimum of
    80% of these data again. Because the intricacy as well as speed of doing business becomes improved, the same is true the probability of data reduction. This problem usually takes place during the House windows Year 2000 installment course of action.
    Also visit my web site : data recovery direct

    ReplyDelete
  10. If you've written a book about dogs, are there online vets or dog schools who could promote your book to their customers? elektronske knjige Browse the internet and you'll uncover online internet dating sites.
    Give her a good reference and let the door hit her on the way out!
    Also visit my web-site ; elektronske knjige

    ReplyDelete
  11. The erotically charged ruthven or seductive clarimonde can lead one down many darkly intriguing alleyways, and many
    of the lesser contributions to the genre can be very
    lucrative as they are hidden gems amongst mountains of sleaze and overprinted bestsellers.
    This step-by-step guide is available quickly, which is
    usually what women who are hurting after a break-up want.
    elektronske knjige During a meditation group
    i was facilitating, my body was with my complete belief
    and acceptance, used as a vehicle for an intelligent loving consciousness to speak immediately, for the purpose of aiding others to
    awaken to the experience of residing from the heart.
    And also you need to consider some other points like plug
    in power cord and ethernet card and many more things.
    My weblog :: elektronske knjige

    ReplyDelete
  12. If you are interested to buy antiques, the online stores are the best places to visit.

    That meant, of course, turn your nose up at flea markets and those quaint little places off the beaten path that
    feature a few more items, other than the 100-year-old tiffany lamp with the requisite
    patina on the base--things like hawaiian shirts and scented candles on the side.

    What about the other bidders who dont make it? limundo Internet access web host
    payment platform (i. Ready to click the
    "buy now" button? Com have some amazing prices on a wide
    range of electronic products, including dvd's and video games, plus computer accessories and mp3 players.
    Check out my website :: limundo

    ReplyDelete
  13. Сomplеte Thumb Stοrаge Data Recοvery No-one thаt κnоωѕ pсs would certainly quеѕtіοn thаt
    Macs are fаntаstic systеmѕ,
    yet Mac pc ԁata recovery іs more ρrοne to
    nееd а seаsoned νeteran feel whеn cоmpared with PC data reсovery.
    While a long timе comρletе ωithout anу mаin oсcurrences, busineѕses get usеd to іt along wіth profеssіonalѕ begin to pοnԁer if theу abѕolutеly nеeԁ dοzens of ԁata гecovery seгνісеs ωhen ρгacticаllу nothing аt any time
    gοeѕ cοmρletеly wrong.
    hard Thankfully that yοu have effective, eаsy to uѕe аnd eсonomісal data геcoνery software optіonѕ that
    you ѕimply and i аlѕo could get the face to face to аid іn the entіre
    pгοcess of dаtа recоvеrу.
    Νow of time, data reсοѵerу makes aсtivitу so іt helps yоu іn
    saving the most сгucіal businеѕs data.
    Just, we could start еmploуing mеthod оptimizer tοolѕ that doeѕ not
    merely protеct thе computег ѕystemѕ,
    but in addition bоoѕts the performаnсе anԁ аlso to struggle data deсline cіrcumstances,
    rесovery equipment ωork beѕt.
    My blog - hard

    ReplyDelete
  14. CRC Blunders: CRC is error-checκing apрroach to іdentify data mаrkеting
    and sales communiсations еxactly wheгe CRϹ heгoеs
    ԁeveloped fоllowіng transmissiοn.
    Many of the kinds of rеcoverу theѕe people cope with include hаrd drive, laрtop соmputer, databases, e mail, νіdеο tape, Usb
    memory carԁ, small іnformаtіon progгam (also refеrreԁ to
    aѕ Teхt), сomputer's desktop, RAID, server and a lot of other types of recovery that will deal with data. The particular data reduction may arise as a result of variety of factors, which are extensively split into a couple of main groups. drive Concentrates on recovery regarding Notebook computer and Personal computer tough drives and various types of storage area press such as Digicam recollection credit cards, Hardware leap drives, Compact disc, DVD, plus more. Despite having copy methods, there is when data just isn't immеdiately ρгeseгveԁ аnd data recoνery is neсessary,
    and thiѕ is most imρоrtant with a lοt of organizations.
    Simultaneоusly, wе aгe not furniѕhed with amplе reѕourсeѕ and аlѕο ѕoftware where make uѕe of we could help make the
    ԁata ѕeсure abоut the hard disk.
    Stop by my blog post ... drive

    ReplyDelete
  15. Face book likes will show that the particular product is getting success or not.
    We have windows apps dev w/microsoft . knjiga
    I think i'll see if the cute elf in wrapping wants to get naughty and save santa the trip- Erotic books are not to be confused with a sexual manual like kama sutra but are more of a book that will arouse and bring forth behaviours of a sexual context.
    My page - knjiga

    ReplyDelete
  16. Starting only from a periodic journal to monthly subscription, we widen our range not
    only on book reviews but also on issues such asindian languages, gender issues,
    environment, education and children. You can find
    many customers who're 18 to 80 years old here. svetknjige.info There are five categories of cards in this game, each of them has a different type of puzzle that you have to solve. Mehta's books include the award-winning
    india on television and, with boria majumdar, the
    best-selling sellotape legacy: delhi and the commonwealth games.
    My web-site - svetknjige.info

    ReplyDelete
  17. One feature I think James Bond would have liked to see
    included is a rotating compass bezel on the face of the
    watch. However in the recent years there has been a huge consumption of fossil fuels due to an increase in
    population and the rapid increase in consumption
    of this kind of fuel has been a major global concern.
    Here's a short list of approaches to remaining focused and staying far removed from problems.

    my web site; solaranlage

    ReplyDelete
  18. Just in case, if you feel that you may not be equipped with the Lactobacillus Acidophilus naturally, then
    it is a mandate that you consume the Lactobacillus Acidophilus supplements.
    I know it sounds slightly unbelievable but it's very true. Try to eat several fresh cloves a day in your cooking.

    my site - how to treat a yeast infection

    ReplyDelete
  19. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
    You definitely know what youre talking about, why waste your intelligence
    on just posting videos to your site when you could be giving us
    something enlightening to read?

    Visit my blog: cellulite treatment cream

    ReplyDelete

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...