This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit 89e9af79 by Markus Ressel

init

parent 32fc0141
......@@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.+'
classpath 'com.android.tools.build:gradle:1.3.+'
}
}
......
......@@ -2,8 +2,9 @@ apply plugin: 'com.android.application'
apply from: 'signingConfigs/release.gradle', to: android
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion 14
......@@ -31,6 +32,6 @@ android {
}
dependencies {
compile 'com.android.support:support-v4:22.0.+'
compile 'com.mcxiaoke.volley:library-aar:1.0.+'
compile 'com.android.support:support-v4:23.1.+'
compile 'com.mcxiaoke.volley:library:1.0.19'
}
package de.k4ever.k4android.fragments;
import java.util.Map;
import android.graphics.Bitmap;
import android.support.v4.app.Fragment;
import android.util.Log;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.JsonObjectRequest;
import de.k4ever.k4android.utils.KassenHttpUtils;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
......@@ -37,12 +25,26 @@ import android.widget.SeekBar;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.JsonObjectRequest;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Map;
import de.k4ever.k4android.BuyScreenActivity;
import de.k4ever.k4android.R;
import de.k4ever.k4android.database.KassenContentProvider;
import de.k4ever.k4android.database.KassenSQLiteHelper;
import de.k4ever.k4android.database.KassenSQLiteHelper.Products;
import de.k4ever.k4android.utils.KassenConfig;
import de.k4ever.k4android.utils.KassenHttpUtils;
public class BuyScreenFragment extends Fragment
implements SeekBar.OnSeekBarChangeListener, OnItemSelectedListener {
......@@ -132,7 +134,6 @@ implements SeekBar.OnSeekBarChangeListener, OnItemSelectedListener {
JsonObjectRequest request = new JsonObjectRequest(
Request.Method.POST,
url,
null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject kassenObj) {
......
......@@ -39,7 +39,8 @@ public class LoginFragment extends DialogFragment implements OnEditorActionListe
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStyle(STYLE_NORMAL, android.R.style.Theme_Holo_Dialog);
// not needed imo, theme gets set through styles.xml
// setStyle(STYLE_NORMAL, android.R.style.Theme_Holo_Dialog);
}
@Override
......@@ -131,7 +132,6 @@ public class LoginFragment extends DialogFragment implements OnEditorActionListe
JsonObjectRequest request = new JsonObjectRequest(
Request.Method.GET,
url,
null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject result) {
......
......@@ -175,7 +175,6 @@ public class ManageBalanceFragment extends Fragment {
JsonObjectRequest request = new JsonObjectRequest(
Request.Method.GET,
url,
null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject result) {
......
package de.k4ever.k4android.fragments;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import de.k4ever.k4android.R;
public class PreferencesFragment extends PreferenceFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Load the preferences from an XML resource
addPreferencesFromResource(R.xml.preferences);
}
// Load the preferences from an XML resource
addPreferencesFromResource(R.xml.preferences);
}
}
......@@ -32,7 +32,7 @@ public class SyncFragment extends DialogFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStyle(STYLE_NORMAL, android.R.style.Theme_Holo_Dialog);
// setStyle(STYLE_NORMAL, android.R.style.Theme_Holo_Dialog);
}
@Override
......@@ -64,7 +64,6 @@ public class SyncFragment extends DialogFragment {
JsonObjectRequest request = new JsonObjectRequest(
Request.Method.GET,
url,
null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject result) {
......
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