Activity Stream
93,727 MEMBERS
45 ONLINE
Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android
Results 1 to 1 of 1
  1.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #1
    Symbian Translator
    Python Master
    Python Section MOD
    Rebel's Avatar
    Send one SMS to as many contacts as you want using Python on Android

    Default Send one SMS to as many contacts as you want using Python on Android

    By using this little snippet you can send a text message to some or all contacts in your android device:

    Source Code : 
    # -*- coding: utf-8 -*-
    #title            :SMS2ALL.py
    #description    :This script sends one SMS to as many as contacts you select.
    #author            :Rebel
    #date            :2011-10-30
    #version        :0.0.2
    #python_version    :2.6.2
    #===================================================


    import androidtime 
    droid 
    android.Android() 

    droid.dialogCreateSpinnerProgress('SMS2ALL''Script by Rebel')  
    droid.dialogShow()  
    time.sleep(3
    droid.dialogDismiss() 

    text droid.dialogGetInput(u'Content'u'Please Type your Message here:').result  

    contacts 
    droid.queryContent('content://com.android.contacts/data/phones',
    [
    'display_name','data1'],None,None,None).result 

    = [] 
    for 
    c in contacts:
        
    namno '%s\n%s' %(c'display_name' ], c['data1']) 
        
    l.append(namno

    droid.dialogCreateAlert('Please Select Contacts'
    droid.dialogSetMultiChoiceItems(l
    droid.dialogSetPositiveButtonText("OK")  
    droid.dialogSetNegativeButtonText("Cancel")  
    droid.dialogShow()
    droid.dialogGetResponse().result 
    result
    =droid.dialogGetSelectedItems().result 

    [Login or Register to remove this advertisement]

    droid
    .dialogDismiss() 

    numbers = [] 
    for 
    i in result
        
    numbers.append(l[i].split()[1]) 

    droid.dialogCreateSpinnerProgress("Sending Message","Please Wait...")  
    droid.dialogShow() 

    for 
    num in numbers
        
    droid.smsSend(numtext
    time.sleep(5
    droid.dialogDismiss() 
    Screenshot from the Persian version:
    Send one SMS to as many contacts as you want using Python on Android-s2many-gif
    Rebel Reviewed by Rebel on . Send one SMS to as many contacts as you want using Python on Android By using this little snippet you can send a text message to some or all contacts in your android device: # -*- coding: utf-8 -*- #title :SMS2ALL.py #description :This script sends one SMS to as many as contacts you select. #author :Rebel #date :2011-10-30 #version :0.0.2 #python_version :2.6.2 #=================================================== Rating: 5
    Attached Images Attached Images
    Attached Files Attached Files
    [IMG]http://up.********.com/images/n6oouxsnesjmahzqjs8y.png[/IMG]

  2. The Following 2 Users Say Thank You to Rebel For This Useful Post:
    [ Click to Expand ]

    G u H a N (4th March 2012),Xcode (4th March 2012)

  3.   Advertisements

Thread Information

Users Browsing this Thread

There Are Currently 1 Users Browsing This Thread. (0 Members and 1 Guests)

Similar Threads

  1. [HOW TO] Lost my Android Contacts! I do not know what to do!
    By Midealee in forum Android General Discussions,Request & Help
    Replies: 2
    Last Post: 20th January 2014, 12:37 PM
  2. Replies: 1
    Last Post: 6th March 2012, 04:32 PM
  3. How to Send Business Name Card on Android Mobile
    By G u H a N in forum Android Tips & Tutorial
    Replies: 0
    Last Post: 15th August 2011, 10:36 PM
  4. Golden Python 1.00 by mEnPDA -.::Run all python's apps::.-
    By Mobile_Guru in forum Python S60 Zone
    Replies: 1
    Last Post: 18th June 2011, 09:14 PM
  5. Replies: 1
    Last Post: 1st March 2011, 06:04 PM

Tags for this Thread

BE SOCIAL
Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android Send one SMS to as many contacts as you want using Python on Android