我有两个服务: 数据提供者和接收者。将数据从服务传递到另一个服务
我试着做这样:
提供商:
Intent i1 = new Intent(feasibilityEngine.this, SOSFeeder.class);
i1.putExtra(SENSOR_STRING, "f[i]");
startService(i1);
接收机
Intent intent = getIntent();
Bundle b = new Bundle();
int i = b.getInt(SENSRO_STRING);
,但我不能使用getIntent()。
有人可以帮助我吗? TNKS