Category : call

i’m trying to make a phone call from the app and I want it to return a duration to the app after the call public void dialCall(){ String num = number.getText().toString(); if(num!=null && !num.equals("")){ String noToDial = "tel:"+num; Uri number = Uri.parse(noToDial); Intent callIntent = new Intent(Intent.ACTION_CALL, number); if(checkPermissions()){ startActivity(callIntent); } } else{ Toast.makeText(this,"Please enter ..

Read more

logcat this project download from github.com. I have this error: Attempt to invoke virtual method ‘java.lang.String com.mianasad.chatsapp.Models.User.getName()’ on a null object reference in Actiivity.java new Handler().postDelayed(new Runnable() { @Override public void run() { switch (index){ case 0 : binding.fabAction.hide(); break; case 1 : binding.fabAction.show(); binding.fabAction.setImageDrawable(getDrawable(R.drawable.ic_chat_black_24dp)); break; case 2 : binding.fabAction.show(); binding.fabAction.setImageDrawable(getDrawable(R.drawable.ic_camera_alt_black_24dp)); binding.btnAddStatus.setVisibility(View.VISIBLE); break; case 3 ..

Read more