How to get info about the mobile, like screensize...

hi,
i need some info about the device my midlet is running on.
how is it possible to get info about the screensize, screentype(color/black) and perhaps devicetype or modelname?
i already read it somewhere but i didn't find the source again.
tia
mmkl

thx,
the example below shows some basic information.
Display myDisplay = Display.getDisplay(this);
Displayable dis = myDisplay.getCurrent();
int high = dis.getHeight();
int width = dis.getWidth();
boolean isCol = myDisplay.isColor();       
int nubCol = myDisplay.numColors();more detailed information about model, aren't available through the standard api, on blackberry's there some restricted apis that provide these device-type and other detailed information...
for more basic information, just look at the class-methods from display and displayable...
mmkl

Similar Messages

  • HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL

    HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL USING 10g Database and 10g Application Server
    we have developed an application using oracle forms 10g with
    oracle database 10g and Application server 10g
    Application uses a single Oracle User name to connect to database
    where as at Application level there are different users (these are not database users)
    Now how can we get the information about the user/his machine etc. at database level. earlier in 6i/8i we use to get by using
    USERENV('TERMINAL')
    we had written a triggers on tables on Insert/Update where we used to update a database field Last user terminal with USERENV('TERMINAL')
    but not this information is comming to be the machine name of application server where as we wish this to be the machine name of Client. Any Way outs
    thanks
    Chaand Kackria

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • How to get info about web service caller inside Web Service

    Hi..
    I want to know that can we get info about Web Service Caller inside called web service..
    Info Like IP Address, User Id, User Name
    Regards,
    Ajay Sharma

    Hi,
    I tested following code using JDevloper 11g
    @Resource 
        WebServiceContext wsc;
        @WebMethod
        public String webMethod() {
                    MessageContext msgCtxt = wsCtxt.getMessageContext();
            HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST);
            System.out.println("Client IP = " + req.getRemoteAddr());
            return req.getRemoteAddr();
        }It is giving me IP address but when i tested this web service from another computer there also it is giving my machine address instead of the machine IP from where the web service is called.
    What is wrong in my code ?
    Regards,
    Ajay
    Edited by: Ajay Sharma on Dec 31, 2012 1:06 PM

  • How to "Get Info" in the iTunes Store

    In the usual part of the iTunes Store, you cannot "Get Info" about media, but there is another section where you can. First, find out the item's Genre or Category.
    If it is Music, find out the Artist and Album.
    If it is an Audiobook, find out the Author/Narrator.
    If it is a Music Video, find out the Artist.
    If it is a TV episode, find out the TV Show and the Season.
    Go to the iTunes Store. Scroll to bottom. There are 4 columns. Under the 2nd column, Features, choose Browse. Choose the media type (Movie, Music, etc). Choose the Genre or Category. Next:
    if Music:
    Choose All for a Subgenre. Choose the Artist. Choose the Album. Right-click on the desired song, and choose "Get Info."
    if Movie or App:
    Right-Click the desired item, and choose "Get Info."
    if Audiobook:
    Choose the Author/Narrator. Right-Click the desired item, and choose "Get Info."
    if Music Video:
    Choose the Artist. Right-Click the desired item, and choose "Get Info."
    if Podcast:
    Choose All for a Subcategory. Right-Click the desired item, and choose "Get Info."
    if TV show:
    Choose the TV Show. Choose the Season. Right-Click the desired item, and choose "Get Info."

    One stated to "search cmd, right click, and run as admininstrator" but where is this?
    In the search field in your Vista start menu, type cmd
    Next, right-click on the cmd that comes up and select "Run as administrator".

  • How to get info about Composition/Candidate window?

    Hi All,
    I'm working on an application which should be able to take multi-language input (especially chinese, japanese, and korean).
    When we type something in Chinese/Japanese, there will be Composition and Candidate Window popped up. I want to know whether there is a way to get/set some attributes/info about those windows.
    Specifically, I want to be able to position the Composition/Candidate Window anywhere I want...
    I've tried the active client tutorial for the on-the-spot and below-the-spot input, but I still haven't find a way to get a 'handle' to the windows...
    Can anyone help? Thanks in advanced :)

    I do not think the individual temp file percentages is of much use. What you usually want to know is how much of the temporary tablespace is in use and how much is available.
    For that I think you want to compare current total usage information that can be found in v$sort_segment against total available for usage data that can be found in dba_temp_files to get the percentage of available temporary file space that is in use.
    I quickly put together the following. See if either is on any use in constructing the information you really want.
    > @t20
    >
    > select
      2    used_blocks
      3   ,total_blocks
      4   ,f.blocks                             as FILEBLOCKS
      5   ,round(used_blocks/total_blocks * 100,1) SORTSEGPER
      6   ,round(used_blocks/f.blocks * 100,1)        TEMPFILEPER
      7  from
      8    v$sort_segment
      9   ,(select sum(t.blocks) blocks from dba_temp_files t) f
    10  /
    USED_BLOCKS TOTAL_BLOCKS FILEBLOCKS SORTSEGPER TEMPFILEPER
           8960       689664    1025024        1.3          .9
    >
    > select
      2    round(used_blocks/ (select sum(blocks) from dba_temp_files) * 100,1) ||'%'
      3    as TEMPFILEPER
      4  from v$sort_segment
      5  /
    TEMPFILEPER
    .9%HTH -- Mark D Powell --

  • How to get info about available Toshiba updates?

    I have noticed that this has taken over from the online product information button.
    I was wondering how do I know now when there is an update availabe for Toshiba specific software and hardware?

    To be honest if the system runs well und stabile you don't need any updates. On my one and half year old notebook I still use original preinstalled OS (recovery image) without any Toshiba specific updates. All I have installed are Microsoft updates.
    Anyway if you want to have info about available updates pick up info about TOSHIBA TEMPRO tool.

  • How to get information about the modules used in the RT system from host pc.

    hi all,
    i am trying to  read the modules of the RT tragets from my host pc without deploying the program.
    i have 2 or more than 2 rt systems from which i am trying to get the information about the modules used in that particular system.
    Regards,
    Santhosh M

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • Getting info about the FLV file..

    is there any way to get information from the FLV (maybe in
    the metadata) to find out about the codec, frame rate, kilobits per
    second, audio data rate, etc..
    is there anything that can read that information? or can it
    be done IN flash?

    FLV metadata viewer:
    http://www.buraks.com/flvmdv/

  • Get info about the current call

    I need a solution (eg ANE) for information about the current call - event of success, of duration, of ending.
    Is that possible?

    thx,
    the example below shows some basic information.
    Display myDisplay = Display.getDisplay(this);
    Displayable dis = myDisplay.getCurrent();
    int high = dis.getHeight();
    int width = dis.getWidth();
    boolean isCol = myDisplay.isColor();       
    int nubCol = myDisplay.numColors();more detailed information about model, aren't available through the standard api, on blackberry's there some restricted apis that provide these device-type and other detailed information...
    for more basic information, just look at the class-methods from display and displayable...
    mmkl

  • How to get info about updates' repo and versions, including AUR pkgs

    I'm writing a little tool in python that checks for updates and displays notification in gnome about available updates. I'm doing this by syncing database to custom directory with:
    pacman -Syb /custom/dir
    and then getting list of updates with
    pacman -Qub /custom/dir
    I do it this way because I don't want to sync my real pacman database until I'm actually installing or updating packages. I then get current version and repo of the listed packages with:
    yaourt -Q | grep "list\|of\|packages"
    It's quite long and seemingly wasteful procedure, but an even bigger issue is that I don't know how to do the same thing with packages from AUR. Looking at the yaourt's man pages I see no option to sync database into a custom directory.
    Any suggestions?

    Camus wrote:
    The author of that blog post used cower instead of yaourt, but I don't think cower allows me to sync AUR database into custom dir either. Or am I missing something? I don't how yaourt and cower sync AUR database anyway.
    I actually already wrote such notifier for gnome in bash. But I want to display more info and I want to include AUR packages.
    The perfect tool in my situation would be something that allows me to sync official and AUR databases into custom dir and then displays list of updates with:
    -name of package
    -current version
    -updated version
    -repo
    I can currently do all of the above, but just with official repos and not as elegantly as I want.
    Not sure what you mean by 'sync AUR database' (no such thing exists as it does for the binary repos), but cower will let you download to wherever you want.

  • How to get info about a GP* program?

    I need to know where this GP* (GP0TKCPQBABBT4SVKBIDSSWD56V) program is used in (which cube, transfer rule, etc.). I executed SE38, entered this GP* program name and got back the source code.  On the top section of the source code there is no comments referencing the cube name or anything.  How can I find out more information about GP* program? Thanks for your input.

    A.H.P.,
    Thanks so much for your suggestion. I tried it out and it didn't work as at step #2.  Please let me know what I am doing wrong:
    1)  SE16 table RSSGTPDIR, entered PROGNAME = GP0TKCPQBABBT4SVKBIDSSWD56V  and got back UNI_IDC25 = 0TKCPQBABBT4SVKBIDSSWD56V.
    2)  SE16 table RSTSRULES, entered CONVROUT_L =  0TKCPQBABBT4SVKBIDSSWD56V,  didn't get back any records.  Do you know why? 
    I tried these steps again with 9 other GP* programs and still didn't get back any records in step #2.
    I really appreciate your help since I am totally stuck.

  • Get info about the system

    Hi, id like to know if theres any way i can determine what os
    the user is
    running and what version of dw they have running... i've been
    looking
    through the api docs but cant find anything anyone know how
    to do this?
    thanks
    Byron

    Thanks for your help. It was very easy once I found out where to change it.
    iMac 2.16 GHz Intel Core 2 Duo   Mac OS X (10.4.7)  

  • How to get Info about all VPD policies configured?

    Hi,
    is it possible to get a list of all VPD policies configured in the database?
    $VPD_POLICY - displays all the fine-grained security policies and predicates associated with the cursors currently in the library cache.
    `- It's empty. This means that this view is populated only if the policy is currently used ..
    Thanks.

    I have not checked but the dba_* views should be able to give to you this. V$vpd_policy only shows the what's there in the library cache.
    Please see this link,
    http://download.oracle.com/docs/cd/E11882_01/network.112/e10574/vpd.htm#CIHJGHDE
    HTH
    Aman....

  • How to get info about currently running threads in j2sdk1.4.2

    I am using j2sdk-1.4.2. There are many threads running in my program. I want to see after which thraed is invoked after another thread. I have used Thread.sleep() method to sleep the thread and give the chance to another thread to run.
    Thanks,
    Amit Mittal.

    There is no way known to me to find out, which thread is currently active if you don't want to use debugging-outputs.
    But please don't use sleep(), it slows your code down unnecessarily and is not save. Use Thread.yield() in order to give other threads the chance to run.
    Regars, tom

  • How can i get info. about sun systems in real life situation

    Hi
    infact i m not so experienced ? but i have got certification and nowadays i m improving myself and applying for jobs. please tell me how can i get info about the sun systems in real life situation. i mean that how can i get details like that mostly companies use which systems ? what is the trend of companies and how i can get detail of history of sun systems?
    Thanks in advance

    hmm.......... its very difficult to explain. an its more difficult simulate....well my suggession is to get in to some job with your present knowledge and try to learn more from there....

Maybe you are looking for

  • Regarding purchase order Driver progrram

    Hi.., I am developing one smartform which is purchase order "/smb40/mmpo_l " and Driver programm is "/smb40/fm06p" i searched in TNAPR table but i didn't find driver program I am using ECC6.0 can any one answer me how to download into "smb40" package

  • Various programs now crashing after OS update

    Hi, I recently updated iTunes to 10.5. In the same update I accepted a security update from Apple. I'm running OSX 10.6.8. Now several programs keep crashing as soon as I open them. Notably iTunes, Safari and Spotify. I get the following crash report

  • Does the Mac Pro v1.1 support SATA II 6Gb/s?

    Does the Mac Pro (late_2006) support SATA II 6Gb/s internal hard drives?

  • Automatically invoice split is going there

    when i am doing the billing the invoice is getting automaticaly splitting i want only one invoice i check at shipping point,plant ,ship to party but all are correct plz give the solution with regrds g.phani

  • OID First Time Full Reconciliation - group/role reconciliation question

    My client has some roles/groups created in OID. The initial set of users lies over there. I have to bring the initial load of users into OIM. The existing set of users is around 5000. But some users belong to different groups/roles. Now if I want to