Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Application version update.
Browse files Browse the repository at this point in the history
Added support for deep links with multiple url parameters.
Avoid application crash on older android versions.
  • Loading branch information
luissilvaos committed Oct 16, 2015
1 parent 0321cb0 commit 72719eb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="17" android:versionName="1.1.6.2" android:windowSoftInputMode="adjustPan" package="com.outsystems.android" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:hardwareAccelerated="true" android:versionCode="18" android:versionName="1.1.7" android:windowSoftInputMode="adjustPan" package="com.outsystems.android" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import android.graphics.drawable.StateListDrawable;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.util.StateSet;
Expand Down Expand Up @@ -801,7 +802,11 @@ private void startLoadingAnimation() {
Bitmap bitmap = ((BitmapDrawable) imageView.getBackground()).getBitmap();

if(bitmap != null){
imageView.setBackground(null);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
imageView.setBackground(null);
}

bitmap.recycle();
bitmap = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,32 @@ public void createSettings(String environment, String operation, String paramete


if(parameters != null){
StringTokenizer st = new StringTokenizer(parameters,"&");
while(st.hasMoreTokens()){
this.addParameter(st.nextToken());

// Get username parameter
int paramIndex = parameters.indexOf(KEY_USERNAME_PARAMETER+"=");
if(paramIndex >= 0){
String userStr = parameters.substring(paramIndex);
int endOfParam = userStr.indexOf("&");
String paramString = userStr.substring(0,endOfParam);
this.addParameter(paramString);
}

// Get password parameter
paramIndex = parameters.indexOf(KEY_PASSWORD_PARAMETER+"=");
if(paramIndex >= 0){
String pwdStr = parameters.substring(paramIndex);
int endOfParam = pwdStr.indexOf("&");
String paramString = pwdStr.substring(0,endOfParam);
this.addParameter(paramString);
}

// Get url parameter
paramIndex = parameters.indexOf(KEY_URL_PARAMETER+"=");
if(paramIndex >= 0){
String urlStr = parameters.substring(paramIndex);
this.addParameter(urlStr);
}

}
}

Expand Down

0 comments on commit 72719eb

Please sign in to comment.