Commit 520ed45a authored by PANKAJ KUMAR's avatar PANKAJ KUMAR

Reference for Parsing Reminder

parent 2b030c7b
...@@ -132,7 +132,16 @@ public class ReminderEditActivity extends AppCompatActivity { ...@@ -132,7 +132,16 @@ public class ReminderEditActivity extends AppCompatActivity {
// Get reminder using reminder id // Get reminder using reminder id
rb = new ReminderDatabase(this); rb = new ReminderDatabase(this);
mReceivedReminder = rb.getReminder(mReceivedID); Intent intent = getIntent();
if(intent.getType().equals("text/"+Utility.FILE_EXTENSION)){
mReceivedReminder.setTitle(intent.getStringExtra("mTitle"));
System.out.println("**********************************");
System.out.println(mReceivedReminder.getTitle());
System.out.println("**********************************");
}
else {
mReceivedReminder = rb.getReminder(mReceivedID);
}
// Get values from reminder // Get values from reminder
mTitle = mReceivedReminder.getTitle(); mTitle = mReceivedReminder.getTitle();
......
...@@ -41,6 +41,11 @@ public class ReminderReceiveActivity extends AppCompatActivity { ...@@ -41,6 +41,11 @@ public class ReminderReceiveActivity extends AppCompatActivity {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
Intent senderIntent = new Intent(context, ReminderEditActivity.class);
senderIntent.putExtra("received", true);
senderIntent.putExtra("mTitle", "First Receive Reminder test");
startActivity(senderIntent);
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment