B4A Library SMS Extra (for multi part SMS)


SMS Extra (for multi part SMS)


Hello everybody, I want share my lib.
This lib avaible multi part sms with many times, repeatedly.

I have a little sample at attachment

Note: Type SMSList(GSM_Encoding As Boolean,SMS_Total_length As Int,SMS_count As Int,GSM_NO As String,Message As String, SMS_Delivered_Part As Int, SMS_Sent_Status_Part As Int, SMS_Sent_Status As String )


Updatede: 1.1. Remove Holetheme

Special thanks for helps : @Sorin Pohontu , @Erel


EVENTS :

#Event: SMSdeliverystatus(PhoneNumber as string, SMS_list as SMSList )

This event work each part of SMS when deliverd

#Event: SMSsendstatus(PhoneNumber as string, SMS_list as SMSList )

This event work each part of SMS when sending
#Event: SMSsent(PhoneNumber as string, status as Boolean)
This event work when all sending process compaled for a SMS
After you can send a new a sms. Because Phone is ready for new sms
#Event: SMSdelivered(PhoneNumber as string)
This event work when all delivery process compaled for a SMS
After SMS extra delte in own list your phone number

#Event: SMSProblem(PhoneNumber as string, ProblemStatus as string)

This event work when all delivery/sending

PROPERTIES :
  • ALLmessageList [as MAP]
This function return all process records.
ALLmessageList.Get("phonenumber") returned "SMSList"
Get/set value is Map("phonenumber",SMSList)
  • SendingProcessType [Boolean]
Get/set SMS sending process type
TRUE >> sending with JAVA CODE
FALSE >> sebding with Phone Library


FUNCTIONS :

  • Sub Initialize(CallbackModule As Object, cEventName As String)
'Initializes the object. You can add parameters to this method if needed. JabaoObject and Phone lib.
SMSextra.Initialize(Me, "SMSextra")

    • Sub SendNewSMS(Message As String, Phone_number As String) As Boolean
'this function use send a new sms.
'TRUE is Mesaage send.
'FALSE is message cant send. Because Proceses contuning same phone number.
'Or other sending procees not compalate yet. you waiting complate old process.
'after You can proced

  • Sub Calc_SMS_Char_Size (SMSmsg As String) As Int
' This function calc. your mesaage char length

  • Sub Calc_SMS_Part_Count (SMSmsg As String) As Int
' This function calc. your mesaage part count

  • Sub Calc_SMS_is_GSM_Alfabet (SMSmsg As String) As Boolean
' This function check your mesaage for GSM Alfabet

  • Sub Message_All_List_Delete
' This function delete all process waiting SMS status /delivery reports

  • Sub Message_List_Delete(PhoneNo As String) As Boolean
' This function delete input number process waiting SMS status /delivery reports
' FALSE > list in lib cant find your Phone number
' TRUE >>list in lib find your Phone number and delete it
 

Attachments

  • SMS Extra.zip
    452.3 KB · Views: 432
  • SMS_Extra_Libraries.zip
    10 KB · Views: 348
Last edited:

ta1dr

Member
Licensed User
Longtime User
paylaşım için teşekkürler...Bende bir zamanlar eğlence ve kendi ihtiyaçlarım için yazıyordum uzun bir süre uzak kaldım şimdi b4J ya takılıyorum..
başarılar dilerim
 

Tayfur

Well-Known Member
Licensed User
Longtime User
paylaşım için teşekkürler...Bende bir zamanlar eğlence ve kendi ihtiyaçlarım için yazıyordum uzun bir süre uzak kaldım şimdi b4J ya takılıyorum..
başarılar dilerim

Teşşekürler... bende JAVA ya bi türlü alışamadığım için B4a dan devam ediyorum.
Kolay gelsin...
 

riccf

Member
Licensed User
Longtime User
Teşşekürler... bende JAVA ya bi türlü alışamadığım için B4a dan devam ediyorum.
Kolay gelsin...
Hello Tayfur

Thanks for sharing your lib , the sample seems to be corrupt could you please update it?
 

Cassie

Member
Licensed User
Longtime User
Hi thank you for sharing this code but unfortunately i have a error in theme/holo... btw this im a newbie for b4a...
 

Cassie

Member
Licensed User
Longtime User
btw i just deleted the theme/holo and it doesnt give me an error but when i compile it does not run on start up ....
 

Tayfur

Well-Known Member
Licensed User
Longtime User
btw i just deleted the theme/holo and it doesnt give me an error but when i compile it does not run on start up ....

I think, problem is not holotheme. Because this lib not visual.

İf you want to source code, I will send to you. Send to me hidden message for e-mail.
 

Cassie

Member
Licensed User
Longtime User
I think, problem is not holotheme. Because this lib not visual.

İf you want to source code, I will send to you. Send to me hidden message for e-mail.

Hi tayfur,

Thank you I will send the error message on startup may be it can help, and Im using andriod 5.0 greater maybe also will this have an issue with it and btw how can I send hidden message for e-mail? Thank you.
 

Tayfur

Well-Known Member
Licensed User
Longtime User
Hi tayfur,

Thank you I will send the error message on startup may be it can help, and Im using andriod 5.0 greater maybe also will this have an issue with it and btw how can I send hidden message for e-mail? Thank you.

@Cassie ; I will remove theme in lib. And uplaoded new verision 1.1.

Try now.
 
Top