J Jithesh Mepparambath Member Licensed User Longtime User May 10, 2018 #1 hi , how i can i set value of EditText of Activity from Service file. example . I am doing a registration activity screen . I am intercepting the SMS through the services. Now the received SMS i want to show in this current screen. So How can I do that. I am able to retrieve the SMS. regards Jithesh M
hi , how i can i set value of EditText of Activity from Service file. example . I am doing a registration activity screen . I am intercepting the SMS through the services. Now the received SMS i want to show in this current screen. So How can I do that. I am able to retrieve the SMS. regards Jithesh M
tigrot Well-Known Member Licensed User Longtime User May 10, 2018 #2 Create a sub in activity, call it from service and pass value. In sub set value text1.text=param1 Upvote 0
npsonic Active Member Licensed User May 10, 2018 #3 If you want to start activity Code: Copy StartActivity(Main) and call your sub with Code: Copy CallSub2(Main,"SMS_Received",sms) Upvote 0
If you want to start activity Code: Copy StartActivity(Main) and call your sub with Code: Copy CallSub2(Main,"SMS_Received",sms)
tigrot Well-Known Member Licensed User Longtime User May 11, 2018 #4 if you use : Code: Copy CallSubDelayed2(Main,"SMS_Received",sms) you are sure that activity is started before execution and you don't need StartActivity Upvote 0
if you use : Code: Copy CallSubDelayed2(Main,"SMS_Received",sms) you are sure that activity is started before execution and you don't need StartActivity
J Jithesh Mepparambath Member Licensed User Longtime User May 11, 2018 #5 it worked , thank you Upvote 0