Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7861063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:33:03+00:00 2026-06-02T22:33:03+00:00

The doc says I should add something like this to my code: // create

  • 0

The doc says I should add something like this to my code:

// create a new layout 
LinearLayout layout = new LinearLayout(this); 
/* 
Add any elements to your view 
*/ 
// make the view visible 
this.setContentView(layout); 
final Activity act = this;  

// now add the banner or overlay to the app 

layout.post(new Runnable() {  //what about this line?
public void run() { 
myController = new AdController(act, MY_LB_SECTION_ID); 
myController.loadAd(); 
} 
});

My layout is in xml and I have already defined setContentView(R.layout.config); I mean the layout.post(new Runnable() { line. How should I modify the code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:33:04+00:00Added an answer on June 2, 2026 at 10:33 pm

    For anyone who is interested I have found the obvious solution:

      RelativeLayout rellaymain = (RelativeLayout)findViewById(R.id.rellaymain); 
    
            final Activity act = this;  
            rellaymain.post(new Runnable() {
    
                public void run() { 
                myController = new AdController(act, MY_LB_SECTION_ID2); 
                myController.setAsynchTask(true);
                myController.loadAd(); 
                } 
                //});
            });
    

    rellaymain is the layout of the .xml file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The documentation at http://h71000.www7.hp.com/doc/731final/documentation/pdf/ovms_731_file_app.pdf (section 5-1) says the filename should look like this: node::device:[root.][directory-name]filename.type;version
I'm hesitating whether or not to use this mechanism. PHP Doc says autoloading is
There is HTML page with contents like this. Documentation at MDN says that childNodes
TestNG doc says create an xml as below. <!DOCTYPE suite SYSTEM http://testng.org/testng-1.0.dtd > <suite
This should be ridiculously simple. I found the man page here: http://www.scons.org/doc/HTML/scons-man.html Directly from
The official Git doc says: $ git diff test This will show you what
This link: http://doc.trolltech.com/4.5/moc.html#moc says The moc tool reads a C++ header file. If it
1.Does dynamic proxy instance subclass the target class? The java doc says the proxy
In CF9 doc: Defining components and functions in CFScript , it says: /** *Comment
This piece of code compiles OK in VS 2010 in a framework 3.5 project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.