This file contains hidden or 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
| keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 |
This file contains hidden or 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
| public static int okSubmitAttachment(Context ctx, String filePath, String mimeType, String uuid) throws IOException, URISyntaxException, MalformedURLException { | |
| int responseCode = 0; | |
| SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx); | |
| String baseUrl = prefs.getString("server_preference", Constants.DEFAULT_BASE_URL); | |
| if (!(baseUrl.charAt(baseUrl.length() - 1) == '/')) { | |
| baseUrl += "/"; | |
| } |