Finding the environment at runtime

Hello,
Is there a way to discover, at runtime, what environment the application is running in: as in mobile, desktop, or TV?
Also, is there some way find the device's screen size, at runtime?
Thanks,
Vance

1) Check the magic variable ___PROFILE___, can get values like "browser", "mobile", etc.
2) See [Problem with full screen application|http://forums.sun.com/thread.jspa?threadID=5437655] thread... :-)

Similar Messages

  • How do I find the value of GWYUID from within a form?

    Hi, can someone help me with the below?
    I'm trying to determine the value of the environment variable GWYUID from within a form so I can pass this value to the fnd_webfile.get_url function at runtime to display the output of a concurrent program in a web browser.
    I've tried the below but this just brings back null. Any ideas on how to find the value at runtime in 11i?
    v_gwyuid varchar2(100) := name_in('$environments$.gwyuid');
    fnd_message.set_string('GWYUID:'||v_gwyuid);
    fnd_message.show;
    Thanks, Geoff

    wow, many, many, many.... and many thanks!
    Just add a tiny modify to check out the Batch_type
    doc_id = (select batch_id from gme_batch_header where batch_no='&batch_number' and batch_type = 0)
    Because the batch_no can be duplicated as we also create Batch and Filrm Planned Order.
    Many thanks for your support!
    P/S: Sorry for my terrible English :P

  • "Error while registering the Java 2 Runtime Environment registry keys"

    "Error while registering the Java 2 Runtime Environment registry keys"
    I am getting the above error when trying to install the 1.3 JRE (installed with the 1.3 plug in which I need). As part of my development I have been installing and uninstalling the JRE multiple times. Then, I got the above error when trying to install it, and now it appears to be installed but I cannot uninstall it. When I try to uninstall it, it just remains, and when I try to install it again I get the above error. I have tried cleaning up all javasoft registry entries, but it doesnt seem to have helped. Can anyone help me either completely uninstall the JRE so I can do a clean install or help me get rid of the error above when I install. Is there some registry entries I should be looking at? Anything else? this is quite urgent as I need to test my applet with the plugin installed and not installed - and I currently cant uninstall it. Any ideas?
    Thanks for your help
    Aaron

    I am getting this same error message when trying to upgrade from 1.3.1_03 to 1.3.1_19.
    I have multiple versions of jre's and jdks on my machine.
    Anyone else seen this problem or know how to resolve it.

  • How to find out the version that the environment is on ?

    Hi,
    How do we find out the version that the environment is on ?
    For eg. The Production may be on R18, and the Staging on R19.
    Also, can we know in advance about the coming upgrades or downtimes ?
    Thanks & Regards

    Use the sql query below to find out the version of Oracle you are sing
    SQL> select banner from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    SQL>
    For the Unix OS use the following command below
    uname -a
    p2ttst4g:sbdb011:/export/home/oracle> uname -a
    AIX p2ttst4g 1 6 000044B1D600
    p2ttst4g:sbdb011:/export/home/oracle>
    Edited by: user11127331 on Jul 18, 2011 2:18 PM

  • Where can I find the Java SE 6 runtime download so I can get Adobe Photoshop CS5 up and running again.

    Where can I find the Java SE 6 runtime download so I can get Adobe Photoshop CS5 up and running again. I have to go this route. Currently on my Mac, I need to be running Java 7.65 for work-related stuff. I went to the Java site, but could not find anything that simply says "Java SE 6 runtime" ... Or, is there another way to get CS5 up and running with my recent Yosemite download?

    No, I can't go that route. I have to stick with my current Java 7.65 ... Our IT department said just to download SE6 Runtime separately ... If I was understanding that correctly. Or, can you have two different versions of Java running ... 6 ... and 7.65?

  • How to find the cause ofan error at runtime in forms (10g)

    hi
    can u please tell me how to find the cause ofan error at runtime.
    in forms 6i, the shortcut key is shift+f1
    i needthe shotcut key in 10g forms.
    thanx

    or just look in you menu help, -- last error or you can find the list of shortcut keys there ...
    \Erwin

  • Finding the thread ids instantiated at runtime

    Hi,
    I want to know if there is any way to know the threads that are instantiated at runtime from outside the class or package. To be more clear, I am building a module to enhance JSWAT (Open source java debugger ) to visualize the concurrent execution(monitor based) of multithreaded applications.
    The user can load his multithreaded application in on the debugger UI using the menu File -> Load File. When the user clicks the run button, then threads would be created based on the user application (the multi threaded application that the user loads on to JSWAT).
    I wanted to know if I can find the threads instantiated from the module that I am building ( outside the class of the multi threaded application) at run time. If so, how?
    I also want to synchronize my visualization module with the JSWAT debugger. i.e. If the user sets a breakpoint in the debugger, then the visualization should also stop at that point.
    Please advise me how to do these two tasks.
    Thanks in advance. Eagerly awaiting your reply.
    Thanks
    Arun

    You could arrange for a breakpoint to be set in java.lang.Thread's start() method, and get a call back when ever client's code hits this method ?
    See this : http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/index.html
    http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/com/sun/jdi/request/BreakpointRequest.html
    http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/com/sun/jdi/Location.html
    A tool that is built using the above api that gets a callback whenever java.util.Zip constructor is called may be of help.
    http://blogs.sun.com/quinn/entry/tool_for_diagnosing_failed_glassfish
    -Prashant

  • Portal runtime error: where can I find the system log?

    I got a portal runtime error. Like this:
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 10:22_16/05/08_0007_13424550
    Where can I find the log file / more details?
    Thanks
    René

    Hello rene,
    2 ways for accessing log: 
    1) browse portal filesystem : \usr\sap\J2E\JC00\j2ee\cluster\<server instance>\log\
    2) use sap log applications
    I suggest you to use logviewer or visual admin(it contains logviewer) applications. It will display formated logfile and you will be able to filter on severity / User Name / date / .......
    if you are using visual admin, just connect with Visual Admin then browse to  <server name> / services / log viewer then  again <server name> \usr\sap\J2E\JC00
    j2ee\cluster\server0\log and then click on defaultTrace.trc
    it is pretty the same navigation when using logviewer
    Kind Regards
    Cedric Meyer

  • How do Mac and Linux find the JFX runtime?

    I've been searching the documentation without success for the answer to what ought to be a simple question -- how do I point Mac or Linux at the 2.2 runtime? It's no problem if I'm running in an IDE (NetBeans, e(fx)clipse), where I can tell the IDE where I unpacked the SDK. But what if I want to run a jar file, such as produced by the ant tasks?
    You'd think this would work (on Linux, where I unpacked the SDK into /opt):
    java -cp /opt/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar:. -jar MyProgram.jar But it doesn't -- I get a popup saying "This application requires a newer version of the Java runtime. Please download and install the latest Java runtime from java.com. Then restart the application" (I'm running with 1.7.0_05-b05 from Oracle).
    The only thing at all close I find in the Linux installation instructions is it says to unpack the samples as a subdirectory of the SDK, wherever I happened to put it, and then I should be able to run the examples with a simple "java -jar filename.jar". But even that's not quite true -- it only works if I first cd to the samples directory. But it's a start, so I tried...
    cd /opt/javafx-sdk2.2.0-beta/rt
    java -jar ~/dist/MyProgram.jarThat succeeds in finding the runtime, but my program doesn't work, because it doesn't find my dependent libraries. So I tweaked the command a little bit:
    cd /opt/javafx-sdk2.2.0-beta/rt
    java -cp ~/dist/MyProgram.jar -jar ~/dist/MyProgram.jarThat actually works. But it can't possibly be the right answer -- you shouldn't have to run a javafx program with the runtime directory as your working directory.
    And even that doesn't work on Mac. There, Java knows how to find the runtime that's installed with JDK 7 update 5 for Mac. But if I want to test a program with the 2.2 runtime, what do I do? Setting -classpath on the command line still uses the 2.1 runtime. And if I try the trick of connecting to javafx-sdk2.2.0-beta/rt first, it doesn't work at all -- it doesn't find my libraries, and it throws up a "java quit unexpectedly" window after getting a segfault.
    So what's a developer to do? Am I supposed to use the native packaging procedure instead?

    JavaFX 2.2 is first version where Linux/Mac are supported as runtime (and not just SDK).
    However, you need to install JavaFX Runtime that is part of JRE 7u6 (you can get beta from jdk7.java.net or wait for FCS version of it).
    Installing JRE is the only way to get JavaFX runtime installed on Mac and Linux (and eventually on Windows too).
    rt folder in the SDK is "private" copy of the runtime. It is not supposed to be used to run arbitrary JavaFX applications by default.
    You can still force to use it as
    java -Djavafx.runtime.path=/opt/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar -jar MyProgram.jar
    or
    java -cp ~/dist/MyProgram.jar:/opt/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar com.javafx.main.Main
    Note that if you use "-jar" then "-cp" is ignored by java launcher. This is not JavaFX specific behavior.
    JavaFX specific part is that properly packaged JavaFX main jar file will include copy of launcher class (com.javafx.main.Main)
    and this is what will be run when you double click on jar or use "java -jar". Launcher will try to locate JavaFX runtime to use,
    it knows how to find runtime in the SDK if it is sample located in the SDK itself and it also knows how to find installed version of runtime.
    If JavaFX is not found then it will show you message you observed.

  • Want to find the Data type of a variable at runtime ?

    Hi,
    I Want to find the Data type of a variable at runtime ?
    I think there is a function module... But i forgot ..... Can you please help me out.
    Points are rewarded immediately.

    hi,
    do this way
    REPORT ysantest LINE-SIZE 350.
    DATA : v_num TYPE n,
    v_type(2).
    DESCRIBE FIELD v_num TYPE v_type.
    WRITE : v_type.

  • How to find the previous path environment variable in windows 2008

    I am reconfiguring the Hyperion 11.1.2, and later, I installed the ODI. And them when I come back to reconfigure the Hyperion, it cannot be reconfigured, and say cannot find the path parameter. And I check the PATH environment variable, and find it is showing a dumy value, do we have a way to recover the previous PATH envirnment variable?

    To get the source IP address, you will need to enable File Share auditing: http://technet.microsoft.com/en-us/library/dd772690%28v=ws.10%29.aspx
    Otherwise, you can simply disconnect the user session.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • How to Find the Runtime for any workitem.

    Hi,
    Could you please tell how to find the runtime for any workitem.
    Thanks,
    Bhanu Gattu.

    Hi,
    I think, your query is pertaining to Workflow.
    Please explain your requirement little more.
    If you need Runtime Analysis:  Then the transaction Code: SE30 must be used.
    Thanks.
    RamaniN
    Edited by: Ramani Nagarajan on May 21, 2009 12:33 PM

  • Why Can't find the last name of word "李", "林" in Taiwan chinese environment

    AS Subject , the word of last name 李" and "林" is the most visible last name. But when we searching in pdf type file, we can't find the word in my entry mode use MINGLIU font(細明體). If copy from pdf contain, and it would be normal action, Why?

    Hi,
    You need to purchase and upgrade to Mountain Lion.  It can be bought from the Mac App Store.
    Morgan

  • HT4759 How do I find the icloud control panel in a Windows 8 PC environment

    How do I find the icloud control panel in a Windows 8 PC environment

    Go to the Start screen, then click the iCloud tile.
    http://support.apple.com/kb/PH12803

  • Runtime Error setting the 'Environment' when running with TWO executables

    Hello,
    I'm using XML DB for the very first time, so this problem may be easy to solve.
    I'm currently running a test with TWO separate C# Console executables.
    One executable correctly sets up the Xml Environment, Manager, and Container and simply adds XML documents to the database.
    The second executable simply is supposed to run some XQuery commands. I use the same Environment, Manager, and Container code to do the initialization. However, I'm having trouble with setting up the 'Environment' in this executable. I get the following error:
    DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery, exception code = DATABASE_ERROR
    On this line of code:
    Sleepycat.Db.Environment env = new Sleepycat.Db.Environment(envdir, envconf);
    I've only seen code examples that run in a SINGLE executable. I'd really like to access the XML DB from multiple threads/executables, but am having trouble.
    Can there be multiple 'Environments' and 'Managers' for the one XML Db?
    Will provide more data if needed, and thanks for any help!
    Matt

    I guess you addressing this in the wrong forum. I see tags like "sleepycat" and "C#", probably thats why nobody replied.

