Hi,
I have an application which has been running nicely on Harrier and iMate devices, well any PPC devices really because of their rectangular screen shape.
My client has gone and bought some Palm Treo 700wx devices, and they have a smaller square screen.
In the resource of my project the screens are designed to fit PPC. When it runs on the Treo the Treo automatically pops up a scroll bar to allow the whole view to be seen.
The issue is when I first go into the app I can't see the top of the screen, about 20 odd pixels heigh aren't displayed. The scroll bar still displays and I can scroll down to the bottom of the view, and when I scroll up again the top of the screen is still out of sight.
If I exit the app just by tapping on the x in the top right corner (so the app is still running, not exiting properly via my Exit button which shuts down the app), I exit the app and then when I go back into the app the screens are displayed correctly, there is no missing space at the top of the screen.
If I exit the app via my exit button and then start the app again, the top of the view is missing again.
Does anyone know why the screen isn't displayed correctly when I first enter the app, or why it should come right when reloading the view again? Has anyone else had problems with screen layout when putting PPC apps on the square Treo 700wx?
Thanks
It sounds like you have a 'refresh' problem. I haven't encountered this my self and it is really hard to diagnose when you don't even tell us what language your app is written in, but basically here is what I think happens:
When your app is launched, part of its window doesn't get properly painted (not sure why exactly).
When you click the X the app isn't closed, but minimized.
When you return to it the window is maximized and repainted. Second repaint goes correctly.
The quick solution to this would be to force a window refresh just after the app is fully started.
Sorry I forgot to add the language.. it's written in eVC++ 3.0
I'll give the refresh a go, thanks
Further Questions..
I thought that minimising and then maximising the screen fixed the problem, but only partially..
Because the screen in resource is designed for regular PPC it is bigger than the Treo 700 screen size, so the OS automatically shows a scroll bar.
The new issue I'm seeing is to do with the scroll bar. The steps I take to reproduce the issue are:
1. Go to View1, and I scroll down the view (I'm using CView not CDialog)
2. Go to View2
3. Go back to View1. When I go back to the first view the scrollbar is scrolled down in the position I left it.
4. Scroll up to top of view and some of the controls in the wrong place. Some controls I dynamically create in OnInitialUpdate, and as part of the Create() I pass in CRect to tell it where to create the control.
If I set CRect.top to say 10, it's created 10 down from the top of the visible screen. The problem is that because I've scrolled the view previously the view draws it 10 down on the visible portion of the view.
I had thought that the easiest solution would be to always reset the scroll bar to the top of the view before creating my controls, but I'm not sure how to force the OS scroll bar to the top of the view. I've tried SetScrollPos(0,0) or ScrollWindow(0, y). ScrollWindow moves the actual view up or down, but the OS scrollbar is still in the same position.
Any ideas on how to set my view window to the top and to reset the scrollbar?
Thanks again
How to refresh a view?
I have sorted the issue mentioned just above, by finding the scroll position and factoring in that when I set the value of CRect area of the controls I need to dynamically draw.
I'm now just left with the first issue, of when I first start up the app the top part of the window and scrollbar are covered by the Title/Taskbar at the top of the screen.
If I close the app via the x button and restart the app, the issue resolves itself. Or if I open up any dlg like the About screen or even display an AfxMessageBox, when I close the dialog the original screen is redrawn correctly, in the correct position and scroll bar fully shown.
I have tried calling RecalcLayout(), RefreshWindow(), UpdateWindow(), Sending WM_SIZE messages and a whole range of things, but I can't seem to get the screen refreshing correctly apart from when I open any dialog and close that dialog.
When you close a dialog what messages get sent to the previous view that force it to redraw? Does anyone have any suggestions how I can force a refresh myself?
Thanks again
Did you try InvalidateRect?
I am getting a bit rusty with MFC, since I now try to do things the hard way and use pure win 32, but this should work.
If you can't use it as a class member, call the API directly using you view GetSafeHwnd() function for window handle). Use NULL for lpRect to redraw the whole window and FALSE for bErase to prevent flickering.
Note that UpdateWindow() only triggers repaint if part of the window becomes invalid (the contents needs redrawing).
No I hadn't thought of using InvalidateRect(), so I should give it a go.
In the end I just wanted the issue fixed so opted for a quick 'n dirty solution of displaying a temp CDialog as soon as the app starts and calling EndDialog() immediately in the OnInitDialog() so the dialog disappears before you see it.
It worked and the original screen gets updated to correct size, layout and scroll bar.
Cheers.
Warning dont do this if you dont know what your doing or how to fix it if something goes wrong, and dont blame me for any Problems that happen to your kindle trying to use this method.
I tested and used this only on the 8.9 Kindle Fire HD and dont know what it will do on a 7, but since the forums are lacking forums for 8.9 (Where is the 8.9 Love?) I guess this is the next best place as it may work for the 7 also but my settings I recommend are for the 8.9 and probably not great for the 7.
I was looking for a way to get rid of the soft key bar that takes up screen space and is just another thing that I disslike about the stock Amazon Interface. I have not found a perfect replacement but I have found one that is pretty decent it is the LMT Launcher(required root) Other then a few visual glitches, like a gap on the right during the notification bar down, and a bar on the right when using key board.
Directions:
1.Download apk from post below
http://forum.xda-developers.com/showthread.php?t=1330150
2.Install apk in ES File explorer or whatever file program you use.
3. Download and install MoreRecent, if you want recent apps (since Kindle Fire HD is sorely lacking this)
morerecent Play store download link..
4. Run LMT app, Tap start/stop TouchService once, and set Autostart Touchservice enable
5. Setup Pie Control near the bottom of the Settings
Recommended settings by me:
Activation area position left and right
Activation area Thickness 5
Activation area Length 600
Long press time 1000
Animation time 0
Show status infos Disabled
6. Setup Pie Items
Recommended settings by me:
Level 1 for the pie Give you acress to search menu and recent apps using morerecent app, plus a way to kill all apps and go to home. This leaves all 4 of the long press items available for common used apps or anything you want!!
Pie item 1 App select MoreRecent
Pie Item 2 KillAllApps (will close active and go to Home screen) (or replace with your most used app)
pie Item 3 Menu
pie item 4 Search
Level 2 for the Pie Make so swipe downward from left or right will go back, and swipe upward will go back home.
Pie item 1 Home
Pie Item 2 Back
7. Test that it works well and does everything you like and i recommend to restart to make sure it starts up. Testing your most used apps is a good idea to make sure that you can just use the LMT and dont need the amazon Soft Key Bar
8. If everything is working great and their isnt any time that you wish need the amazon bar Load Titanium backup and back up Soft Key Bar then uninstall it, now restart and it should be gone once LMT loads you should have a more clean and easy to use replacement for the the amazon key bar! With alot more settings you can play with!
Let me know how this works for you!!
Yes, I am using LMT on my KFHD 7. I can confirm this works. Also, I forgot who made this, but I DID NOT, if you just add a line in build.prop in the system folder that says "qemu.hw.mainkeys=1" and reboot, you kindle will get rid of the Amazon softkey bar.
miztah1999z said:
Yes, I am using LMT on my KFHD 7. I can confirm this works. Also, I forgot who made this, but I DID NOT, if you just add a line in build.prop in the system folder that says "qemu.hw.mainkeys=1" and reboot, you kindle will get rid of the Amazon softkey bar.
Click to expand...
Click to collapse
qemu.hw.mainkeys=0 is already in the build.prop.... can't you just change the 0 to 1?
That worked in my case. I think I'll give this a trĂ½ since button savior annoys me for some reason.
Sent from my KFTT using spray paint.
---------- Post added at 10:10 PM ---------- Previous post was at 09:43 PM ----------
Dang thing keeps f/c'ing on me. What's the trick?
Sent from my KFTT using XDA Premium HD app
one thing I don't understand its that, why stock ICS's app switch is not working on KFHD...
arda99 said:
one thing I don't understand its that, why stock ICS's app switch is not working on KFHD...
Click to expand...
Click to collapse
I dont know for sure but I belive the app switcher is part of some system files, and I guess that amazon butchered those files..... Using Nova and running recent apps it will change the wall paper (very annoying) So I was forced to try to find another way to change and so far best option i can find is MoreRecent (GB style with more icons) But its kinda ugly with very large icons but at lest it works decently. Would be great if someone could get the stock ICS recent apps to work! (altho I would rather the devs work on a fully working version of cm 10.1).
miztah1999z said:
Yes, I am using LMT on my KFHD 7. I can confirm this works. Also, I forgot who made this, but I DID NOT, if you just add a line in build.prop in the system folder that says "qemu.hw.mainkeys=1" and reboot, you kindle will get rid of the Amazon softkey bar.
Click to expand...
Click to collapse
miztah1999z,
This is slightly off, VERY Close!
What you want to do, is use ES File Explorer or Root Explorer with Superuser Permissions:
Step 1: Using ES File Explorer or Root Explorer navigate to /system/ find build.prop - click on it and choose Text Editor.
Step 2: Scroll Down and find qemu.hw.mainkeys=0 it is about one half the way down the list below ro.sf.lcd.density=240 - Change the 0 to a 1. DO NOT add a second entry! When done the line should look like this:
Code:
ro.sf.lcd.density=240
qemu.hw.mainkeys=1
ro.opengles.version=131072
Step 3: Reboot the Kindle
This is a well known edit, this tells Android to NOT display the Qemu Soft-key bar. We edit the soft-key bar all the time, changing the icons and the look of the bar. It is quite easy, you would use ADB to Pull /system/framework-res.apk then use apktools to decompile the apk. Once you decompile the APK you will find inside that one APK is all the Nav Bar icons, you can use a solid Graphics editor like Gimp to edit the icons and a solid XML Editor like IntellaJ IDEA to edit the icon functions. If you do not have an solid understanding of XML DO NOT attempt this edit, instead ask us to create a custom bar for your Kindle. If we get enough requests we will add the custom bars to our software.
We may be adding a few optional nav bars in our software next month. At the moment we are adding the Sony Xloud and Bravia options to the Settings menu so you are able to properly change the Sony Xloud and Bravia settings. Once we are done with the Sony project we will ask all of what YOU would like to have as an option. If you have any ideas please post them.
Put me down for a custom bar.
Sent by my KFTT, despite everything...
BELASCO said:
Put me down for a custom bar.
Sent by my KFTT, despite everything...
Click to expand...
Click to collapse
Dude... I'm all for it too if it had an autohide feature that truly did what we wanted. But after using LMT now for a while, I'm getting used to (and quite like ) having it appear wherever I want (like from the side).
Lmt keeps f/c'ing on me. What's the trick?
Sent by my KFTT, despite everything...
---------- Post added at 03:56 AM ---------- Previous post was at 03:47 AM ----------
'Course, now thinking "custom bar", I'd be in favor of something in dark wood, celtic punk decor, and a redhead behind the counter who knows how to draw Guinness properly.
Sent by my KFTT, despite everything...
BELASCO said:
Lmt keeps f/c'ing on me. What's the trick?
Sent by my KFTT, despite everything...
---------- Post added at 03:56 AM ---------- Previous post was at 03:47 AM ----------
'Course, now thinking "custom bar", I'd be in favor of something in dark wood, celtic punk decor, and a redhead behind the counter who knows how to draw Guinness properly.
Sent by my KFTT, despite everything...
Click to expand...
Click to collapse
Honestly, I have no idea what could be wrong with your LMT. :banghead:
I haven't had a single issue with it. Sorry man. I really hope you fix it , or find something that works better for you. :thumbup:
BELASCO said:
Lmt keeps f/c'ing on me. What's the trick?
Sent by my KFTT, despite everything...
---------- Post added at 03:56 AM ---------- Previous post was at 03:47 AM ----------
'Course, now thinking "custom bar", I'd be in favor of something in dark wood, celtic punk decor, and a redhead behind the counter who knows how to draw Guinness properly.
Sent by my KFTT, despite everything...
Click to expand...
Click to collapse
Not sure Mine hasn't jammed yet. Possibly bad download or maybe try to clear data for LMT?
Finally got it to hang around. Very choppy (memory issue?). All I could manage to do was make a balloon fly & dandelion seeds float. Not near stoned enough to be impressed. Guess I'll have to find instructions.
Oh, forgot - something I did made a little fighter jet fly across the screen. That was kinda cool.
Sent by my KFTT, despite everything...
BELASCO said:
Finally got it to hang around. Very choppy (memory issue?). All I could manage to do was make a balloon fly & dandelion seeds float. Not near stoned enough to be impressed. Guess I'll have to find instructions.
Oh, forgot - something I did made a little fighter jet fly across the screen. That was kinda cool.
Sent by my KFTT, despite everything...
Click to expand...
Click to collapse
... You are after the launcher. Ah.....
Okay, I found it, LMT. Now why did I think it was part of MX launcher? Any way to keep it from disappearing the moment you take your stylus/finger/tentacle off it? If I wanted to play peek-a-boo, I got a friend with a 9 month old who's a champ at that.
lizzord30 said:
Warning dont do this if you dont know what your doing or how to fix it if something goes wrong, and dont blame me for any Problems that happen to your kindle trying to use this method.
I tested and used this only on the 8.9 Kindle Fire HD and dont know what it will do on a 7, but since the forums are lacking forums for 8.9 (Where is the 8.9 Love?) I guess this is the next best place as it may work for the 7 also but my settings I recommend are for the 8.9 and probably not great for the 7.
I was looking for a way to get rid of the soft key bar that takes up screen space and is just another thing that I disslike about the stock Amazon Interface. I have not found a perfect replacement but I have found one that is pretty decent it is the LMT Launcher(required root) Other then a few visual glitches, like a gap on the right during the notification bar down, and a bar on the right when using key board.
Directions:
1.Download apk from post below
http://forum.xda-developers.com/showthread.php?t=1330150
2.Install apk in ES File explorer or whatever file program you use.
3. Download and install MoreRecent, if you want recent apps (since Kindle Fire HD is sorely lacking this)
morerecent Play store download link..
4. Run LMT app, Tap start/stop TouchService once, and set Autostart Touchservice enable
5. Setup Pie Control near the bottom of the Settings
Recommended settings by me:
Activation area position left and right
Activation area Thickness 5
Activation area Length 600
Long press time 1000
Animation time 0
Show status infos Disabled
6. Setup Pie Items
Recommended settings by me:
Level 1 for the pie Give you acress to search menu and recent apps using morerecent app, plus a way to kill all apps and go to home.
Pie item 1 App select MoreRecent
pie Item 1 Longpress search
Pie Item 2 KillAllApps (will close active and go to Home screen) (or replace with your most used app)
pie Item 2 Longpress Menu
Level 2 for the Pie Make so swipe downward from left or right will go back, and swipe upward will go back home.
Pie item 1 Home
Pie Item 2 Back
7. Test that it works well and does everything you like and i recommend to restart to make sure it starts up. Testing your most used apps is a good idea to make sure that you can just use the LMT and dont need the amazon Soft Key Bar
8. If everything is working great and their isnt any time that you wish need the amazon bar Load Titanium backup and back up Soft Key Bar then uninstall it, now restart and it should be gone once LMT loads you should have a more clean and easy to use replacement for the the amazon key bar! With alot more settings you can play with!
Let me know how this works for you!!
Click to expand...
Click to collapse
First of all thanks.
Using lmt and morerecent
Krsmqn said:
qemu.hw.mainkeys=0 is already in the build.prop.... can't you just change the 0 to 1?
Click to expand...
Click to collapse
Secondly, disabling the soft keys in this manner seems to effect the functionality of some apps, for example you loose the access to the settings menu in gplay, meaning you can't access the my apps menu. Wich Is something I like to use.
However. Moving the soft keys app out of system/app has its own negative effect of causing a gap when you pull down the notications and the bottom of the screen. Right now my keyboard is also floating the same distance, its as if its leaving the gap for the softkeys
Any ideas how to fix this while keeping access to the settings menu of gplay?
Kyoushi said:
Secondly, disabling the soft keys in this manner seems to effect the functionality of some apps, for example you loose the access to the settings menu in gplay, meaning you can't access the my apps menu. Wich Is something I like to use.
However. Moving the soft keys app out of system/app has its own negative effect of causing a gap when you pull down the notications and the bottom of the screen. Right now my keyboard is also floating the same distance, its as if its leaving the gap for the softkeys
Any ideas how to fix this while keeping access to the settings menu of gplay?
Click to expand...
Click to collapse
Which gplay exactly, and what where you doing?
I have made a few adjustments to how I have my Pie setup so level 1 pie has menu button(settings), Killallapps, Morerecent, and search, and home and back on the second pie level, so far my favorite setup as it leaves all the pies long press free to put in apps I use often. but the 2 buttons I use most home and back, are still a quick swipe away to be used. About the visual glitches in the keyboard and notifications That is above my ability, and so far its only visual so it doesn't bother me much.
I use button savior, which has a built-in app switch feature. Only 6 most recent apps are listed but is enough for me.
Kyoushi said:
First of all thanks.
Using lmt and morerecent
Secondly, disabling the soft keys in this manner seems to effect the functionality of some apps, for example you loose the access to the settings menu in gplay, meaning you can't access the my apps menu. Wich Is something I like to use.
However. Moving the soft keys app out of system/app has its own negative effect of causing a gap when you pull down the notications and the bottom of the screen. Right now my keyboard is also floating the same distance, its as if its leaving the gap for the softkeys
Any ideas how to fix this while keeping access to the settings menu of gplay?
Click to expand...
Click to collapse
I have mine set up with qemu.hw.mainkeys=1 and I have no problems with any apps. Perhaps it's because I also have set my dpi to 180. Lemme change some things and see if it affects gplay. I'll get back to this thread in a few.
So, the picture without the options is with the dpi set at 240. The next picture is with the settings @ 180 dpi. Both are with qemu.hw.mainkeys=1.
Hope this helps. If you need help changing your dpi, let me know.
Version 1 posted here: https://forum.xda-developers.com/nook-touch/themes-apps/app-quick-tiles-t3904002. Please direct all requests, comments, etc., to the new thread.
I've been slowly working up to an implementation of quick settings tiles for the NST/G, with my various menus for the Reading Now "button", WiFi, and Alternate Power Menu. I now have what I would consider a beta app which brings user-configurable (within limits!) quick settings tiles to the NST/G. As conceived, this app could be assigned to the "clock" (current WiFi Quick Setting).
Trying to stay within the typical scope of quick settings tiles as implemented on current Android systems, I've mainly looked at connectivity and display. I don't see any reason to create another "launcher", although I have made exceptions for display modes such as NoRefresh and FastMode.
These are the options I have now:
WiFi (long press is the WiFi settings menu)
WiFi + Sync (for GApps users; long press is the WiFi settings menu followed by sync)
FTP (accesses ES File Explorer Remote Manager for wireless transfer to and from PC or other devices)
Screen rotation
Screenshot
NoRefresh
FastMode2
Set Cover (sets screen"saver" image to current read book cover)
USB Host
USB Audio
I'm looking for other things that people might want while I continue to test and debug before I package up a "version 1". As of now, there are 8 spaces for options and you can arrange the tiles you choose in any order you wish, including fewer than 8 (i.e., blanks). In theory I could add another row (or remove one) but that is not a user-configurable option
Screenshot below.
nmyshkin said:
Version 1 posted here: https://forum.xda-developers.com/nook-touch/themes-apps/app-quick-tiles-t3904002. Please direct all requests, comments, etc., to the new thread.
I've been slowly working up to an implementation of quick settings tiles for the NST/G, with my various menus for the Reading Now "button", WiFi, and Alternate Power Menu. I now have what I would consider a beta app which brings user-configurable (within limits!) quick settings tiles to the NST/G. As conceived, this app could be assigned to the "clock" (current WiFi Quick Setting).
Trying to stay within the typical scope of quick settings tiles as implemented on current Android systems, I've mainly looked at connectivity and display. I don't see any reason to create another "launcher", although I have made exceptions for display modes such as NoRefresh and FastMode.
These are the options I have now:
WiFi (long press is the WiFi settings menu)
WiFi + Sync (for GApps users; long press is the WiFi settings menu followed by sync)
FTP (accesses ES File Explorer Remote Manager for wireless transfer to and from PC or other devices)
Screen rotation
Screenshot
NoRefresh
FastMode2
Set Cover (sets screen"saver" image to current read book cover)
USB Host
USB Audio
I'm looking for other things that people might want while I continue to test and debug before I package up a "version 1". As of now, there are 8 spaces for options and you can arrange the tiles you choose in any order you wish, including fewer than 8 (i.e., blanks). In theory I could add another row (or remove one) but that is not a user-configurable option
Screenshot below.
Click to expand...
Click to collapse
Thank you for your work on this, it is greatly appreciated. I will install in the next few days and tinker.
A couple of observations (I don't know if they might be relevant to your app, in the sense that you might be able to implement these "tweaks" as a tile.)
1. Can NoRefresh be used Nook-wide? I know it has a whitelist, but can it include every single part of the system so it doesn't deactivate when you move around? For example, it irks me when I'm in eBookDroid and upon selecting the Outline (Table of Contents) NoRefresh deactivates, so I need to re-activate it.
2. The other one is the Screensaver. Why on earth isn't it possible to have a screensaver which just leaves the page which was active in the moment the Nook goes to sleep, maybe with a small translucent notice saying something like "Press n to Wake up Device"? This seems much preferable to putting up a screensaver with some artwork on it.
3. I haven't yet installed your app, but upon pressing a tile, if there would be a floating context menu (for example corresponding to different options for an app) it would be great, but it might defeat the purpose of simplicity.
In any case, thank you!
Winston S. said:
1. Can NoRefresh be used Nook-wide? I know it has a whitelist, but can it include every single part of the system so it doesn't deactivate when you move around? For example, it irks me when I'm in eBookDroid and upon selecting the Outline (Table of Contents) NoRefresh deactivates, so I need to re-activate it.
Click to expand...
Click to collapse
This is a common problem with NoRefresh on changing views. To my knowledge it's just the nature of the beast. Sometimes you can simply do the taps again and it will come back. Sometimes it gets knocked out completely and needs to be retoggled. That's what the quick tile is for. You would not want it "on", certainly, all the time. Besides not looking very nice it would consume a lot of extra juice.
2. The other one is the Screensaver. Why on earth isn't it possible to have a screensaver which just leaves the page which was active in the moment the Nook goes to sleep, maybe with a small translucent notice saying something like "Press n to Wake up Device"? This seems much preferable to putting up a screensaver with some artwork on it.
Click to expand...
Click to collapse
Actually, someone did look into this. You can read about it here: https://forum.xda-developers.com/showthread.php?t=2694245
3. I haven't yet installed your app, but upon pressing a tile, if there would be a floating context menu (for example corresponding to different options for an app) it would be great, but it might defeat the purpose of simplicity.
Click to expand...
Click to collapse
Not sure what you have in mind for context. The tile items are meant to be quick settings/modes/toggles all collected in one place. Essentially just a tap and you're done. Things like NoRefresh, for example, have configuration apps as well, but that's not what the tiles are for. And besides, at the moment I have no idea how to do what you describe
In the dev options there's an input field 'smallest width' - set it to like 450px, then in accessibility change text size to large or huge, whichever is best for you.
You can also do this through ADB.
To retrieve the current density:
adb shell wm density
Click to expand...
Click to collapse
To set a new density (replace 450 with desired density):
adb shell wm density 450
Click to expand...
Click to collapse
You should force quit the launcher (or reboot) after you update the density... Sometimes it doesn't react well to the change.
sevnsevn said:
You can also do this through ADB.
To retrieve the current density:
To set a new density (replace 450 with desired density):
You should force quit the launcher (or reboot) after you update the density... Sometimes it doesn't react well to the change.
Click to expand...
Click to collapse
What else can you do through adb that you can't do through settings?
I just wanted to confirm that this works up to 450 (auto changes to 449), however when doing this, it glitches out the dock some times where the icons get condensed in the middle, but on reboot they go back to normal until an app is opened, any higher than 449dpi and the phone completely glitches out, at 480 the labels in the app draw start to get cut off, and at 500 the app drawer won't even open.
This is just from testing on mine, which is a Pulse colour model (known to have way more issues than Eclipse Black) so your mileage may vary.
bANONYMOUS said:
I just wanted to confirm that this works up to 450 (auto changes to 449), however when doing this, it glitches out the dock some times where the icons get condensed in the middle, but on reboot they go back to normal until an app is opened, any higher than 449dpi and the phone completely glitches out, at 480 the labels in the app draw start to get cut off, and at 500 the app drawer won't even open.
This is just from testing on mine, which is a Pulse colour model (known to have way more issues than Eclipse Black) so your mileage may vary.
Click to expand...
Click to collapse
I have this same problem on my Redmagic 6. Did you find any solution to this? Also, dial pad in phone app slides to the left side when I change width value.