Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Ear recognition
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Boston University
Ear recognition
Commits
a0078ce9
Commit
a0078ce9
authored
Oct 08, 2015
by
Josejulio Martínez Magaña
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Opens CommCare from the Register button.
parent
0412c711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
SelectUserActivity.java
...aluxoft/earrecognition/activities/SelectUserActivity.java
+29
-0
No files found.
app/src/main/java/com/aluxoft/earrecognition/activities/SelectUserActivity.java
View file @
a0078ce9
package
com
.
aluxoft
.
earrecognition
.
activities
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Button
;
import
com.aluxoft.earrecognition.R
;
import
com.aluxoft.earrecognition.common.EarIdList
;
import
com.google.gson.Gson
;
/**
* Created by josejuliomartinez on 07/10/15.
*/
public
class
SelectUserActivity
extends
Activity
{
public
static
String
currentSerializedEar
;
public
EarIdList
earIdList
=
null
;
//private EarIdList earIdList;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_select_user
);
String
list
=
this
.
getIntent
().
getStringExtra
(
"list"
);
this
.
earIdList
=
new
Gson
().
fromJson
(
list
,
EarIdList
.
class
);
SelectUserActivity
.
currentSerializedEar
=
this
.
earIdList
.
getCurrentFeature
().
serializeFeatures
();
Button
registerButton
=
(
Button
)
findViewById
(
R
.
id
.
register_commcare
);
registerButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
Intent
i
=
new
Intent
(
"org.commcare.dalvik.action.CommCareSession"
);
String
sssd
=
"COMMAND_ID"
+
" "
+
"root"
;
i
.
putExtra
(
"ccodk_session_request"
,
sssd
);
SelectUserActivity
.
this
.
startActivity
(
i
);
}
});
}
}
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