B4X FEED B4A Notification - SetInfo => How to change the activity?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: B4A Notification - SetInfo => How to change the activity? است. این موضوع تا کنون 37 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع B4A Notification - SetInfo => How to change the activity?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
37
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,593
4,508
Hi all!

Next little problem in my app:

I have realized a "no action service" which is active when user do nothing in my app. This can be happen on every activity in my app.

But after the initialization of my notification object with ...

B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید

... and after the using in this command ...

B4X:

Service.StartForeground(1, notification)

... I cannot change the target activity.

So I tried to stop the foreground service by this first ...

B4X:

Service.StopForeground(1)

... in order to build a new notification object and a new "StartForeground"...



 

عقب
بالا