Commit ac41244b authored by Claes Sjofors's avatar Claes Sjofors

Android app, default graph icon added

parent 5a77516c
......@@ -1056,6 +1056,10 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd
continue;
String image = sret.str;
if ( image.equals("")) {
info.bpm = BitmapFactory.decodeResource(getResources(), R.drawable.graph_icon);
}
else {
URL url = null;
try {
if ( image.startsWith("$pwr_exe/")) {
......@@ -1068,10 +1072,10 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd
}
info.bpm = BitmapFactory.decodeStream(url.openConnection().getInputStream());
} catch ( IOException e) {
info.bpm = BitmapFactory.decodeResource(getResources(), R.drawable.graph_icon);
System.out.println( "Unable to open file " + image + " " + url);
continue;
}
}
aName = name + ".Name";
sret = gdh.getObjectInfoString(aName);
if ( sret.evenSts())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment