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
Hide 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,22 +1056,26 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd
continue
;
String
image
=
sret
.
str
;
URL
url
=
null
;
try
{
if
(
image
.
startsWith
(
"$pwr_exe/"
))
{
// url = new URL("http://10.0.2.2/data0/x4-8-6/rls/os_linux/hw_x86/exp/exe/" + filename.substring(9));
url
=
new
URL
(
"http://"
+
pwrHost
+
"/pwr_exe/"
+
image
.
substring
(
9
));
}
else
{
// url = new URL("http://10.0.2.2/data0/pwrp/opg7/bld/x86_linux/exe/" + filename);
url
=
new
URL
(
"http://"
+
pwrHost
+
"/pwrp_exe/"
+
image
);
if
(
image
.
equals
(
""
))
{
info
.
bpm
=
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
drawable
.
graph_icon
);
}
else
{
URL
url
=
null
;
try
{
if
(
image
.
startsWith
(
"$pwr_exe/"
))
{
// url = new URL("http://10.0.2.2/data0/x4-8-6/rls/os_linux/hw_x86/exp/exe/" + filename.substring(9));
url
=
new
URL
(
"http://"
+
pwrHost
+
"/pwr_exe/"
+
image
.
substring
(
9
));
}
else
{
// url = new URL("http://10.0.2.2/data0/pwrp/opg7/bld/x86_linux/exe/" + filename);
url
=
new
URL
(
"http://"
+
pwrHost
+
"/pwrp_exe/"
+
image
);
}
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
);
}
info
.
bpm
=
BitmapFactory
.
decodeStream
(
url
.
openConnection
().
getInputStream
());
}
catch
(
IOException
e
)
{
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