Starting to develop an app these days, i'm stuck trying to open a "window" when the screen is touched in the widget.
In Code Examples (sdk), we can see this in the Event Widget, when you click in the screen, a "window" is opened, and you can see the events there.
I follow the code to see how can i do this:
in NotificationWidgetExtension : SmartExtensionUtils : onTouch event
Intent intent = new Intent(Widget.Intents.WIDGET_ENTER_NEXT_LEVEL_INTENT);
sendToHostApp(intent);
In WidgetExtension
protected void sendToHostApp(final Intent intent) {
intent.putExtra(Widget.Intents.EXTRA_AEA_PACKAGE_NAME, mContext.getPackageName());
intent.setPackage(mHostAppPackageName);
mContext.sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
}
Trying to replicate but i'm not being successful. Is there any place i can read about it, or someone can help me on this?