Kapsel Cordova project for Android as a Platform

Hello, I am very new to Kapsel Cordova and to SMP3.0 .I have created the Kapsel Cordova project using the command line Interface(CLI) for platform as an android .I have also added different plugins related to the cordova which I want in my app to work like camera and the geolocation.             
                   The ISSUE:while I have created the Kapsel Cordova project and prepared it using CLI and importing the project into the Eclipse IDE .               
I am  getting the above error in my project.While importing the project as an already existing project of Android in eclipse Juno.
        So,can you please help me out for explaining what exactly the Whitelisting is and what are its methods and all since I feel the documentation is not sufficient to answer my  question.
IDE:Eclipse Juno
Android device 4.0.0
JDK 1.7
JRE 1.7
Please Help....!!!
Thanks in advance...!!!

Hi Yamini,
When you import the project to Android SDK, you should not get any error. You have to import the project to Android SDK only when you need to create an apk file to distribute it to users.
While importing the project do not check the option "copy projects into workspace". Also change the Open Perspective to Java, I could see that it's in Java EE now.
You could also test the app from command window. Use the commands cordova emulate android or cordova run android, the latter is for running the app on devices which are connected to the your machine. Ref : https://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html
This is not related to the Kapsel plugins, these are related to Cordova.
Regards,Midhun
SAP Technology RIG

