Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <service android:name="com.abc.xyz.MyService"
- android:exported="true">
- <intent-filter>
- <action android:name="com.abc.xyz.aidl.IMyService"/>
- </intent-filter>
- </service>
- ComponentName compName = null;
- Intent i = new Intent(com.abc.xyz.aidl.IMyService);
- i.setPackage(com.abc.xyz);
- i.putExtra("packagename", info.packageName);
- i.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
- String pkg = "com.abc.xyz";
- String cls = "com.abc.xyz.aidl.IMyService";
- i.setComponent(new ComponentName(pkg, cls));
- compName = startService(i);
- return compName;
Add Comment
Please, Sign In to add comment