how to get sender's email address from database

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 5

Nov 16, 2015 6:53:14 AM via Website

I have this android application which VoteActivity.class create custom questionnaire and send it tovoteAnswer.class to check the radio button and answers the questionnaire. I am trying to havevoteAnswer.class to send the answer to the sender's email address. The answers should be send to whoever created the questionnaire in the first place which can be any email. In other words, the user will be getting the answers in his/her email address. I tried fetching the email from database but it is not working. Do I need to be parse pro member? Or How how does that work? Or am I doing it wrong? I have been struggling with this small matter for few weeks and I would really be grateful if I received hints from experts here in Androidpit to clear my confusion

 query.findInBackground( new FindCallback<ParseObject>() {
           public void done(List<ParseObject> objects, ParseException e) {
               if (e==null) {

                 for (int i = 0; i <objects.size(); i ++)

                      String question = objects.get(0).getString("questionare");
                      final String mO = objects.get(0).getString("optionOne");
                      final String mT = objects.get(0).getString("optionTwo");
                      final String mH = objects.get(0).getString("optionThree");

                      questionare = (TextView) findViewById(;
                      mOne = (TextView) findViewById(;
                      mTwo = (TextView) findViewById(;
                      mThree = (TextView) findViewById(;

                      radioVoteGroup = (RadioGroup) findViewById(;
                      optionONE=(RadioButton) findViewById(;
                      optionTWO=(RadioButton) findViewById(;
                      optionTHREE=(RadioButton) findViewById(;

                     // mOne.setText(objects.get(i).getString("optionOne"));
                     // mTwo.setText(objects.get(i).getString("optionTwo"));
                     // mThree.setText(objects.get(i).getString("optionThree"));

                     // mTwo.setText(mT);
                     // mThree.setText(mH);

                      Log.d("questionare", "Retrieved " + objects.size()+ " questionare");

                      mButton =(Button) findViewById (;
                      mButton.setOnClickListener(new View.OnClickListener() {
                          public void onClick(View v) {



                   //question = objects.toString("questionare");
                   //mO = objects.toString("optionOne");
                  // mT = objects.toString("optionTwo");
                  // mH = objects.toString("optionThree");




private String returnVoteAnswer ()
    switch (radioVoteGroup.getCheckedRadioButtonId()) {
            return optionONE.getText()  .toString();
            return optionTWO.getText().toString();
            return optionTHREE.getText().toString();
            return "";



Thanks in advance

  • Forum posts: 5

Nov 16, 2015 7:23:53 AM via Website

This is what I am trying to figure out. If I can do it or does offer an API