diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
index 0c0be4f..7983bca 100644
--- a/.idea/deploymentTargetDropDown.xml
+++ b/.idea/deploymentTargetDropDown.xml
@@ -7,11 +7,11 @@
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index a6738de..05aef61 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -23,6 +23,7 @@
+
\ No newline at end of file
diff --git a/app/src/main/java/com/peernet/test/MainActivity.kt b/app/src/main/java/com/peernet/test/MainActivity.kt
index 9d38442..1b04af4 100644
--- a/app/src/main/java/com/peernet/test/MainActivity.kt
+++ b/app/src/main/java/com/peernet/test/MainActivity.kt
@@ -40,7 +40,7 @@ class MainActivity : AppCompatActivity() {
Mobile.mobileMain(this.filesDir.absolutePath)
val queue = Volley.newRequestQueue(this)
- val url = "http://127.0.0.1:5125/status"
+ val url = "http://127.0.0.1:5125/account/info"
@@ -51,10 +51,32 @@ class MainActivity : AppCompatActivity() {
//val connectionLabel = findViewById(R.id.PeernetInfo) as TextView
// Display the first 500 characters of the response string.
// textView.text = "Response is: ${response.substring(0, 500)}"
+ //connectionLabel.text= "Response is: ${response.substring(0, 500)}"
+ val connectionLabel1 = findViewById(R.id.PeernetInfo1) as TextView
+ connectionLabel1.text = response.toString()
+ // Log.d("myTag", "Response is: ${response.substring(0, 500)}");
+ },
+ Response.ErrorListener { errorresponse ->
+ val connectionLabel1 = findViewById(R.id.PeernetInfo1) as TextView
+ connectionLabel1.text = errorresponse.toString()
+ Log.d("myTag", errorresponse.toString());
+ })
+
+// Add the request to the RequestQueue.
+ queue.add(stringRequest)
+
+ val url1 = "http://127.0.0.1:5125/status"
+
+ val stringRequest1 = StringRequest(
+ Request.Method.GET, url1,
+ Response.Listener { response ->
+ //val connectionLabel = findViewById(R.id.PeernetInfo) as TextView
+ // Display the first 500 characters of the response string.
+ // textView.text = "Response is: ${response.substring(0, 500)}"
//connectionLabel.text= "Response is: ${response.substring(0, 500)}"
val connectionLabel = findViewById(R.id.PeernetInfo) as TextView
connectionLabel.text = response.toString()
- // Log.d("myTag", "Response is: ${response.substring(0, 500)}");
+ // Log.d("myTag", "Response is: ${response.substring(0, 500)}");
},
Response.ErrorListener { errorresponse ->
val connectionLabel = findViewById(R.id.PeernetInfo) as TextView
@@ -62,13 +84,13 @@ class MainActivity : AppCompatActivity() {
Log.d("myTag", errorresponse.toString());
})
-// Add the request to the RequestQueue.
- queue.add(stringRequest)
+ queue.add(stringRequest1)
+
// run("http://127.0.0.1:5125/status")
- requestAppPermissions();
+ // requestAppPermissions();
//Mobilecore.mobileCoreStart()
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 6bf0495..a0aa60c 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -15,6 +15,17 @@
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.423" />
+ app:layout_constraintVertical_bias="0.144" />
+
+
\ No newline at end of file