Creating an application without a head without a user interface

I use the NDK for about 2 weeks now and I can't seem to find any resource on the following blackberry Web site.

I am creating an application without a head that would run every 24 hours on my blackberry.  I have the app created with Momentics headless and it does what I need it to do. But right now I need to have a button in a user interface to call him.

What I'm trying to do is,

  1. Have created enforcement wihtout the need of a user interface for packing it or deployment using our company BES.

If you can point me to a tutorial or an example that would be great.  Of course if you have a response to these two that is too !

Thank you

Lothus.

Watch the timer shutter release for app without head, code snippets and explanations can be found here:
https://developer.BlackBerry.com/native/documentation/device_platform/headless_apps/triggers.html#TI...

If you need a more complete example, I can create one, but I don't know when I'll have the time to do it, he could be close to mid-January. But honestly, all the necessary code is already in the docs.

Don't forget to register action TIMER_FIRED in your bar - descriptor.xml under your app without a head part, I think it is also covered in the docs.

Tags: BlackBerry Developers

Similar Questions

  • Extensions without (visible) user interface?

    Hi all

    Question: is it possible to have extensions without a user interface, or with a UI in option? I managed to come close to how it works, but it seems to stay just beyond my reach. It's using InDesign.

    What I want to achieve: I want the extension to work permanently, so he can listen for events from documentAfterSave even when the Panel does not display and I want to have the status of 'visible panel' persist between sessions of the user.

    The first thing is to get the extension to load on startup of the application.

    In the Panel of lifecycle in the manifest Editor, I unchecked "AutoVisible" (do not know if this is important)

    Then I added the event applicationActivate for a list of the events 'started'.

    That made my extension appears when the application starts. Cool.

    But I want to be in control of the visibility of the Panel - that is, if the user had the Panel hidden when he used modified app, I want that the extension is hidden when the user runs the application at a later date.

    I want to know save state 'visible' to the extension between user sessions Panel. I tried to save and restore the visible state via the CSXSInterface.instance.whatchamacallit things, and I tried to listen for the change of State for WINDOW_SHOW and WINDOW_HIDE events, so I could keep track and maintain the visibility state of the group, but it seems that these events don't really work (see list of bugs of Harb elsewhere on this forum). I also tried to move the Panel out of the screen to simulate be hidden (old trick did not work).

    Before you give up and try a different approach (without extension generator), does anyone know if this can be made to work?

    Another doubt persistent: suppose that I managed to do the work, what is the documentAfterSave event? For example, when the user closes an unsaved document and then agrees to save the document when alerted (dialog box "do you want to save... »).

    The event will trigger early enough so I can still extract information from the document before InDesign starts to break down document data structures? Or I will end in the grey area, where simply access the half-disassembled document object can cause outages? Where can I get the document has already been closed since before the triggered event?

    See you soon,.

    Kris

    Hi Kris,

    AutoVisible = false means that when this extension is loaded its user interface is not made visible, leaving that up to the extension. Generally, the panels must have AutoVisible = true so that when a user selects the Control Panel on the menu, they can be assured that it will be made visible immediately, it also ensures a correct behavior when the Panel is anchored or closed.

    So the question is how to solve your problem?

    I suggest this broke into two extensions, an extension that is a sign of vanilla and another modeless extension which is hidden and is waiting for events. The hidden, should start on applicationActivate, have AutoVisible = false and does not have a

    element in its manifest (so it does not appear in the window > Extensions). This hidden extension may then respond to the save event, it can also activate your Panel on the first launch.

    That works for your use cases?

  • Sample code for creating our application without head in bb10.3 alarm

    Hello

    Can someone pls I mean is possible to create / to invoke the alarm from a user developed application? I want also the app in the background (like the app without a head) and receive timely notification whenever the alarm sounds. Please provide with some samples it ill be very useful.

    Thanks in advance.

    While working on the code for you example, I discovered that SystemDialog cannot be called from headless, so you do not have to depend on NotificationDialog instead.

    Find attached a sample application work that will play a vibrant sound using MediaPlayer and show a NotificationDialog asking if you want to Snooze (for 5 seconds) or disable the alarm.

    The source code is also available here:

    https://github.com/RodgerLeblanc/HeadlessAlarm

  • How to show the IOM application instance account password in the user interface

    Hello

    I would like to see IOM application instance account password.

    In OPAM, there is a "show password" button.

    Is it possible to do the same thing in IOM? If so, how?

    TIA

    Leo

    Customized using managed beans sound possible, you can try something similar to the example below:

    IOM Managed Bean example: password reset custom

    http://oraclestack.blogspot.in/2014/12/OIM-managed-bean-example-custom.html

    Or if its requirement quite normal for all users, it must be visible, then you can create a new field in your form to process and fill in the application form as pop prerequisite. But this is not recommended.

    ~ J

  • Creating an application with Muse (was: Muse)

    I was under the impression that you can create an application with the Muse program. Is this true? If so, how can I start - trying to find info on AdobeTV, but did not have much luck. Thank you!

    Muse is a product that allows you to easily create desktop Web sites and mobile without any programming. You can create HTML content using muse and use Adobe Phonegap to build an application using the code, however if you are looking to create an application without coding, take a look at Adobe Digital Publishing Suite instead of Muse (you can create an application using InDesign + DPS).

  • When I click on all the files I get an error message says "without this user supported interface.

    When I click on all the files I get an error message says "without this user interface supported 'n I can't open any files or folders.

    A moderator is spent it to search in the Forum, the folders and files Windows of Feedback Forum.

    HI, Luvnmidlife,

    Windows operating system?

    It is the unique user on the system account?

    Create a new account to use for testing purposes.  See if the problem persists using the new account

    Difficulty of a corrupted user profile

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

  • When I use pim/message lib in an application without a head at this time I have error

    Hi all

    Today, I try to compile the app for the incoming and outgoing sms watch but fatch some problem.

    It works very well in waterfall app but when I try to put implementing in an application without a head at this time, I get the error.

    I joined code of Cascade and Headless request please check and let me know what I need to change.

    Note :-work fine waterfall Soft code that works when the service error part it does not work.

    Hi Doturner,

    Thanks for the reply.

    I'll try to understand my problem as soon as possible, but some time I need to complete the project on time so when you do that, I have attached code according to the referance.

    Why I joined 2 code?

    -J' developed an application without head and this problem occur after I use the SMS api works pretty well. So I put 2 code code 1 and 2 work without labour code.

    Structure of headless service created by BlackBerry IDE and file name of the service being built. So I m confused and I have no idea is the headless application error or my mistake,

    What ever thank you once again, I'll check and if I need help and then I take the new query

  • We could get an update on the applications without a head for WebWorks?

    The road map of HTML5 is still nothing about apps headless.

    The Live session on headless applications is only "native".

    When we finally will be able to run services usable for basic applications and how will it work?

    We talked about this several times. Unfortunately at this stage we have no concrete plans in place. If you want to run an application without head or service, your best bet is native.

  • Problem with the application without a head

    Hello.

    My application without head works well in the configuration of the device debugging. When I change to device-release service seems to be frozen.

    "The system. STARTED event"does not start and I don't know why.

    I tried to export the application and install tools, but I get the same result.

    Is there a particular reason?

    Thank you

    There is a known, issue please read this...

    http://supportforums.BlackBerry.com/T5/native-development/unable-to-get-headless-apps-working/m-p/26...

  • Call functions of qml in main.qml of a part of the user interface of the part without application head.

    Hi all;

    I wanted that my application runs in the background (Headless) but first encountered several problems, calculation are qml functions (in main.qml: updateUi() with call javascript *.js files), who should I call their headless part when the part of the user interface is closed by the user? Please help me if you have any solution.

    Thank you very much.

    identify what treatment you need for the game without head and migrate to c + c++ / Qt.

  • You can create an application iPad w / two H & V layouts without creating copies of everything?

    You can create an application iPad w / two H & V layouts without creating copies of everything?

    You must make separate models for H and V.

    Neil

  • Creating a scene without the use of Application

    Hi all. I would like to start a JavaFX application without using the Application class. I have this:
    import javafx.application.Platform;
    import javafx.stage.Stage;
    
    public class TestLaunch {
        public static void main(String[] args) {
            Platform.runLater(new Runnable() {
                public void run() {
                    Stage stage = new Stage();
                    stage.show();
                }
            });
        }
    }
    But when I run it I get this:

    Exception in thread "main" java.lang.IllegalStateException: Toolbox not initialized
    at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:121)
    at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:116)
    at javafx.application.Platform.runLater(Platform.java:52)
    at nickdarcy.javafx.TestLaunch.main(TestLaunch.java:9)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

    How to start without using the Application class?

    Thank you, Nick.

    P.S. It's using the latest version on OSX.

    The Application class is not optional, you will have to use it.

    What you try will not work because there is no thread of JavaFX to run something later, when there is no active Application.

  • Is it possible to create a TabPane without tabs or paging control without control of the page (software controlled)?

    Trying to get my head around swapping scenes and one thing I see that is already coded and there is more intuitive controls paging and TabPane.  However, I would like to be able to create a vertical toolbar this page of controls or view tab.

    Is it possible to create a Pagination without control on the page?  Or is my guess of the Pagination control resizing so that the lower part is outside the window that opens, thus masking information page?

    Or, is it possible to create a TabPane with signs, but not the tabs?

    Can you explain more in detail what you try to do? Point of paging is to provide control of page features, and the point of a tab pane is to provide the functionality of the tab.

    If all you try to do is spend the different points of view, just add and remove views of some component layout. The easiest to use for this is a BorderPane, because it provides the methods set for different regions.

    For example:

    import java.util.Random;
    
    import javafx.application.Application;
    import javafx.geometry.Insets;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class ViewSwitchingExample extends Application {
    
        private static final Random RNG = new Random();
    
        @Override
        public void start(Stage primaryStage) {
            Node view1 = createView("View 1");
            Node view2 = createView("View 2");
            Node view3 = createView("View 3");
            Node view4 = createView("View 4");
    
            BorderPane display = new BorderPane();
    
            Button v1Button = createButton("View 1", view1, display);
            Button v2Button = createButton("View 2", view2, display);
            Button v3Button = createButton("View 3", view3, display);
            Button v4Button = createButton("View 4", view4, display);
    
            VBox buttons = new VBox(3, v1Button, v2Button, v3Button, v4Button);
            buttons.setPadding(new Insets(10));
            buttons.setAlignment(Pos.TOP_CENTER);
    
            display.setLeft(buttons);
    
            primaryStage.setScene(new Scene(display, 800, 600));
            primaryStage.show();
        }
    
        private Node createView(String text) {
            Label label = new Label(text);
            HBox hbox = new HBox(label);
            hbox.setAlignment(Pos.CENTER);
            int r = RNG.nextInt(256);
            int g = RNG.nextInt(256);
            int b = RNG.nextInt(256);
            String style = String.format("-fx-background-color: -fx-background;"
                    + "-fx-background: rgb(%d, %d, %d);" + "-fx-padding: 10px;"
                    + "-fx-font-size: 36pt", r, g, b);
            hbox.setStyle(style);
            return hbox;
        }
    
        private Button createButton(String text, Node view, BorderPane display) {
            Button button = new Button(text);
            button.setMaxWidth(Double.MAX_VALUE);
            button.setOnAction(event -> display.setCenter(view));
            return button;
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    

    If you do not use a component of border for the overall design, you can embed just a BorderPane in your page layout and let the top down, left and right vacuum. Or you can use any component you like feel and simply call pane.getChildren () .setAll (view) to change the view.

    There are a few kicking around for this feature mini-cadres (others might recommend to some, I'm not really familiar with them) but I generally find it quite simple to create from scratch whenever I need it it seems not really interesting to use the third party for this code.

  • launch an application without IDE

    Hello

    I developed an application without a head but when I run it on the device (run or debug) through the IDE, I find that any changes made to the part without head are not uploaded to the device. I need to remove the application from the device every time I have changes to the part without a head.

    Someone at - it ideas why this should be and how to fix it please?

    Change the version of your application at a higher level we will force the part without head to update, otherwise use Device Monitor on the phone to close the application. Personally, I use a button in my application that will close the part without a head, which I find useful and quick while actively coding an app without a head, but please do not forget to remove/hide the button before you release the app.

  • Citing the part of the user interface of the game without head in an app without head

    Hello

    I try to call my interface section user app without head of service class (part long term without a head), as shown below:

    application of BB::System:InvokeRequest;

    request.setTarget ("com.myDomain.myAppName");

    request.setAction ("com.myDomain.myAppName.START");

    InvokeTargetReply * response = m_invokeManager-> invoke (request);

    {if (Reply)}

    QObject::connect (response, SIGNAL (finished (()), this, SLOT (onInvokeResult ()));

    _invokeTargetReply = response;

    }

    else {}

    qDebug()< "failed="" to="" start="" invocation:="">

    }

    the error response is always "not objective". I double checked that the id of the target is my id app (user interface section) and that it is registered as target to call in the xml file bar


    application
    myAppName

    Icon.PNG

    myAppName

    I don't know why he keeps giving me the error response target?

    Made a typo, the Notification and NotificationDialog are part of the bb: platform.

    Here are their respective documents:
    Notification https://developer.blackberry.com/native/reference/cascades/bb__platform__notification.html#function-...

    NotificationDialog https://developer.blackberry.com/native/reference/cascades/bb__platform__notificationdialog.html#fun...

Maybe you are looking for