Nik*_*iki 7 android android-intent android-service
在我的应用程序中,我需要从活动到服务获取值.我需要检索的值是我在该活动中单击的值.
例如:如果我从活动A中选择x [i]元素,我需要检索服务S中的值x [i].
这怎么可能?
谢谢,
尼基
在服务中使用此:
public int onStartCommand (Intent intent, int flags, int startId)
{
super.onStartCommand(intent, flags, startId);
Bundle bundle = intent.getExtras();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6825 次 |
| 最近记录: |