- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks again :) but i dont know how to use it :) can you please suggest where should I begin first?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page