Community
cancel
Showing results for 
Search instead for 
Did you mean: 
akin_o_
Beginner
39 Views

locktask plugin

Hi,

Has anyone applied that "https://github.com/oddmouse/cordova-plugin-locktask" locktask plugin ?

First, I dont know where I will put the DeviceAdminExample java file in plugin ? I put the file under the same file folder with LockTask.java 
Second, I followed the instructions "here https://software.intel.com/en-us/xdk/faqs/general#android-manifest" for modifying the manifest file.
But when I put the code;

"<receiver android:label="@string/app_name" android:name="DeviceAdminExample" android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>"

intel xdk removes it after building.

Please Help;

Best Regards.


 

Tags (2)
0 Kudos
5 Replies
PaulF_IntelCorp
Employee
39 Views

akin o. wrote:

intel xdk removes it after building.

The FAQ you reference requires creating a custom plugin. However, because the Intel XDK build system is going away, and PhoneGap Build does not support custom plugins (unless you have a paid account), you should consider using Cordova CLI directly. The instructions provided by the plugin author will then apply to your CLI project.

I don't understand what you mean by "intel xdk removes it after building." What do you mean by "it"?

0 Kudos
akin_o_
Beginner
39 Views

Hello Paul, 

Thanks your answer

i meant "<receiver android:label="@string/app_name" android:name="DeviceAdminExample" android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>" by it

:)  

0 Kudos
PaulF_IntelCorp
Employee
39 Views

Okay, that's what I thought, which implies that the custom plugin that I assume you created (using the referenced FAQ) did not work. But unless you're going to pay for a PhoneGap Build account, there's no point to creating a custom plugin. If you want to use this plugin, I recommend you build with Cordova CLI on your system.

0 Kudos
akin_o_
Beginner
39 Views

Thanks again :) but i dont know how to use it :) can you please suggest where should I begin first?

0 Kudos
PaulF_IntelCorp
Employee
39 Views

For instructions on how to setup Cordova CLI, start with the second half of this doc > https://software.intel.com/en-us/xdk/docs/build-xdk-app-with-phonegap-cordova-cli < and follow the links in that article to the official Cordova CLI docs.

0 Kudos