Commit f88777b8 authored by Florian's avatar Florian

updated notificationhelper for android 8 and 8.1, updated targetsdkversion

parent 2fc973a7
......@@ -5,12 +5,12 @@ properties.load(project.rootProject.file('local.properties').newDataInputStream(
def superpowered_sdk_path = properties.getProperty('superpowered.dir')
android {
compileSdkVersion 25
compileSdkVersion 27
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "at.ac.fhstp.sonicontrol"
minSdkVersion 16 // more than 95% of all active Android devices (mid 2017)
targetSdkVersion 25
targetSdkVersion 27
versionCode 13
versionName "1.3.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
......@@ -54,11 +54,11 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'pl.edu.icm:JLargeArrays:1.6' // Better to have it here than in jar folder (see gitignore)
compile 'com.jjoe64:graphview:4.2.1'
compile 'com.android.support:appcompat-v7:25.0.3'
compile 'com.android.support:design:25.4.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
}
......@@ -21,7 +21,7 @@ package at.ac.fhstp.sonicontrol;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
//import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
......
......@@ -114,7 +114,7 @@ public class Spoofer {
AudioManager audioManager = (AudioManager) main.getSystemService(Context.AUDIO_SERVICE);
// not used ? int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_ALARM);
//Log.d("Spoofer", "Streamtype: " + String.valueOf(AudioManager.STREAM_MUSIC));
audioManager.setStreamVolume(3, (int) Math.round((audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) * 0.75D)), 0);
audioManager.setStreamVolume(3, (int) Math.round((audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) * 1.00D)), 0);
if (playingHandler) {
playtime = genNoise.getPlayertime(); //get the playertime depending on the generated whitenoise
......
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