Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User amit_yadav's Avatar
    Join Date
    May 2007
    Posts
    91
    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 im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    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
    (Poster of the Month -Dec'12)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User amit_yadav's Avatar
    Join Date
    May 2007
    Posts
    91
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved