Problem creating my first Widget
Posted: 25 Sep 2016 12:38
I recently bought Automagic for my Samsung Galaxy Tablet (SM-T560NU). I went to the Automagic site to try to learn how to use it. I tried "Creating a Custom Widget" in the Help section.
automagic4android.com/en/help/creating-a-custom-widget
I got to Step 4 - Adding actions to the widget. The following is somewhat abbreviated: Near the bottom of the page, it says: Add the action: "Launch app com.android.settings.deskclock". I tried that. But, when I touched the widget, I got the following error: "Action not executed successfully. Could not get launch intent for package com.google.android.deskclock. Please define a class."
I'd guess the meaning of "class" in this context is that an app like the Clock may have several components such as: Alarm, Stopwatch, Timer, etc. and I'd guess each of these is considered a class. So the class enables you to launch that component directly. I have a Galaxy S4 smart phone running Android v5.0.1. My tablet runs Android v6.0.1. But I've never heard of any app called "Deskclock". I tried to search my tablet using "My Files". I searched for the file "com.android.settings.deskclock" but couldn't find it. It appears "Deskclock" is the same as "Clock". But I can't find that file anywhere on my tablet.
I have a feeling my problem has something to do with the following statement from "Step 4": "The package of the clock app can be different on different versions of Android". Is that my problem?
In any case, before asking for help in this user forum, I tried learn a little more. I added "Timer" to the class section of the action: "Launch app com.android.settings.deskclock". That produced the following error:
"Action not successfully executed. Unable to find explicit activity class {com.google.android.deskclock/Timer} have you declared this activity in your AndroidManifest.xml?"
I have no idea what that means. But, was I on the right track? I did try other actions such as turning WiFi on/off and they worked fine. So I think my problem is limited to "Class Name".
All in all, I'm really enjoying Automagic and looking forward to doing more. Can anyone tell me what I'm doing wrong?
automagic4android.com/en/help/creating-a-custom-widget
I got to Step 4 - Adding actions to the widget. The following is somewhat abbreviated: Near the bottom of the page, it says: Add the action: "Launch app com.android.settings.deskclock". I tried that. But, when I touched the widget, I got the following error: "Action not executed successfully. Could not get launch intent for package com.google.android.deskclock. Please define a class."
I'd guess the meaning of "class" in this context is that an app like the Clock may have several components such as: Alarm, Stopwatch, Timer, etc. and I'd guess each of these is considered a class. So the class enables you to launch that component directly. I have a Galaxy S4 smart phone running Android v5.0.1. My tablet runs Android v6.0.1. But I've never heard of any app called "Deskclock". I tried to search my tablet using "My Files". I searched for the file "com.android.settings.deskclock" but couldn't find it. It appears "Deskclock" is the same as "Clock". But I can't find that file anywhere on my tablet.
I have a feeling my problem has something to do with the following statement from "Step 4": "The package of the clock app can be different on different versions of Android". Is that my problem?
In any case, before asking for help in this user forum, I tried learn a little more. I added "Timer" to the class section of the action: "Launch app com.android.settings.deskclock". That produced the following error:
"Action not successfully executed. Unable to find explicit activity class {com.google.android.deskclock/Timer} have you declared this activity in your AndroidManifest.xml?"
I have no idea what that means. But, was I on the right track? I did try other actions such as turning WiFi on/off and they worked fine. So I think my problem is limited to "Class Name".
All in all, I'm really enjoying Automagic and looking forward to doing more. Can anyone tell me what I'm doing wrong?