Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plsease make the xml file, that file must contain all the recycler view, card view all these thing . . . . . . .

plsease make the xml file, that file must contain all the recycler view, card view all these thing ....... public class FamerQuery extends AppCompatActivity {
private Toolbar fQToolbar;
EditText et_phn,et_query;
MaterialButton btn_sub;
String f_url;
AppCompatImageView imageView1,imageView2;
static final int PICK_IMAGE_REQUEST_ONE =1;
static final int PICK_IMAGE_REQUEST_TWO =2;
//String filePath1,filePath2;
private Bitmap bitmap1,bitmap2;
String uname,token,email,personId;
String ph,query;
public static final int REQUEST_IMAGE =2;
static int PReqCode =2;
private ProgressDialog progressDialog;
UserSession userSession;
TextView tv_emn,tv_query,tv_image1,tv_image2;
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_famer_query);
et_phn = findViewById(R.id.et_phn);
et_query = findViewById(R.id.et_query);
btn_sub=findViewById(R.id.btn_sub);
imageView1= findViewById(R.id.FQimageView1);
imageView2= findViewById(R.id.FQimageView2);
userSession = new UserSession(FamerQuery.this);
tv_emn = findViewById(R.id.tv_emn);
tv_query = findViewById(R.id.tv_query);
tv_image1= findViewById(R.id.tv_image1);
tv_image2= findViewById(R.id.tv_image2);
f_url = userSession.surl+"upload.php";
if (userSession.getuName()==""){
Intent intentW = new Intent(FamerQuery.this, SignIn.class);
startActivity(intentW);
}
FirebaseMessaging.getInstance().getToken()
.addOnCompleteListener(new OnCompleteListener(){
@Override
public void onComplete(@NonNull Task task){
if (!task.isSuccessful()){
Log.w("Waring", "Fetching FCM registration token failed", task.getException());
return;
}
// Get new FCM registration token
token = task.getResult();
Log.i("token",""+ token);
// Log and toast
}
});
//Generating Token
/*FirebaseInstanceId.getInstance().getInstanceId()
.addOnCompleteListener(new OnCompleteListener(){
@Override
public void onComplete(@NonNull Task task){
if (task.isSuccessful()){
token = task.getResult().getToken();
Log.i("token",""+ token);
} else {
Toast.makeText(FamerQuery.this, task.getException().toString(), Toast.LENGTH_SHORT).show();
}
}
}); */
if (userSession.getLang().equals("eng")){
fQToolbar = findViewById(R.id.fq_toolbar);
fQToolbar.setTitle("Post Query");
setSupportActionBar(fQToolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
tv_emn.setText("Enter Mobile No.");
tv_query.setText("Query");
tv_image1.setText("Image 1");
tv_image2.setText("Image 2");
btn_sub.setText("Submit Query");
final UserSession userSession = new UserSession(FamerQuery.this);
fQToolbar.setNavigationOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View view){
finish();
}
});
progressDialog = new ProgressDialog(this, android.R.style.Theme_Material_Light_Dialog_Alert);
progressDialog.setCancelable(false);
progressDialog.setTitle(getString(R.string.please));
progressDialog.setMessage(getString(R.string.please_msg));
//btn_sub.setEnabled(true);
btn_sub.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View view){
ph = et_phn.getText().toString();
query = et_query.getText().toString();
uname = userSession.getuName();
email = userSession.getUemail();
personId = userSession.getPersonId();
if (TextUtils.isEmpty(et_phn.getText().toString())){
Toast.makeText(FamerQuery.this, "Enter phone number", Toast.LENGTH_LONG).show();
} else if (TextUtils.isEmpty(et_phn.getText().toString())){
Toast.makeText(FamerQuery.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions