Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
ac41244b
Commit
ac41244b
authored
Sep 03, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android app, default graph icon added
parent
5a77516c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
java/aapp/pwrxtt/src/MainActivity.java
java/aapp/pwrxtt/src/MainActivity.java
+18
-14
java/aapp/res/drawable/graph_icon.png
java/aapp/res/drawable/graph_icon.png
+0
-0
No files found.
java/aapp/pwrxtt/src/MainActivity.java
View file @
ac41244b
...
...
@@ -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
())
...
...
java/aapp/res/drawable/graph_icon.png
0 → 100644
View file @
ac41244b
5.77 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment