Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
android-client
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
icarus
android-client
Commits
f5ac97b3
Commit
f5ac97b3
authored
May 02, 2018
by
Mattia Ducci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix enum
parent
882a447c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
MainActivity.java
.../everywaretechnologies/it/icarusandroid/MainActivity.java
+2
-2
EventTrackResource.java
...k/everywaretechnologies/it/icarus/EventTrackResource.java
+10
-0
Icarus.java
...ava/framework/everywaretechnologies/it/icarus/Icarus.java
+0
-6
No files found.
IcarusAndroid/app/src/main/java/framework/everywaretechnologies/it/icarusandroid/MainActivity.java
View file @
f5ac97b3
...
...
@@ -108,10 +108,10 @@ public class MainActivity extends AppCompatActivity {
if
(
eventNameEditText
.
getText
().
length
()
==
0
)
eventName
=
"eventoProva"
;
else
eventName
=
eventNameEditText
.
getText
().
toString
();
if
(
eventCategoryEditText
.
getText
().
length
()==
0
)
eventCategory
=
Icarus
.
EventCategories
.
APPLICATION
.
toString
();
if
(
eventCategoryEditText
.
getText
().
length
()==
0
)
eventCategory
=
EventTrackResource
.
EventCategories
.
APPLICATION
.
name
().
toLowerCase
();
else
eventCategory
=
eventCategoryEditText
.
getText
().
toString
();
if
(
eventLabelEditText
.
getText
().
length
()==
0
)
eventLabel
=
"labelProva"
;
if
(
eventLabelEditText
.
getText
().
length
()==
0
)
eventLabel
=
EventTrackResource
.
EventLabel
.
FOREGROUND
.
name
().
toLowerCase
()
;
else
eventLabel
=
eventLabelEditText
.
getText
().
toString
();
if
(
mostProbableActivityEditText
.
getText
().
length
()==
0
)
mostProbableActivity
=
"activityProva"
;
...
...
IcarusAndroid/icarus/src/main/java/framework/everywaretechnologies/it/icarus/EventTrackResource.java
View file @
f5ac97b3
...
...
@@ -5,6 +5,16 @@ import org.json.JSONObject;
public
class
EventTrackResource
extends
IcarusResource
{
public
enum
EventCategories
{
//categorie di evento
APPLICATION
,
ACTION
,
NOTIFICATION
;
}
public
enum
EventLabel
{
FOREGROUND
,
BACKGROUND
;
}
private
String
eventName
;
private
String
eventCategory
;
private
String
eventLabel
;
...
...
IcarusAndroid/icarus/src/main/java/framework/everywaretechnologies/it/icarus/Icarus.java
View file @
f5ac97b3
...
...
@@ -37,12 +37,6 @@ import java.util.function.Consumer;
public
class
Icarus
{
public
enum
EventCategories
{
//categorie di evento
APPLICATION
,
ACTION
,
NOTIFICATION
;
}
private
final
static
String
ICARUS_URL
=
"https://webdev.ewlab.di.unimi.it/icarus/str"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment