×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    91

    mascotcapsule 3D API support

    Hello,

    I need to know how can I check mascotcapsule 3D API support on device; like wise we can do for Mobile 3D Graphics API (JSR 184) below.


    Code:
     System.getProperty("microedition.m3g.version");
    I mean to say is there any property like above for mascotcapsule also ???




    Cheers,
    Amit

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: mascotcapsule 3D API support

    You can try using a Try/Catch while creating an instance of any class from this API and you can assume it to be present on the platform if you succeed or if any exception is thrown you will get to know that its not present.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    91

    Re: mascotcapsule 3D API support

    Quote Originally Posted by im2amit View Post
    You can try using a Try/Catch while creating an instance of any class from this API and you can assume it to be present on the platform if you succeed or if any exception is thrown you will get to know that its not present.

    Hello Amithab,
    You are taking about might be below snap of code
    Code:
    		String jsrTest = "";
    		
    		Class _tmpClass=null;
    		try {
    			_tmpClass = Class.forName("com.mascotcapsule.micro3d.v4.Graphics3D");
    		} catch (ClassNotFoundException e) {
    		}
    		if(_tmpClass!=null){
    			jsrTest = _tmpClass.getName();
    		}else{
    			jsrTest = null;
    		}
    		
    		
    		
    		if(jsrTest!=null)
    			g.drawString("3DAPIv= "+jsrTest, 0, 0, 0);
    		else
    			g.drawString("3DAPI not Supported", 0, 0, 0);
    Yes, we can come across. Thanks for your reply.



    Amit

Similar Threads

  1. what phones support Mobile 3D Graphics API (JSR-184)
    By lizhongrui in forum Mobile Java General
    Replies: 3
    Last Post: 2006-05-30, 12:04
  2. 3d API
    By earamsey in forum Mobile Java General
    Replies: 1
    Last Post: 2006-04-04, 03:45
  3. 3d Api?
    By pakloong82 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2004-06-28, 09:06
  4. Java 3d API
    By vishwas_dot_h in forum Mobile Java General
    Replies: 3
    Last Post: 2004-05-18, 21:49
  5. j2me 3d api..
    By luketto in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-02-03, 18:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •