Skip to content

Commit

Permalink
Add IBM Mobile Quality Assurance for bug and crash report and scaled …
Browse files Browse the repository at this point in the history
…button for variuous device
  • Loading branch information
raffysommy committed May 20, 2015
1 parent 993edb2 commit 5a2b5dd
Show file tree
Hide file tree
Showing 92 changed files with 80 additions and 8 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added MQA-Android-2.7.4/MQA-Android-2.7.4.aar
Binary file not shown.
25 changes: 25 additions & 0 deletions MQA-Android-2.7.4/MQA-Android-2.7.4.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":MQA-Android-2.7.4" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="Testapp" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":MQA-Android-2.7.4" />
</configuration>
</facet>
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
2 changes: 2 additions & 0 deletions MQA-Android-2.7.4/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.create("default")
artifacts.add("default", file('MQA-Android-2.7.4.aar'))
4 changes: 4 additions & 0 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,16 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/reports" />
<excludeFolder url="file://$MODULE_DIR$/build/test-results" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" />
<orderEntry type="module" module-name="MQA-Android-2.7.4" exported="" />
<orderEntry type="library" exported="" name="MQA-Android-2.7.4-unspecified" level="project" />
</component>
</module>
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile project(':MQA-Android-2.7.4')
}
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.educationet.k12.app" >

<!-- Permissions -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />

<application
android:allowBackup="true"
Expand Down Expand Up @@ -69,6 +77,10 @@
android:name="com.educationet.k12.app.TeacherQuestion"
android:label="@string/title_activity_teacher_question" >
</activity>
<!-- Quality assurance application activities -->
<activity android:name="com.ibm.mqa.ui.ProblemActivity" />
<activity android:name="com.ibm.mqa.ui.FeedbackActivity" />
<activity android:name="com.ibm.mqa.ui.ScreenshotEditorActivity" />
</application>

</manifest>
4 changes: 2 additions & 2 deletions app/src/main/java/com/educationet/k12/app/ArgumentList.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
/***
* Created by K12-Dev-Team on 25/03/2015.
* * This class extends the argument arraylist of implementing the interface parceable
  * And a method to return the data in string with the format json
  * It also implements a method of request arguments to the database
* And a method to return the data in string with the format json
* It also implements a method of request arguments to the database
*/

