Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    5

    Displaying ADS using inneractive on S40 LWUIT API

    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
    Join Date
    Mar 2013
    Posts
    686

    Re: Displaying ADS using inneractive on S40 LWUIT API

    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.

  3. #3
    Registered User
    Join Date
    Jun 2013
    Posts
    6

    Re: Displaying ADS using inneractive on S40 LWUIT API

    hi,
    i have a issue regarding same
    what should i give in the midlet parameter and how
    this will be great help to me
    thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,806

    Re: Displaying ADS using inneractive on S40 LWUIT API


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. 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, 14: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
  •  
×