How to send data through intent in android without opening another activity?

后端 未结 4 897
夕颜
夕颜 2020-12-16 21:40

here is my code for sending data by intent but i don\'t want open another activity i just want to send the data without opening it..

Bundle contain = new Bun         


        
4条回答
  •  一生所求
    2020-12-16 22:05

    You probably want to use a Service not an activity.

    Read: http://developer.android.com/guide/components/fundamentals.html#Components

提交回复
热议问题