The App Quest is an event of the HSR where you can learn or practice programming apps for android or ios. In 12 weeks you have to program 5 applications and in the end of the event you can use them to win the Treasure Hunt and earn some cool stuff.
Team | MeIsTeam |
Team members | Mirio Eggmann, Timon Borter |
Employer | PostFinance AG |
Coach | Rafael Krucker |
Organizer | Mirko Stocker |
Operating System | Android |
Required Apps | AppQuest Logbuch, Barcode Scanner |
Apps will be public when the AppQuest 2016 is over.
- 1. App Metal Detector (deadline: none)
- 2. App Memory (deadline: 8.10.2016)
- 3. App Treasure Map (deadline: 29.10.2016)
- 4. App Pedometer (deadline: 19.11.2016)
- 5. App Pixel Painter (deadline: none)
private static final int SCAN_QR_CODE_REQUEST_CODE = 0;
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuItem menuItem = menu.add("Log");
menuItem.setOnMenuItemClickListener(new OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, SCAN_QR_CODE_REQUEST_CODE);
return false;
}
});
return super.onCreateOptionsMenu(menu);
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (requestCode == SCAN_QR_CODE_REQUEST_CODE) {
if (resultCode == RESULT_OK) {
String logMsg = intent.getStringExtra("SCAN_RESULT");
// Weiterverarbeitung..
}
}
}
private void log(String qrCode) {
Intent intent = new Intent("ch.appquest.intent.LOG");
if (getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).isEmpty()) {
Toast.makeText(this, "Logbook App not Installed", Toast.LENGTH_LONG).show();
return;
}
// Achtung, je nach App wird etwas anderes eingetragen
String logmessage = ...
intent.putExtra("ch.appquest.logmessage", logmessage);
startActivity(intent);
}