I am trying to understand Android's Intent command.
In the code I have received (and which does not work) I have the following:
Intent intent = new Intent("com.abc.wxyz.all");
intent.setPackage("com.smartdevice.wxyz"); // <--- Code Crashes Here
bindService(intent, mServiceConn, Context.BIND_AUTO_CREATE);
In my app\src\java directory I have sub-directories: com\smartdevice\wxyztest
And the code's package name is: com.smartdevice.wxyztest
But I don't have either of the 2 'com' directories listed in the code above.
Is the code crashing because I am supposed to have directories and code in those 2 'com' directories, or what?
The reason I ask is my lack of understanding as to what the Intent command is supposed to do in an Android app.
Thanks