-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,6 @@ | |
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
import java.util.HashMap; | ||
import java.util.Iterator; | ||
import java.util.Map; | ||
import java.util.Objects; | ||
|
||
import static android.content.ContentValues.TAG; | ||
import static java.lang.System.in; | ||
|
||
public class MainActivity extends Activity implements CritizrListener{ | ||
|
||
public static final String DEBUG_TAG = "CRITIZR_SDK"; | ||
|
@@ -38,13 +30,14 @@ public void MainClickMethod(View view) { | |
String apiKey = this.getResources().getString(R.string.critizr_api_key); | ||
|
||
if(view.getId() == R.id.storelocator_btn){ | ||
JSONObject object = new JSONObject(); | ||
try { | ||
object.put("mode", "feedback"); | ||
object.put("user", "guillaume|[email protected]"); | ||
} catch (JSONException e) { | ||
e.printStackTrace(); | ||
} | ||
JSONObject object = new JSONObject(); | ||
try { | ||
object.put("mode", "feedback"); | ||
object.put("user", "YXJuYXVkfGFybmF1ZC5sYW5jZWxvdEBjcml0aXpyLmNvbQ=="); // arnaud|[email protected] en BASE64 | ||
} catch (JSONException e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
CritizrSDK.getInstance(apiKey).openFeedbackActivity(this, this, object); | ||
}else if(view.getId() == R.id.my_store_btn){ | ||
MainActivity.this.startActivity(new Intent(this, MyStoreActivity.class)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Bolibio</string> | ||
<string name="app_name">Velo</string> | ||
<string name="critizr_api_key">7f614697ac3524af3ca4ce0df9164caf</string> | ||
<string name="external_place_id">velo-aix-en-provence</string> | ||
<string name="click_here">Cliquer ici</string> | ||
<string name="click_here_to_see_your_store">Accéder à votre page magasin</string> | ||
<string name="send_a_feedback">Envoyer une remarque</string> | ||
<string name="welcome_to_bolibio_france">Bienvenue chez Bolibio France</string> | ||
<string name="bolibio_valencienne">Bolibio Paris XI</string> | ||
<string name="welcome_to_bolibio_france">Bienvenue chez Velo France</string> | ||
<string name="bolibio_valencienne">Velo Aix En Provence</string> | ||
<string name="opening_hours">9h-12h et 14h-19h</string> | ||
<string name="opening_days">Ouvert du lundi au samedi</string> | ||
<string name="contact_director">Contacter le gérant</string> | ||
<string name="contact_another_director">Pour contacter le gérant d\'un autre magasin :</string> | ||
</resources> | ||
</resources> |