Maybe you are looking for

  • How do I move notes within the Notes App to a different account?

    My iPhone4 has iOS 4.2.1, and I didn't realize until today that that came along with an updated Notes app that allows syncing with email accounts. Somehow I managed to unknowingly move about half of my notes to one of my email accounts, which deleted

  • Greyed out permissions buttons

    After installing the latest Safari update (3.1.1) and restarting, my 20" 2.4ghz aluminum iMac was a bit buggy so I decided to repair permissions. While I was at it, I wanted to do the same with my external hard drives, but the Verify Disk Permissions

  • My New iPod nano 6g, just stop working the screen is freezd in the menu? Pleace HELP!!!

    My New iPod nano 6g, just stop working the screen is freezd in the menu? Pleace HELP!!!

  • EPub feature request: image size relative to margins

    In the epub export dialog, we're given the option of exporting images "relative to page". Meaning (as far as I can tell) that if, in the layout, the image is 20% away from the left edge and 20% away from the right edge of the page, then in the ePub i

  • OEL 5.5 running Oracle VM Templates

    Dear experts I have installed a server with OEL 5.5 in order to run the Oracle VM Templates for Siebel. I'm able to run the oracle vm's using xm create vm.cfg However I cannot ping the guest machine just started. I'm able to login with VNC using the