Need help: Tasker queryPluginsWithCode says unknown class for the Editt Activity

55 views
Skip to first unread message

Rajendra Patil

unread,
Feb 4, 2017, 3:48:17 PM2/4/17
to Tasker - Developers
Hi,

I have condition plugin and it does't seem to work reliably. I keep saying warning in the console that says this.

02-05 00:38:11.183 17894-17894/? W/Tasker: 00.38.11#M: warning: queryPluginsWithCode: class: io.github.rpatil26.activitydetection.ui.activity.EditActivity: unknown class

Any idea what is missing? By the way the plugin is listed in State plugins and I can also select, configure the settings for the plugin. However, at runtime when service broadcasts and update, it seems to be not reacted too. Tasker doesn't activate the plugin or execute the task. Receiver updates the state correctly (RESULT_CONDITION_SATISFIED). 

Appreciate any pointers.

-
Rajendra

Rajendra Patil

unread,
Feb 4, 2017, 11:31:50 PM2/4/17
to Tasker - Developers
I built and installed the example display plugin and this warning is seen for that as well.

02-05 10:00:05.361 17894-17894/? W/Tasker: 10.00.05#M: warning: queryPluginsWithCode: class: com.twofortyfouram.locale.example.condition.display.ui.activity.EditActivity: unknown class

Crafty Apps Support

unread,
Feb 6, 2017, 2:54:47 AM2/6/17
to task...@googlegroups.com

I built and installed the example display plugin and this warning is seen for that as well.

Perhaps you installed it on external memory ?

Pent
--
You received this message because you are subscribed to the Google Groups "Tasker - Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taskerdev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gtn...@gmail.com

unread,
Mar 30, 2019, 4:19:38 AM3/30/19
to Tasker - Developers
I think it is due to the Manifest file where you declare the EditActivity
i have the same problem but i change the manifest and then it is working

now it is working fine

check out this re edited repo android-display-condition-plugin-for-locale-master
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.twofortyfouram.locale.example.condition.display"
    android:installLocation="internalOnly">

   
<uses-permission android:name="android.permission.WAKE_LOCK" />
   
<!--
 This allows the plug-in to appear on non-touchscreen devices like Google TV.
    Be sure to test that the app works without a touchscreen.
    -->
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />
   
<!--
 Although many of these default to true, some users with modified ROMs have
         trouble seeing apps unless these attributes are explicitly set.
    -->
    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true"
        tools:ignore="UnusedAttribute" />

   
<application
        android:name=".PluginApplication"
        android:allowBackup="true"
        android:fullBackupContent="true"
        android:hardwareAccelerated="true"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/Theme.AppCompat"
        android:label="@string/app_name"
        tools:ignore="GoogleAppIndexingWarning,UnusedAttribute">

       
<!--<activity-->
            <!--android:name=".ui.activity.EditActivity"-->
            <!--android:exported="false"-->
            <!--android:label="@string/plugin_name"-->
            <!--android:theme="@style/Theme.AppCompat"-->
            <!--android:uiOptions="splitActionBarWhenNarrow"-->
            <!--android:windowSoftInputMode="adjustResize"-->
            <!--tools:ignore="UnusedAttribute" />-->

        <activity
            android:name=".ui.activity.EditActivity"
            android:exported="true"
            android:label="@string/plugin_name"
            android:theme="@style/Theme.AppCompat"
            tools:ignore="ExportedActivity">

           
<!-- this Intent filter allows the plug-in to be discovered by Locale -->
            <intent-filter>
               
<action android:name="net.dinglisch.android.tasker.ACTION_EDIT_EVENT" />
           
</intent-filter>
       
</activity>

       
<!--
             This is the "edit" Activity. Note that the host will reject plug-in
             Activities for the following reasons:
                 - Missing "android:label=[...]"
                 - Missing "android:icon=[...]"
                 - The Activity isn't exported (e.g. android:exported="false")
                 - The Activity isn't enabled (e.g. android:enabled="false")
                 - The Activity requires permissions not available to the host
        -->
        <!--<activity-alias-->
            <!--android:name=".ui.activity.PluginActivity"-->
            <!--android:exported="true"-->
            <!--android:icon="@drawable/ic_plugin"-->
            <!--android:label="@string/plugin_name"-->
            <!--android:targetActivity=".ui.activity.EditActivity"-->
            <!--tools:ignore="ExportedActivity">-->

            <!--&lt;!&ndash; this Intent filter allows the plug-in to be discovered by the host. &ndash;&gt;-->
            <!--<intent-filter>-->
                <!--<action android:name="net.dinglisch.android.tasker.ACTION_EDIT_EVENT" />-->
            <!--</intent-filter>-->
        <!--</activity-alias>-->
        <!--
             If this plug-in does not stand alone (e.g. it is only a plug-in for Locale and does not
             have a Launcher Activity), including this in the manifest will help when users try to
             open the app directly from the app store.
        -->
        <activity android:name=".MainActivity">
           
<intent-filter>
               
<action android:name="android.intent.action.MAIN"/>

               
<category android:name="android.intent.category.LAUNCHER"/>
           
</intent-filter>
       
</activity>
       
<!--
             This is the "fire" BroadcastReceiver. Note that the host will reject plug-in
             BroadcastReceivers for the following reasons:
                - The BroadcastReceiver isn't exported (e.g. android:exported="false")
                - The BroadcastReceiver isn't enabled (e.g. android:enabled="false")
                - The BroadcastReceiver requires permissions not available to the host
                - There are multiple BroadcastReceivers for com.twofortyfouram.locale.intent.action.QUERY_CONDITION
        -->
        <receiver
            android:name=".receiver.QueryReceiver"
            android:exported="true"
            tools:ignore="ExportedReceiver">

           
<!-- this Intent filter allows the plug-in to discovered by the host. -->
            <intent-filter>
               
<action android:name="com.twofortyfouram.locale.intent.action.QUERY_CONDITION" />
           
</intent-filter>
       
</receiver>

       
<service
            android:name=".service.BackgroundService"
            android:exported="false" />
   
</application>

</manifest>



On Sunday, February 5, 2017 at 2:18:17 AM UTC+5:30, Rajendra Patil wrote:
Reply all
Reply to author
Forward
0 new messages