Similar Messages

  • ANE for one platform on Flex mobile project for iOS and Android

    I'm very new at Flex Mobile Projects and native extension.
    I have a big doubt... If I have an ANE that only works on iOS or Android, can I use it into a project for Android AND iOS?
    I mean, if I want to do something and I've only found and ANE that works for iOS and another ANE that works for Android, can I create only one project and depending on the device use one or another? or should I create two different projects?
    Thanks in advance

    You can set them both up and when you publish just comment out the code that does not apply, this way you still keep it as one project but you can use the ANEs as needed, I had to do this with the iAd ANE only for Apple obviously and AdMob ANE which at the time was Android only.
    Example
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Now when you publish for iOS comment out the Android related stuff
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Also dont forget to update your included ANEs when you publish and remove the ones that dont apply and update the XML files as needed. Its possible, but annoying, it would be nice if it was automated or could be flagged somehow so the Flash publisher would auto ignore it.

  • Appbuilder- Error while creating a cordova project.

    Hi all,
    I am getting an error "invalid no of parameter" while create a cordova project for a superList(name SAP_Superlist), but showing successfully created message aswell. Due to the error cordova project is not getting created in the workspace path mentioned in the setting.
    but i went mannually to the 'D:\install\SMP SDK\SDK\appbuilder-1.0.1245\ares-roject\hermes\filesystem\root\guest\SAP_Superlist\packages\temp'
    and started create project. SAP_Superlist folder is getting created but getting the below errors again. I guess both of errors are same.
    Could you please help me in getting this resolved.
    Noufal

    Have you installed node, Apache ANT and Cordova. To make sure you installed Cordova properly and it is working, you can try creating a cordova project using cordova commands as give below:
    Use the command cordova -d create C:\Kapsel_Projects\LogonDemo com.opensap.myfirst to create a new project.
    Add the android platform to the project using the below command
    cordova -d platform add android
    Midhun VP

  • Error while working in Kapsel plugin Logon  for Cordova android project (app builder)

    Hi Experts,
    I am working on new appbuilder with SMP 3.0 sp02  and i am successfully able to create cordova project with kapsel plugin for android. but when i deploy the app on android simulator i am getting this error.
    I foolowed this link by
    Midhun VP
    Developing SMP 3 Mobile App using Appbuilder, Kapsel and SMP 3 Trial - Part 1
    even when i try to install kapsel plugin manually through command line i get error (attached scrrenshots).
    Kindly help me to resolve the issue.
    BR,
    Saurabh

    Since you are using SP02, I don't imagine this is the problem but I believe I have seen something similar so thought I would mention it here.
    In SP04 of the Kapsel SDK, a new parameter was introduced that specifies where the Kapsel plugins are located. 
    For example
    cordova -d create C:\Kapsel_Projects\LogonDemo com.mycompany.logon LogonDemo "{\"plugin_search_path\":\"C:/SAP/MobileSDK3/KapselSDK/plugins/\"}"
    I believe this creates a folder named
    LogonDemo\.cordova that contains a file named config.json.
    If AppBuilder creates the project, it may not include this details and could lead to problems similar to what you are seeing.
    Specifically Kapsel uses a modified version of the org.apache.cordova.inappbrowser plugin and if this setting is not provided, the unmodified version of it is added to your project.
    For additional details on the plugin_search_path see
    http://scn.sap.com/docs/DOC-49592#cordova
    Regards,
    Dan van Leeuwen

  • Import AppBuilder project into Eclipse for Android

    Hello,
      I am trying to take an application developed in AppBuilder and load it into Eclipse.  How is this done?  I cannot find any resources explaining how to do this.  The goal is to deploy an application to an android tablet.  I have the development environment setup including Cordova and Kapsel plugins.  How does one load appbuilder files into Eclipse?

    Hi,
    I am trying same to import my appbuilder project into eclipse. I have created cordova project and then published to project directory from appbuilder. Then I opened the eclipse IDE and followed the steps File>New>Project>Android>Android Project from Existing Code> browse project directory. but it looks eclipse cannot recognise the project! I can see all the files I have project.jason and a www directory but there is no .project or project.properties! am I  misisimg anything in appbuilder or ineclipse?
    Regards
    Mohammad Sarker

  • Best way to preview AIR for Android projects for different devices?

    So if I am developing an AIR for Android app, is there a good, simple way to preview the app on any android device? I have installed it on my phone of course, but is there a simulator/emulator of some sort available so we can see how it would look on both an Android phone and a tablet? Thanks in advance to anyone who can help!

    DPI aside, you can just set your resolution on the project to the target devices resolution to preview how it will look. While vectors will render much smoother on the device (higher DPI), it's a very easy way to target various resolutions for testing.
    If you have the full CC suite you might want to consider using Flash Builder 4.7 which has many different device presets and allows you to create your own presets to mimic tablets and phones. It really depends how complex your project is to move over to FB.

  • How do we use Script (batch file with msbuild/msbuild project) to build Cordova Project created with Visual Studio Tools for Apache Cordova?

    I use Visual Studio to create Cordova projects. I need to build Cordova projects using msbuild and buildbot via script for my project but I can find only information about how VS combine with Cordova CLI to build multi device hybrid application.

    Hi Samseth,
    Yes, correct, the only thing we can find on the MSDN is:
    Deploy and Run Your App
    And that's the reason why Visual Studio Tools for Apache Cordova existing.
    I think you may get more detail compile information from here:
    http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Build AS3 AIR project on Linux for Android and iOS?

    We're about to use a build server for taking some work out of our hands (testing, building etc). The build server is running on Linux and therefore we would like to know if we can build the AS3 (AIR) sourcecode on the Linux environment. We usely create apps for Android and iOS.
    Can anyone give some more information on this? Is it true that the ADT doesn't run on Linux?

    FYI, I updated my blog post.  I found a program called ideviceinstaller (available in the Ubuntu repos ala apt-get install ideviceinstaller or from the website) that allows installation of .ipa files onto iOS devices from Linux.
    Previously that was the only development iteration step that required a Windows VM.  Now in my workflow, a VM is no longer required for iOS development.  (Obviously a Mac is still required to upload to the app store at the end.)
    Also, a bonus, here's a quick command to view UUID's authorized by the provisioning file inside an .ipa file:
    > unzip -c Main.ipa *.mobileprovision | strings | egrep -i string\>[0-9a-f]\{40\}
    <string>d9c2fee807324a18baf5a544ffa2c80f23d3****</string>
    <string>f634a0a95bc2327f6a26cb39cf18a01918cf****</string>
    <string>651e4284467d328e37c18988c981179b5909****</string>
    <string>c11d7eef800632d072da067d9b993624f25b****</string>
    <string>72d85ab26cd525a328d3a71e3fe416c61fd6****</string>

  • Unable to load ADF Mobile for Android deployment profile.

    Hello,
    I'm trying to implement a simple application on an android platform using this:
    [http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/jdtut_11r2_54_2.html]
    I already downloaded the updates needed as extensions and started the emulator using the SDK Manager.exe. However, i'm not able to create a deployment profile of type: "ADF Mobile for android". I only find type "ADF Mobile Feature Archive" which doesn't work for me because when i try deploying it, i don't find the "deploy application to emulator" option. Any thoughts?
    Regards,
    Mohamed

    Hi.
    To deploy to the emulator or to a device, you must create a deployment profile on your application, not on the ViewController or ApplicationController projects.
    Best Regards,
    Frédéric.

  • How to Disable Afaria client in Kapsel Logon plugin on Android?

    I want to disable Afaria client in Kapsel Logon plugin on android instead of iOS as follows:
    "The Afaria client is opening after calling sap.Logon.init(...), it can be disabled by modifying the file MAFLogonManagerOptions.plist. In Xcode this can be found under Resources > MAFLogonManagerNG.bundle > MAFLogonManagerOptions.plist. Set keyMAFUseAfaria to false."
    as mentioned in Getting Started with Kapsel - Part 2 -- Logon

    Also I need to disable Afaria in Logon plugin, as I get the following error while debugging the application on Android platform:
    Failed to find provider info for com.Android.provider.Afaria

  • Adobe Air for Android - caching key event that have "unusual" keycode

    I am developing an application for a platform. The OS of this platform is Android Gingerbread (2.3.4) The platform has some buttons with "unusual" key code: 141, 131 etc.
    Native application that created in ADT can catch and respond to these keyboard events While my Adobe AIR application (created in Flash professional) are Indifferent to them.
    I try both: stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,false,0,true); NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,fa lse,0,true);
    How can I "catch" this event? Maybe a way to add constant to the keyboard class?
    Thanks

    If you are deploying for iPhone it is on the 'general' settings(First setting page opened).
    Just noticed you are making android app but i still added iphone deployment settings for further future
    But if you are using it for flash/android you have to add code into your fla descriptor with XML language(dont worry it is 1 line of code)
    Watch the video on this page about GPU rendering:
    http://blogs.adobe.com/cantrell/archives/2010/10/gpu-rendering-in-adobe-air-for-android.ht ml
    Your app shouldn't lag after these steps but if you have a project that gets bigger and has lots of code it MIGHT lag so that is when external files should help.

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • Flash cs5.5 FLVplayback Encoding Problems with Air for Android

    Dear All,
    I'm trying to play flv in my air application by using FLV playback in flash cs5.5.
    I can play flv in the pc but not on the samsung galaxy tab andriod platform.
    if anyone out there has tried out FLV playback with either an Air For Android application, where the FLV files are packaged within the app, or either streaming via normal http//:, any help  would be greatly appreciated.
    Thanks!

    First disable autoplay. It gave errors for me. Try to make the movie play with the play() command.
    to embed the movie in your air bundle, just go to publish settings for your flash project. Then in that screen go to the player settings.
    In the first GENERAL tab you'll see a the bottom that you can add files to your project
    Propably there is allready your .swf and an .xml file in there.
    Using the + icon you can add your video.
    Make sure that your video is in the same directory as your . FLA file and you can use it as is (by name)
    If for example your flashfile is in c:\mytest\mytest.fla and the video in c:\mytest\videos\myvideo.flv , then you will have to load your video as "videos/myvideo.flv" with a FORWARD slash, never use \
    Good luck

  • Will this be available for Android devices?

    I work with Windows and Android products because i feel i have more freedom when it comes to creativity with their products; also i never enjoyed Apple products. So will this be available for Android?

    PB3D is built on top of the new Flash player Molehill APIs so it will be available wherever Flash is. There is more infomation here:
    http://labs.adobe.com/technologies/flashplatformruntimes/features/stage3d.html
    Particularly this question:
    Will 3D be supported in mobile versions of Flash Player too? When?
    Yes, we expect the Stage3D APIs to be available on mobile platforms, such as Android and Linux Mobile. We expect to work with partners through the Open Screen Project to enable 3D in Flash Player and AIR on devices.

  • Reader for Android SOM Doc Object missing certain properties and methods

    I have found, much to my chagrin, that although Adobe Reader for Android pretends to allow the filling of forms, the Scripting Object Model is missing essential pieces that have been present in the desktop version for many years.  Among these are the Doc object's numFields property and getNthFieldName() method.  I find this rather odd since the Doc object's getField() method is fully present and functional.
    Basically, I am now finding that time-tested, reasonably simple, forms that worked perfectly on the desktop are broken.
    If the Adobe Reader for Android can't provide forms functionality (including basic scripting) that is comparable to the desktop, it shouldn't pretend to allow this at all.
    Isn't one of the goals of Adobe Reader to provide a consistent user experience across platforms?
    Who would have expected that in the Android product you could get a field by name but not enumerate fields?  Guesswork should not come into play here.
    Question:
    Is there at least some sort of proper documentation for the limited subset of SOM supported by Reader for Android?

    Update: I've been able to make progress with the first route mentioned above: adding the mobilecomponents.swc and the mobile.swc theme to my web project
    Turns out that Flash Builder had led me wrong in this regard. Adding the mobile SWCs to your Library project with the "merged into code" setting results in the compiler warning:
    The swc '/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/frameworks/themes/Mobile/mobile.swc' has style defaults and is in the library-path, which means dependencies will be linked in without the styles.  This can cause applications, which use the output swc, to have missing skins.  The swc should be put in the external-library-path.
    Seeing this the first time, I changed my linkage type to "External" and the warning went away. Then in my web project, I also added the mobile SWCs and set the linkage type to "merged into code" there. Flash Builder seemed happy with that approach, but upon running my application I got bizarre runtime errors (as mentioned above).
    Turns out that my first attempt was the correct way. Set the linkage type on the library project to "merged into code" and then don't re-link from your web project. Flash Builder will warn you about it but ignore the warning. Things seem to work pretty well for the most part now! I have an issue or two to look into (ex. List component doens't scroll) but things look pretty promising overall!

Maybe you are looking for