Markus Taubek
Newbie
Hello,
I wanna start a Service and need some Objects in my Service to work with them.
I would like to have an custom constructor like this:
But the common way to start a Service is like that:
In an Intent I can only put Data like Strings.
How I can start a Service with some Objects as parameters?
I wanna start a Service and need some Objects in my Service to work with them.
I would like to have an custom constructor like this:
Code:
public MyService(Context context, Button button, Cursor cursor)
But the common way to start a Service is like that:
Code:
intent.setClass(this, MyService.class);
startService(intent);
How I can start a Service with some Objects as parameters?