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 8193973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:39:45+00:00 2026-06-07T04:39:45+00:00

Yes. I know this is trivial. But this is getting silly. Image proving the

  • 0

Yes. I know this is trivial. But this is getting silly.

Image proving the error:

enter image description here

The code:

package apack.age;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class DisplayContactActivity extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.display_contact_layout);
    }

    public void openSubreddit(View view)
    {
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.reddit.com")));
    }

    public void openTwitter(View view)
    {
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://twitter.com")));
    }

    public void openGmail(View view)
    {
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("www.gmail.com")));
    }
}

Seriously. There’s 5 open and 5 close braces. This is my first attempt at an android app but I have 3 years of Java experience so this is pretty frustrating.

Run errors out. Refresh does nothing. Project clean does nothing. Auto code format in eclipse (CTRL + SHIFT + F) does nothing.

EDIT 1: Copying the code to a new class gets it to compile. I’m running the new version of Eclipse: Juno. I’ve done source -> cleanup and it just says “nothing to change” every time!

  • 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-07T04:39:48+00:00Added an answer on June 7, 2026 at 4:39 am

    Edit: Please upgrade to ADT 20.0.1, where this has been fixed.


    Switch to the Lint view, use the Clean button to remove all lint errors. There is a bug with lint in ADT 20, that it sometimes takes over the Java compiler bugs.

    You can verify if this is really the problem by looking at the “Origin” column of this bug in your Problems view. Normally that should be “Java problem” for this error, but it will be “Lint” instead.

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

Sidebar

Related Questions

Yes, I know this question has been asked before, but I can't find an
Yes, I know this question has been asked a lot of times, but I
Yes I know, this title isn't really helpfull but this is the exact problem.
I know the Sales pitch answer is yes to this question, but is it
Yes, I know that the FAQ pretends to answer this, but it doesn't really.
(Yes I know I can call Java code from Scala; but that is pointless;
First, yes i know this is a big security NONO . But the scenario
Yes, I know this seems like the same question yet again, but give me
First, yes I know about this question , but I'm looking for a bit
I know this is a trivial question. But I have search all over google

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.