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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:08:47+00:00 2026-06-02T16:08:47+00:00

My problem is when i click programmer it open twitter ! {see the end

  • 0

My problem is when i click programmer it open twitter !

{see the end of main java ; this is my menu}

when I click twitter on emulator, it opens programmer, and the reverse is true.

where is the problem ?

main java

package com.rum.city;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;



public class myMenu extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);




Button bt_about = (Button) findViewById(R.id.about);
bt_about.setOnClickListener(new OnClickListener() 
{
        public void onClick(View v)
        {
            startActivity(new Intent(myMenu.this, about.class));

        }
   });




Button bt_blocks = (Button) findViewById(R.id.blocks);
bt_blocks.setOnClickListener(new OnClickListener() 
{
        public void onClick(View v)
        {
            startActivity(new Intent(myMenu.this, blocks.class));

        }
   });



Button bt_hosay = (Button) findViewById(R.id.hosay);
bt_hosay.setOnClickListener(new OnClickListener() 
{
        public void onClick(View v)
        {

            startActivity(new Intent(myMenu.this, hosay.class));
        }
});



Button bt_stati = (Button) findViewById(R.id.stati);
bt_stati.setOnClickListener(new OnClickListener() 
{
        public void onClick(View v)
        {
            startActivity(new Intent(myMenu.this, stati.class));

        }
   });
       }



public boolean onCreateOptionsMenu(Menu menu){
super.onCreateOptionsMenu(menu);
MenuInflater awesome = getMenuInflater();
awesome.inflate(R.menu.main_menu, menu);
return true;
     }
public boolean onOptionsItemSelected(MenuItem item){
    switch (item.getItemId()){
    case R.id.menunews:
        String url = "http://j.mp/rumnw";
        Intent i = new Intent(Intent.ACTION_VIEW);
        i.setData(Uri.parse(url));
        startActivity(i);
        return true;

        case R.id.menutwitter:
        String rb6 = "https://twitter.com/#!/Rum_City";
        Intent r = new Intent(Intent.ACTION_VIEW);
        r.setData(Uri.parse(rb6));
        startActivity(r);
        return true;

        case R.id.menuhwl:
            startActivity(new Intent("com.rum.city.HWL"));
        return true;

    }

    return false;
    }
}

menu xml

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
/>
<item 
android:id="@+id/menunews"
android:alphabeticShortcut="s"
android:title="news"   
/>    


    <item 
android:id="@+id/menutwitter"
android:alphabeticShortcut="t"
android:title="twitter"   
/>
    <item 
android:id="@+id/menuhwl"
android:title="programmer"
android:alphabeticShortcut="a">
</item>

  • 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-02T16:08:49+00:00Added an answer on June 2, 2026 at 4:08 pm

    Did you recently change the ids ? Sometime the IDE gets mixed up and confuses ID.
    The way around this is to clean the project & rebuild.

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

Sidebar

Related Questions

i have this annoying problem with my site where, when you click on a
I found a strange ToolStripButton double click problem. These steps will reproduce the problem:
Simple problem (I think): I want to be able to invoke a click method
My problem is that I can only seem to click the button once, if
I have a problem that when I click on the image button instead of
I am facing a problem while disabling the command button after one click. I
I have a problem with an animation in jQuery using ajax. On the click
I have a problem... In my view i have Image.If i click on image
I have a list showing up when I click on button, the problem is
I've stumbled upon a problem. I'm using 'FormBorderStyle.None', and when I click the icon

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.