Idk what to do so basically i was creating a button which opens new activity on long press could u fix this?
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); defineView(); handleIntent(); defineActionBar(); checkPermission(); button.setOnLongClickListener(new View.OnCLongClickListener() { @Override public void onLongClick(View v) { openWebsite(); } }); } public void openWebsite() { Intent intent = new Intent(this, Website.class); startActivity(intent); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)