Skip to content
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

Added Multi-User and progress tracking functionality #18

Open
wants to merge 108 commits into
base: newmaster
Choose a base branch
from

Conversation

harry6396
Copy link

  1. Added multi-user support.
  2. Added feature to track the progress of each user.

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />-->
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a merge from master and remove commented code wherever applicable

@@ -76,6 +76,7 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'de.hdodenhof:circleimageview:3.0.0'
compile 'com.android.support:design:25.1.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use api or implementation instead of compile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried but it's not able to find a file required in implementation mode

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />-->
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
-->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if this is required

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was there before, for wifi access and network access, might need it in future.

launcher/app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved

@Override
public boolean isViewFromObject(View view, Object object) {
return view == object;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== will always return false. Use equals()
https://www.geeksforgeeks.org/difference-equals-method-java/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked online, we should use == only here for equating.

@@ -147,6 +147,17 @@ public void onSelectedNumber(int number) {
{
KitkitDBHandler dbHandler = ((LauncherApplication) getApplication()).getDbHandler();
ArrayList<User> users = dbHandler.getUserList();
try {
schoolContext = getApplicationContext().createPackageContext("com.maq.xprize.kitkitschool.hindi", 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use method to fetch package name instead of hardcoding

android:layout_marginTop="40dp"
android:layout_marginBottom="8dp"
android:gravity="center"
android:text="Select User\nउपयोगकर्ता चयन"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use $#$ as delimiter instead of \n everywhere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\n is used for printing Hindi text in next line

android:background="@drawable/roundtextview"
android:fontFamily="Segoe UI"
android:gravity="center_horizontal"
android:text="Maths\\गणित"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use $#$ instead of \ everywhere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can you explain me why to use $#$.

gamesClearedInTotal++;
UserDefault::getInstance()->setIntegerForKey(gamesClearedInTotalKey.c_str(), gamesClearedInTotal);
}
///////////////////////////////
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comment properly. This code repo is public.

Prabhat Tyagi and others added 22 commits June 14, 2019 16:36
jeevithiesh pushed a commit that referenced this pull request Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants