padvou Active Member Licensed User Longtime User Nov 9, 2013 #1 I 've spend some time developing some app which, among others things, displays some metric charts which are in fact jpgs made especially for 1020x600@160 dpi.Device is 1024x720@160 dpi. The jpgs are 1:1 displayed on the device. I mean 1cm on the jpg is in fact 1cm when you measure it on screen. Is there some way I can display this app correctly to another device which is [email protected]? I would prefer to avoid re-writing stuff and having to order new jpgs to match the new device.
I 've spend some time developing some app which, among others things, displays some metric charts which are in fact jpgs made especially for 1020x600@160 dpi.Device is 1024x720@160 dpi. The jpgs are 1:1 displayed on the device. I mean 1cm on the jpg is in fact 1cm when you measure it on screen. Is there some way I can display this app correctly to another device which is [email protected]? I would prefer to avoid re-writing stuff and having to order new jpgs to match the new device.
padvou Active Member Licensed User Longtime User Nov 9, 2013 #2 A workaround just for my case which worked was to change screen density in \system\build.prop So my next question would be if some coding would accomplist this so I don't have to do it manually. How could I execute a textreader on a file residing in \system ? Last edited: Nov 9, 2013 Upvote 0
A workaround just for my case which worked was to change screen density in \system\build.prop So my next question would be if some coding would accomplist this so I don't have to do it manually. How could I execute a textreader on a file residing in \system ?
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2013 #3 You cannot access system files on unrooted devices. I guess that your device is rooted. It is still not simple. You will need to run a shell script to do it. Running shell commands as SuperUser See this code: http://www.b4x.com/android/forum/threads/how-to-draw-circles-in-real-sizes-mm.19071 It allows you to get the device exact scale. Upvote 0
You cannot access system files on unrooted devices. I guess that your device is rooted. It is still not simple. You will need to run a shell script to do it. Running shell commands as SuperUser See this code: http://www.b4x.com/android/forum/threads/how-to-draw-circles-in-real-sizes-mm.19071 It allows you to get the device exact scale.
padvou Active Member Licensed User Longtime User Nov 10, 2013 #4 Yes target device is rooted. I 've implemented the code referenced in http://www.b4x.com/android/forum/threads/6886/#content However since I 'm not really into linux/android shell commands, I 'd appreciate if someone assisted me with this. I'm checking the second link out. Looks really interesting! Upvote 0
Yes target device is rooted. I 've implemented the code referenced in http://www.b4x.com/android/forum/threads/6886/#content However since I 'm not really into linux/android shell commands, I 'd appreciate if someone assisted me with this. I'm checking the second link out. Looks really interesting!