Saving the selected user Backgrounds

In one of my applications, I let the user select a background using CameraRoll, but I can't understand how to record the background so that it can be loaded as the backdrop the next time they open the application.

Should I use a SharedObject? (That's what I tried).

Hey tyrael,

Yes the SharedObject class would work perfectly for this. Your best bet is to save the path to the image of the SharedObject object and then simply assign your application background when loading the string stored in the SharedObject.

So when you allow the user to choose an image, simply save you the path to the entrance of the SharedObject example:

var sharedObject:SharedObject = SharedObject.getLocal("MyApp");

(...)

sharedObject.data.appBackground = "/path/to/image.png";

sharedObject.flush();

and when you have to do it the same way but in the opposite direction:

var sharedObject:SharedObject = SharedObject.getLocal("MyApp");

(...)

var image:Image = new Image();

(...)

image.setImage(sharedObject.data.appBackground);

(...)

addChild(image);

hope that sheds some light. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • The MGP Apply mode / 'write' for the selected users?

    Is there a work around to implement the mode of MGP Apply / 'write' for the selected users? The reason is that we have registered who transact only the request online. In this case, they don't need to synchronize. Manually change the ALL_CLIENT$ CAN. OUTQUEUE_DIRTY to ' has only a temporary effect and would normally return to 'Y' after a user made another transaction online. Please advice.

    If you have users who just order updates, then why do need to be put in place in the mobile app? they still appear in synchronization history? If this isn't the case, then I suggest that you just drop them from the mobile server because they have no need for the application lite oracle, just access to the server application.

    Regarding updates to direct data to the tables of mobile repository then (although not recommended), normally they don't cause problems, but would bypass in some cases associated with the transformation.

    If you change the param_value in c$ all_subscription_parameters, then the new setting of subsetting to take effect. However, if you do the same action via mobile manager, it also triggers a reset (if used) customer zero, assignment of new values in sequence and re-evaluation of the list of items of publication associated with c$ all_client_items - these products of two change would be lost if you just update the data in the table

  • Filling of the days of the week from the date of the selected user. Style of timesheet

    I have not touched Adobe or Java in more than a year and I'll have trouble remembering certain things.

    I have a weekly time sheet, I'm editing and I have a few questions.

    1. the user is first of all, select the start date, but I only want it to be a Monday.

    2. this date will then fill the columns with the day and date in the format "Monday, January 9.

    For some reason, I can't the fields as I want. Any help would be appreciated.

    Comment just the line xfa.host.setFocus("$") - you will always have the popup and the field is set to null.

    But the goal is to get the person to take a Monday, and if you need the date before anything else happens using the setFocus command is a good method. So yes, you can sort - of getting stuck in a loop, but it is easy to break out of the loop by following the instructions and selecting a Monday.

    Filling a list box drop-down with every Monday, it would be more of a pain for the person filling out the form, I think - it's going to be a large menu drop-down.

  • Average arithmetic of the selected data region

    Hello there I need help visual c# .net:

    I want to know the average arithmetic mean of the values of foot between two points of the selected user.

    I think that the selection of points will be easy with cursor, when the user clicks about data, the cursor will break sharp.

    But how can I select the entire data points in these region selected by the user and get the average arithmetic mean of these values of y?

    Thanks for your kindly help.

    • Use WaveformPlot.MapDataPoint (...) to convert x and y values of the Point data (i.e. pixel)
    • Use WaveformPlot.InverseMapDataPoint (...) to Point to the x and y values of data.
    • Use the WaveformPlot.GetYData () to get the data that you traced.
    • Use the WaveformPlot.GetXData () to get the coordinates of each point you data plotted on the graph. By default the value in the table XData [If you used the method of foot (s)] are essentially calculated from the WaveformPlot.DefaultIncrement and WaveformPlot.DefaultStart. So using these you can calculate the double [] index.

    Use above methods to do all the stuff you want.

    For example, to get x and are given where the mouse click, you just use the WaveformPlot.InverseMapDataPoint () to the location of the mouse click.

  • Not able to add the selection of Types of paper taken in charge

    Hello
    I am new to Oracle B2B.
    Through the steps in the tutorial http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/b2b_tps.htm#BABGAJDE
    Completed up to 5.3 - task 2 (add a user in the Interface of B2B Oracle)
    And the next thing,
    I'm not able to add select support Document Types.When I click on the "Add supported document type for the selected user", I see "CUSTOM", "EDI_EDIFACT" etc., but in this form has been disabled my ' Add ' button.
    Please let me know how to proceed with this.

    Thank you
    Dembele.

    Edited by: 796969 09/27/2010 14:11

    Hi dembele,.

    To add a document, you must first create that.

    Follow link below to see that the way to create a document.

    http://download.Oracle.com/docs/CD/E14571_01/integration.1111/e10229/bb_doc_flow.htm#BABFGDBA

    Once you have created a document, then go to add it. After the name of Protocol of document in which you created the document, you will see a sign plus. Expand until you see the definition of documents, that you created. Now, select the document definition name, and add the button is activated. Click Add to add this document definition in the trading partner profile.

    Kind regards
    Anuj

  • Hello, I want to download a portrait on a TSHIRT. I selected the selected area appears on a mask. The of to jpeg when I download this TSHIRT, I have the white border and white background that appears. What I don't want I v

    Hi all

    I want to download a portrait on a TSHIRT. I selected the selected area that appears on a layer 1.

    I recorded this layer in jpeg

    But when I download this jpeg on the TSHIRT (site of the seller), I have the white border and white background that appears on my Tshirt.

    What I don't want, I want only the selected head... How do I do, please? Thanks for your help!

    JPEG does not allow for transparency and provides white where it appears in the saved file.

    Save a file which allows transparency (PSD, PNG. etc.)

  • Advice on the selection and removal of objects from the background (CS6)

    Hello!

    I know that the title is not so accurate. I used HAVE a 1.1, but not a power user. I know there are a lot of different ways to do the job. And if you know what you are doing you can get this done fast. Especially with a lot of files to process. Here is an example of a vector, with that I need to work. I would like to delete all the objects of "background". Those of grey to white vectors, leaving the main work only. I would use this then make a black mask for the PS, but also be able to place on other files without extranious geometry. I tried to select a variety of gray objects and use of analogues of select variety, but it does generally creaded more work, leaving the empty vectors and points without really everytrhing selection I would like to remove.

    So, is there an easy way to select and delete all the objects (light gray) background to delete? I wish I could this batch because I have a lot of files to clean.

    Here is the file I, if someone wants to take a look (http://www.filehosting.org/file/details/428446/rumble3.ai)

    I do not know there is an effective way to do it.

    Thank you

    In advance!

    Maxi

    rumble3.jpg

    Sorry, I meant the magic wand.

    You can enter a blur value (take the darker gray to select level), and then click a white object. Would maybe work. If yellow objects are captured, you could avoid using the magic wand with zero tolerance.

  • On the SELECTION of the MAIN USER SCREEN,...

    ......... I can't select the option user Accounts_logon logon Welcome screen options on my Windows XP Professional. When I select the task to "change the way users log on or off", I get a warning message, stating: "services Client for Netware has disabled the Welcome screen and the fast user switching. To restore, uninstall services Client for Netware. How do we uninstall services Client for Netware? I disabled this service in the administrative tools_Services. but... I'm afraid acsess TOOLS WITHOUT administrative SUPPORT.

    Hello

    I suggest to try the given steps and check if it helps.

    Error message when you try to turn on welcome screen or Fast User Switching:

    http://support.Microsoft.com/kb/315347

    Hope this information is useful.

  • Preset in LR 6.5.1 user does not contain the changes made to the selected picture.

    Hello

    " first things first: LR-help: ' Presets that you create are based on the current settings of the selected photo. »

    1. I opened a picture and make a few changes (tone curve, the camera calibration)

    2. I go to 'Presets', '+' sign: the changes I made (see 1) are NOT in the form "new develop preset", means that boxes like: your curve etc. remain unchecked.

    3. it's the same, when I try to update an existing user preset (right click: update with current settings).

    So: it's a bug, or is it a feature?

    Thanks for your help

    Avignon Purclot

    The OP never wanted all the control parameters.  The confusion is because they thought "current settings" mean "change settings" and we understand as "all parameters possible.

    So when they complain that the "current settings are not checked', they meant the" two they adapted are not checked, "we know 'current settings' means 'all settings' so we have first been interpreted their complaint of"current settings are not verified"as"all parameters are not checked.

  • WARNING when saving the changes after adding the user to the shared services

    Hi all

    I added a user in shared and all services, saving the changes I get this warning

    Is it safe to ignore this warning, what am I supposed to drop after you save the changes

    If you added the user in Shared Services, then no problem to save it.

    Thank you

    Mady

  • How to change the background color of a line when you have the selection of cells in tableview?

    I have a tableview and I chose the selection of cells. How can I change the background color of a line, if I select a cell?

    The usual example using:

    import javafx.application.Application;
    import javafx.beans.binding.Bindings;
    import javafx.beans.binding.BooleanBinding;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener.Change;
    import javafx.collections.ObservableList;
    import javafx.collections.ObservableSet;
    import javafx.css.PseudoClass;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.SelectionMode;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TablePosition;
    import javafx.scene.control.TableRow;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    
    public class RowHighlightedCellSelectionTableViewSample extends Application {
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            scene.getStylesheets().add(getClass().getResource("selected-row-table.css").toExternalForm());
            stage.setTitle("Table View Sample");
            stage.setWidth(450);
            stage.setHeight(500);
    
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
    
            final TableView table = new TableView<>();
            final ObservableList data =
                FXCollections.observableArrayList(
                    new Person("Jacob", "Smith", "[email protected]"),
                    new Person("Isabella", "Johnson", "[email protected]"),
                    new Person("Ethan", "Williams", "[email protected]"),
                    new Person("Emma", "Jones", "[email protected]"),
                    new Person("Michael", "Brown", "[email protected]")
            );
    
            table.getSelectionModel().setCellSelectionEnabled(true);
            table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    
            final PseudoClass selectedRowPseudoClass = PseudoClass.getPseudoClass("selected-row");
            final ObservableSet selectedRowIndexes = FXCollections.observableSet();
            table.getSelectionModel().getSelectedCells().addListener((Change change) -> {
                selectedRowIndexes.clear();
                table.getSelectionModel().getSelectedCells().stream().map(TablePosition::getRow).forEach(row -> {
                    selectedRowIndexes.add(row);
                });
            });
    
            table.setRowFactory(tableView -> {
                final TableRow row = new TableRow<>();
                BooleanBinding selectedRow = Bindings.createBooleanBinding(() ->
                        selectedRowIndexes.contains(new Integer(row.getIndex())), row.indexProperty(), selectedRowIndexes);
                selectedRow.addListener((observable, oldValue, newValue) ->
                    row.pseudoClassStateChanged(selectedRowPseudoClass, newValue)
                );
                return row ;
            });
    
            TableColumn firstNameCol = new TableColumn<>("First Name");
            firstNameCol.setMinWidth(100);
            firstNameCol.setCellValueFactory(new PropertyValueFactory<>("firstName"));
    
            TableColumn lastNameCol = new TableColumn<>("Last Name");
            lastNameCol.setMinWidth(100);
            lastNameCol.setCellValueFactory(new PropertyValueFactory<>("lastName"));
    
            TableColumn emailCol = new TableColumn<>("Email");
            emailCol.setMinWidth(200);
            emailCol.setCellValueFactory(new PropertyValueFactory<>("email"));
    
            table.setItems(data);
            table.getColumns().addAll(firstNameCol, lastNameCol, emailCol);
    
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table);
    
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
    
            stage.setScene(scene);
            stage.show();
        }
    
        public static class Person {
    
            private final StringProperty firstName;
            private final StringProperty lastName;
            private final StringProperty email;
    
            private Person(String fName, String lName, String email) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.email = new SimpleStringProperty(email);
            }
    
            public String getFirstName() {
                return firstName.get();
            }
    
            public void setFirstName(String fName) {
                firstName.set(fName);
            }
    
            public StringProperty firstNameProperty() {
                return firstName ;
            }
    
            public String getLastName() {
                return lastName.get();
            }
    
            public void setLastName(String fName) {
                lastName.set(fName);
            }
    
            public StringProperty lastNameProperty() {
                return lastName ;
            }
    
            public String getEmail() {
                return email.get();
            }
    
            public void setEmail(String fName) {
                email.set(fName);
            }
    
            public StringProperty emailProperty() {
                return email ;
            }
        }
    }
    

    And then the selected line - table.css:

    .table-line-cell: {selected row

    -fx-background-color: lightskyblue;

    }

  • I am new to Adobe Stock.  An Adobe stock image is usable like a Facebook profile picture?  My concern is that the image profile can saved by other users of Facebook... so they can get the image without having to pay Adobe for it.

    I am new to Adobe Stock.  An Adobe stock image is usable like a Facebook profile picture?  My concern is that the image profile can saved by other users of Facebook... so they can get the image without having to pay Adobe for it.

    Hi martyc98498222,

    I suggest you to use the Image of Adobe Stock for social media, also you can refer to the following document: https://helpx.adobe.com/stock/faq.html#Adobe%20Stock%20usage%20and%20licensing

    Kind regards

    Tanuj

  • How to extract the selected ESXi host user name and the password in the web client of vSphere?

    Hi all.

    I'm developing a plug-in for the web client to vsphere. I want to communicate with the selected host of ESXi in my Java Service Layer and who needs the host user name and password.

    I don't know how to search the Flex user interface layer.

    ESXi credentials are not stored in the user interface layer, you must use the vSphere SDK Web Service on the coast of java.  See vim.host.ConnectInfo.

  • Ability to create a Message in response to the end user by selecting 'Cancel' or 'block' after clicking on a link to a URL?

    Hi all:

    When a user clicks on a link/button to connect to a URL, the Security dialog box appears automatically giving them options 'Allow', 'Block' or 'Cancel '.  Should they choose 'Block' or 'Cancel', can trigger us a message box informing them that they blocked or cancelled the connection?

    With traditional message boxes, we are making them, that is to say

    var rtnFromBox = xfa.host.messageBox ("Information is missing.\n\n are you sure you want to continue?", "Missing Information", 1, 2);

    If (rtnFromBox == 4) {}

    xfa.host.messageBox ("Let's keep DC.","", 1, 0);

    }

    But with the security of URL dialogue, we are not calling it a variable - it happens.

    I suppose a similar question could be applied to a Save"" button.  Where if the end user selects 'Cancel' in the dialog box "save under", a warning may pop up to remind them to register quickly.

    Thoughts?  Thank you!

    Brian

    I don't see a way to do what the Security dialog boxes are not executed by the JavaScript API and does not return all the values that you can use.

  • How to change the background color of selection of the selected item in the drop-down box of choice?

    How to change the background color of selection of the selected item in the drop-down box of choice?

    By default, the selection background color like 'blue', but if I want it to be "yellow" for example, how should I do?

    Thank you

    The id is applied by (I think) the skin of the ChoiceBox class. You don't need to define.

    You must apply the css in an external style sheet. You can apply the external style sheet to any parent of the box of your choice, or on-site (the most usual way to do it).

    Example:

    import java.util.ArrayList;
    import java.util.List;
    
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class ChoiceBoxTest extends Application {
    
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
    
        final ChoiceBox choiceBox = new ChoiceBox<>();
    
        List tempResult = new ArrayList();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        }
        choiceBox.getItems().setAll(tempResult);
    
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();
      }
    
      public static void main(String[] args) {
        launch(args);
      }
    
    }
    

    choiceBox.css:

    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
     -fx-background-color: yellow ;
    }
    #choice-box-menu-item .label {
     -fx-text-fill: black ;
    }
    

    Post edited by: James_D

Maybe you are looking for

  • Names of devices

    How can I change the name of a device without erasing it?

  • Firefox after opening a new tab

    When I open Firefox, it opens on my startup page, then immediately opens a new generic tab. I think I once clicked on "make your start page xxx", but never once completed the process. How to get there at my start page?

  • HP Pavilion G6 1304sv: CPU - upgrade of microprocessor

    Hello, I have this laptop for a few years now... HP G6 museums 1304sv... and I would like to ask, if it is possible to be able to upgrade my CPU microprocessor for a better. I didn't get a lot of research on this, because I thought I could post a que

  • Problems with printer D110a

    I am running Windows 7 64 bit. Never had a problem with the printer until today. I installed a new black cartridge HP 60. The alignment test failed during the sweep phase, error says I don't have a pattern of good alignment. I can print, but when I t

  • LaserJet MFP M176n Pro: media type settings

    I use a Color Laserjet Pro M176n MFP printer on my home network with a Macbook and an iMac desktop computer. Printing from the iMac gives me about 10 choices of the media Type box. Printing from my Macbook makes about 40 choices. How to make the full