80,471
社区成员




<application>
<service android:name="com.aaa.ggg.IntentServcie_my"/>
</application>
public class BackgroundService extends IntentService {
public BackgroundService() {
super("BackgroundService");
}
@Override
protected void onHandleIntent(Intent intent) {
String tmp = intent.getStringExtra("strr")
}
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
}
Intent mServiceIntent = new Intent(this, com.aaa.ggg.IntentServcie_my.class);
mServiceIntent.putExtra("strr", "str_val");
this.startService(mServiceIntent);