I want to know the method of starting SmartWatch Extension from the program code. For instance, Intent etc. I registered the script language for SmartWatch in Google Play the other day. It divides into two programs, one is registered as SmartWatch Extension(BitmapCatcher), and another is registered as smart phone application (Luarida). The script starts from a smart phone. Here, I want to start BitmapCatcher at the same time as starting the script. The way is not understood though it is thought that BitmapCatcher can be started without the screen touch if Intnent is sent to LiveWare.
Please teach the program code in which SmartWatch Extension is started without the screen touch.
(It was recommended to ask Mr. Jerker on this site when I wrote this question in the Smart Extras discussion of a Sony mobile site.)
SmartWatch Extension was not able to be started from other Android applications though it tested referring to your explanation. Please teach again.
What should I write in "Your.package.name"?
Moreover, what should I write in "HostAppPackageName"?
The one that starts by sendBroadcast is BitmapCatcher. This package name is "com.luaridaworks.smartwatch.bitmapcatcher".
In the test program, it wrote as follows. It continues to the following comment.
package com.luaridaworks.test02;
import com.sonyericsson.extras.liveware.aef.control.Control;
import com.sonyericsson.extras.liveware.aef.registration.Registration;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class Test02Activity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Intent intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);
intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, "com.luaridaworks.smartwatch.bitmapcatcher");
intent.setPackage("com.luaridaworks.smartwatch.bitmapcatcher");
sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
}
}
Because BitmapCatcher did not start, Intent was rewritten as follows and it tested.
intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);
intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, "com.luaridaworks.smartwatch.bitmapcatcher");
intent.setPackage("com.sonyericsson.extras.liveware");
sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
It did not start similarly. Intent was rewritten as follows and tested.
intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);
intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, "com.luaridaworks.smartwatch.bitmapcatcher");
intent.setPackage("com.luaridaworks.test02");
sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
It did not start similarly. Intent was rewritten as follows and tested.
intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);
intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, "com.luaridaworks.test02");
intent.setPackage("com.luaridaworks.smartwatch.bitmapcatcher");
sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
It did not start similarly. Intent was rewritten as follows and tested.
intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);
intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, "com.sonyericsson.extras.liveware");
intent.setPackage("com.luaridaworks.smartwatch.bitmapcatcher");
sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
It did not start similarly. It has not succeeded yet.
Please give the example of the program code named com.luaridaworks.test02 in which "com.luaridaworks.smartwatch.bitmapcatcher" is usually started from the application program.