Hi all
in this flow and widgets I want to get SMS sender name and message separately. how can I get? any help?
I want to read messages without going to my messages application. any suggestions please post.
now I am getting message as example
"+9190000095040I am too busy now". in this example I want to separate sms sender name and message as
sms sender name at the top of the widget and message in message body. I am uploading 3 flows and one widget
please correct them and upload.
thanks from record
messages
Moderator: Martin
messages
- Attachments
-
- start_first_20181211_172332.xml
- (1.23 KiB) Downloaded 658 times
-
- messages.xml
- (32.67 KiB) Downloaded 574 times
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
Re: messages
As I check your "message create" flow, there is script to add
This is where the sms sender and sms text being concatenated. You shouldn't concat them like that, if you still need them separately. You can store them in list format, but it will change the way you show the message (using the list element). At least, if you still have to combine them, add some separator char in between. Example, for your case, it is easier to add line break "\n". you entry map will be
This will make the text store as
If you need to separate it again, you can just split it by using "\n".
Your widget will automatically show the line break too. So there is not much to change for now, simply add + "\n" in between
Code: Select all
addMapEntry(global_message_map,a,sms_sender+ sms_text);
Code: Select all
addMapEntry(global_message_map,a,sms_sender + "\n" + sms_text);
Code: Select all
+9190000095040
I am too busy now
Your widget will automatically show the line break too. So there is not much to change for now, simply add + "\n" in between
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: messages
hi Desmanto
thanks a lot. thanks for your solution.
you are genius.
thanks from record4
thanks a lot. thanks for your solution.
you are genius.
thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1