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

  • Home
  • SEARCH
  • 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 8530845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:20:55+00:00 2026-06-11T09:20:55+00:00

I am new to Android so only working on Examples to learn and play

  • 0

I am new to Android so only working on Examples to learn and play with things. Currently I am working on an example to Generate Images via Timer Task and I am stuck at a point and I really need an expert advice. Below is the code and where its using Log.i(“MARKER”, “***“)….. Can some please tell me why I am getting an error in last section of line????

    @Override
    public void run() {
        // TODO Auto-generated method stub
        Log.i(“MARKER”,”******************************************”);

        //int numViews = container.getChildCount(); 

        ImageView toAdd = new ImageView(ImagePlayActivity.this);        
        Drawable imgContent = ImagePlayActivity.this.getResources().getDrawable(R.drawable.icon);
        toAdd.setImageDrawable(imgContent);
        toAdd.setTag(“img”+counter++);

        Random rndGen = new Random();

      LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT,rndGen.nextInt(300),rndGen.nextInt(300));
        toAdd.setLayoutParams(lp);
        toAdd.setBackgroundColor(Color.TRANSPARENT);

        AlphaAnimation anim = new AlphaAnimation(0, 1);
        anim.setDuration(1000);
        container.addView(toAdd);
        //container.invalidate(); 
        toAdd.startAnimation(anim);



    }
};

Thanks in Advance.

  • 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-11T09:20:56+00:00Added an answer on June 11, 2026 at 9:20 am

    You are getting an error because you’re using ” instead of ". The Java language does not recognize ” as a set of quotes to enclose Strings etc. in. Try changing that line to:

    Log.i("MARKER","******************************************");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to android development and am currently working my way through the
I am still new to android and currently I am working on a project,
I'm new on android programming and i'm working on android application and i'm stuck
I am new in Android and working on custom list view and it work
I am new to android and I am working on an application in which
Hi I am new to android development and I'm working on a game. Right
Hi i'm new android. i'm working through the samples and have an error when
I just started working on a new Eclipse Android project and want to make
I am new to android programming and development. I am working on app that
I am kind of new to Android, I started working with SQLite 3 days

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.