How to upload a project into github
How to upload a project into github
git add .
git commit -m "first commit"
git branch -M main
git remote add origin
https://github.com/douwa299/Android_Calcule.git
git push -u origin main
git remote add origin
https://github.com/douwa299/Android_Calcule.git
git branch -M main
git push -u origin main
public boolean onOptionsitemSelected(@NonNull MenuItem item){
int id = item.getGroupId();
if(id == R.id.settings){
Snackbar.make(linearLayout,"Are you
sure",Snackbar.LENGTH_LONG).setAction("yes", new
View.OnClickListener() {
@Override
public void onClick(View v) {
Snackbar.make(linearLayout,"opération
annulé",Snackbar.LENGTH_LONG).show();
}
}).setActionTextColor(Color.BLUE).setBackgroundTint(Color.YEL
LOW).show();
return true;
}
return super.onOptionsItemSelected(item);
}