-
Notifications
You must be signed in to change notification settings - Fork 814
feat: stored data in Realm database and added logged data option in navigation panel #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Avjeet in the recent meeting there was a format suggested. Can you please implement that? Also please fix one issue in one PR. It's one of the best practices we have to follow. |
|
@CloudyPadmal Actually all these issues are linked in some way so for proper resolution of all of them I had to make one PR, |
|
@CloudyPadmal I have updated the screenshot |
|
Ah now it looks good! 👍 |
| import io.realm.RealmResults; | ||
|
|
||
| /** | ||
| * Created by Your name on 03-08-2018. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we remove this?
| /** | ||
| * Created by Your name on 03-08-2018. | ||
| */ | ||
| class LuxDataAdapter extends RecyclerView.Adapter<LuxDataAdapter.ViewHolder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to create a generic adapter for every instrument?
| @Override | ||
| public void onClick(View view) { | ||
| RealmResults<LuxData> results = realm.where(LuxData.class).equalTo("foreignKey",temp.getUniqueRef()).findAll(); | ||
| Log.i("realmResult",String.valueOf(results.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you have finalized this PR, please remove this..
| // }) | ||
| // .setNegativeButton(R.string.cancel, null) | ||
| // .create() | ||
| // .show(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess these comments are in WIP right?
|
@CloudyPadmal I have removed the CSV saving part, for now, I will implement it in Logged Data Activity later. |
| import io.realm.RealmResults; | ||
|
|
||
| /** | ||
| * Created by Your name on 03-08-2018. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either change this to Avjeet or delete this template block
|
|
||
| /** | ||
| * Created by viveksb007 on 12/8/17. | ||
| * deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this file is no needed, we can delete it right?
|
|
||
|
|
||
| /** | ||
| * Created by Your name on 31-07-2018. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, template
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginBottom="5dp" | ||
| android:text="Lux Meter" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess these are dummy texts right?
ca9af48 to
4b9cf91
Compare
|
@CloudyPadmal @harsh-2711 @abhinavraj23 I have updated this PR as discussed in meeting and uploaded the apk file, plz review it asap. |
|
@Avjeet conflicts pls solve |
9e01fb8 to
6223796
Compare
7fc1c72 to
abdfb25
Compare
|
@CloudyPadmal @harsh-2711 @abhinavraj23 I have rebased the code with new icons pls review this |
some minor changes resolved conflicts
|
merged with #1347 |
Fixes #1322 #1316
Fixes #1321
Changes:
Screenshot/s for the changes

Below GIF shows the complete workflow[Updated - 11/08/2018]
Checklist: [Please tick following check boxes with
[x]if the respective task is completed]strings.xml,dimens.xmlandcolors.xmlwithout hard-coding themstrings.xml,dimens.xmlorcolors.xmlAPK for testing: realm.zip