Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User debugger1991's Avatar
    Join Date
    Feb 2013
    Posts
    5
    Hi

    I have made my app using LWUIT api and have used forms.

    PRovided tutorial is for LCDUI.

    Kindly tell me how and where to add relevant permission. (using Eclipse)

    I am getting ClassCastException when trying.

    Kindly help

    Relevant code snippet:
    Code:
    Vector Ad;
    Label lbl;
    Ad = IADView.getBannerAdData(this, "Student_MemoryGame_Nokia");
    
    		Image retImg = null;
    		if (null != Ad){
    			retImg = (Image) Ad.elementAt(0);
    		}
    		if (retImg != null){
    			Image.createImage(retImg);
    			
    		}
    		Form mainForm= new Form("MemoryGame");
    lbl.seticon(retImg);
    Form.addComponent(lbl);

    LOGS:
    Warning: setPureTouch is disabled!
    no localization file: locale/locale.res. Load localization manually.
    gps coordinates are invalid. Should be provided in latitude, longitude format. For example: 53.542132,-2.239856
    java.lang.ClassCastException
    at Main.loadUI(+27)
    at Main.startApp(+35)
    at javax.microedition.midlet.MIDletProxy.startApp(+7)
    null
    null
    null

  2. #2
    Nokia Developer Champion shai.i's Avatar
    Join Date
    Mar 2013
    Posts
    67
    Hi Debugger1991,

    From your error and code i believe that when you passed "this" to the InnerActive SDK call you didnt passed the Midlet but rather a different class.

Similar Threads

  1. [moved] inneractive, should I use it?
    By Tiger54 in forum Monetization APIs
    Replies: 11
    Last Post: 2012-04-12, 08:31
  2. How can we use Inneractive for Advertising in the Widget?
    By tranhuutam in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2012-04-03, 01:59
  3. Inneractive SDK - license issues
    By mnosov in forum [Archived] Monetizing your application
    Replies: 6
    Last Post: 2012-03-31, 15:21
  4. Replies: 2
    Last Post: 2012-03-21, 13:20

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