/**
Expand Down
12 changes: 11 additions & 1 deletion app/src/main/java/com/educationet/k12/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import android.widget.EditText;
import android.widget.Toast;

import com.ibm.mqa.MQA;

/**
* Login Main Activity
* @author K12-Dev-Team
Expand All @@ -21,7 +23,7 @@
*/
public class MainActivity extends ActionBarActivity {
//subclass for login execution

public static final String APP_KEY = "a7eada52bd15b505d07f486a2a8d729bc6b4a10f";
/**
* internal class of management of the login asynchronous
*/
Expand Down Expand Up @@ -72,7 +74,15 @@ protected void onPostExecute(User utente) {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
com.ibm.mqa.config.Configuration configuration = new com.ibm.mqa.config.Configuration.Builder(this)
.withAPIKey(APP_KEY) //Provides the quality assurance application APP_KEY
.withMode(MQA.Mode.QA) //Selects the quality assurance application mode
.withReportOnShakeEnabled(true) //Enables shake report trigger
.build();

MQA.startNewSession(MainActivity.this, configuration);
setloginsaved();

}

/**
Expand Down
20 changes: 18 additions & 2 deletions app/src/main/java/com/educationet/k12/app/TeacherQuestion.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
Expand All @@ -24,6 +25,8 @@ public class TeacherQuestion extends Activity {
private static String token;
private AdapterCustom dataAdapter = null;
private QueryList teacherQuestionList=null;
private ListView listView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -63,8 +66,9 @@ public void onQuizSelect(View view){
String quiz=((TextView)view).getHint().toString();
teacherQuestionList =new QueryList(quiz);
try {
Toast.makeText(getApplicationContext(), "Downloading: " + ((TextView)view).getText().toString()+" Please Wait :)", Toast.LENGTH_LONG).show();
enableDisableView(listView,false);
teacherQuestionList.getHTTP(token);
Toast.makeText(getApplicationContext(), "Selected: " + ((TextView)view).getText().toString(), Toast.LENGTH_LONG).show();
Intent i=new Intent(this,Question.class);
Bundle extras=new Bundle();
extras.putParcelable("utentec", this.utente);
Expand All @@ -75,14 +79,26 @@ public void onQuizSelect(View view){
} catch (NullPointerException e) {
Toast.makeText(getApplicationContext(), "No question available for this quiz!", Toast.LENGTH_LONG).show();
}
finally {
enableDisableView(listView,true);
}
}
public static void enableDisableView(View view, boolean enabled) {
view.setEnabled(enabled);
if ( view instanceof ViewGroup ) {
ViewGroup group = (ViewGroup)view;

for ( int idx = 0 ; idx < group.getChildCount() ; idx++ ) {
enableDisableView(group.getChildAt(idx), enabled);
}
}
}


private void displayListView() {
//Array list of Arguments
dataAdapter = new AdapterCustom(this,R.layout.list_item1, listaquestionari);
ListView listView = (ListView) findViewById(R.id.listView2);
listView = (ListView) findViewById(R.id.listView2);
// Assing the adapter to the listview
listView.setAdapter(dataAdapter);
}
Expand Down
Binary file added app/src/main/res/drawable-hdpi/ans_corr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/ans_ques.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/ans_wrong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/confirm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/ic_login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/ic_questions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/ic_signup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/quiz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/score.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/score1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/sub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/titolo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/toastright.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/toastwrong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/topic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ans_corr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ans_ques.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ans_wrong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/confirm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ic_login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ic_questions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ic_signup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/quiz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/score.png
Binary file added app/src/main/res/drawable-mdpi/score1.png
Binary file added app/src/main/res/drawable-mdpi/sub.png
Binary file added app/src/main/res/drawable-mdpi/titolo.png
Binary file added app/src/main/res/drawable-mdpi/toastright.png
Binary file added app/src/main/res/drawable-mdpi/toastwrong.png
Binary file added app/src/main/res/drawable-mdpi/topic.png
Binary file added app/src/main/res/drawable-xhdpi/ans_corr.png
Binary file added app/src/main/res/drawable-xhdpi/ans_ques.png
Binary file added app/src/main/res/drawable-xhdpi/ans_wrong.png
Binary file added app/src/main/res/drawable-xhdpi/chat.png
Binary file added app/src/main/res/drawable-xhdpi/confirm.png
Binary file added app/src/main/res/drawable-xhdpi/ic_login.png
Binary file added app/src/main/res/drawable-xhdpi/ic_questions.png
Binary file added app/src/main/res/drawable-xhdpi/ic_signup.png
Binary file added app/src/main/res/drawable-xhdpi/quiz.png
Binary file added app/src/main/res/drawable-xhdpi/score.png
Binary file added app/src/main/res/drawable-xhdpi/score1.png
Binary file added app/src/main/res/drawable-xhdpi/sub.png
Binary file added app/src/main/res/drawable-xhdpi/titolo.png
Binary file added app/src/main/res/drawable-xhdpi/toastright.png
Binary file added app/src/main/res/drawable-xhdpi/toastwrong.png
Binary file added app/src/main/res/drawable-xhdpi/topic.png
Binary file added app/src/main/res/drawable-xxhdpi/ans_corr.png
Binary file added app/src/main/res/drawable-xxhdpi/ans_ques.png
Binary file added app/src/main/res/drawable-xxhdpi/ans_wrong.png
Binary file added app/src/main/res/drawable-xxhdpi/chat.png
Binary file added app/src/main/res/drawable-xxhdpi/confirm.png
Binary file added app/src/main/res/drawable-xxhdpi/ic_login.png
Binary file added app/src/main/res/drawable-xxhdpi/ic_signup.png
Binary file added app/src/main/res/drawable-xxhdpi/quiz.png
Binary file added app/src/main/res/drawable-xxhdpi/score.png
Binary file added app/src/main/res/drawable-xxhdpi/score1.png
Binary file added app/src/main/res/drawable-xxhdpi/sub.png
Binary file added app/src/main/res/drawable-xxhdpi/titolo.png
Binary file added app/src/main/res/drawable-xxhdpi/toastwrong.png
Binary file added app/src/main/res/drawable-xxhdpi/topic.png
Binary file removed app/src/main/res/drawable/ans_corr.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/ans_ques.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/ans_wrong.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/chat.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/confirm.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/ic_login.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/ic_questions.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/ic_signup.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/quiz.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/score.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/score1.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/sub.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/titolo.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/toastright.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/toastwrong.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/topic.png
Diff not rendered.
3 changes: 2 additions & 1 deletion app/src/main/res/layout-port/activity_argument__page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:background="@drawable/confirm"
android:id="@+id/Confirm"
android:layout_gravity="right"
android:onClick="toWelcome" />
android:onClick="toWelcome"
android:contentDescription="" />

</LinearLayout>
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app'
include ':app', ':MQA-Android-2.7.4'

0 comments on commit 5a2b5dd

Please sign in to comment.