Hello,
I know that it's possible to add applications to whitelist for built-in screen rotation function in HTC Leo.
But this is very inconvenient. You need determine Class of application and then add it to registry...
Could anyone write a simple application, which could be mapped to hardware button. For example, when I use long button press - it automatically determines open (active) application window class and adds it to HTC Leo rotation whitelist. Second long press will remove this application from whitelist.
It will be very useful and convenient and no need to use external applications like Gyrator, because using built-in HTC abilities - is much better.
I'm sure this thing will be very popular and needed application.
Is anyone from developers interested in coding this idea ?
I have created a win32 API for C++ that mimics HTC's Sense UI Look 'n Feel... More informations on my website: charlie-soft.com
DOCUMENTATION : http://charlie-soft.com/Software/Manila_SDK/html/
This SDK is designed for speed: .NET applications are usually very slow to load and not fluid. I use some tricks to improve speed, like drawing only area having changes, scrolling without backbuffer or creating textures for text (GDI text drawing was slower…).
What’s in the box:
PNG resources for VGA/WVGA. They can be easily modified. SDK will resize automatically the resources if your device has a smaller (or higher) resolution!
Design your app for VGA, the SDK will adjust the layout for other resolutions!
Full Finger Control.
Source files (.cpp and .h) of library.
Source files of example.
Class:
MyEditControl: Edit box with different width. Easy get and set text. SIP detection: scroll Edit area.
MyItem: Button (3 types), checkboxes and switch (TripleState!). Event on click, visibility and state can be changed/get easily.
MyPanel : This element is not visible but is used to bring together elements. This element can have a title and dotted separator between each element.
ChildSection : Contains a subsection which is displayed with a sliding effect.
MyLabel: Print text with different font and color.
MyPictureBox: To print image (png, jpg, bmp, gif…)
MySelector: Like the HTML select. Scroll screen if list is out of screen (see video below).
Section: A section is a panel which can be scrolled up/down. It contains the different elements.
MessageBoxSense: Four type of messagebox: info, Ok/Cancel, Abort/Retry and Yes/No.
MySlider: A simple slider of any size... The min and max values can be changed easily, as the cursor position.
Change log
V1.6.4
Added the possibility of multilines in edit control
V1.6.3
Added possibility to add picture to slider of ChildSection...[bug solved]
Explorer bug solved
V1.6.2
Added an event when user click on screen...
V1.6.1
Memory usage improved
V1.6
Loading of image is now safe (use video memory by default but if problems use device memory)
File Explorer
Icons
Speed and memory improvement
V1.5
just add possibility to change color of text for hover and selected...
Minor bug changes:
items out of screen no longer try to redraw
text of items recompute their size when changing
background color is correctly changed
The SDK is now multi thread safe!
Add the possibility to right clicks (long press)
Add the possibility to hook windows message (WM_ACTIVATE for example)
Add the possibility to have a bottom bar.
Add the possibility to have a background image (landscape and portrait).
If the app is allready started, close the new instance and show the previous one.
MySelector can be scrolled if the list is too long.
Text is now printed with alpha transparency.
Compatible with any character (hebrew, vietnamese...).
MyPictureBox can now be stretched.
Memory usage reduced.
V1.4
Minor bugs fixed
Add the possibility to show MessageBox without a main application.
V1.3
Background can be transparent ! (see this app for demo)
Native drawing (DirectDraw was too slow in landscape)
Slider can have a force feedback (see this app for demo)
V1.2
MySlider added
drawing process rewrited: less redraw->less computation->less CPU utilization -> battery consumption reduced
Loading optimisation
The layout is now independent of screen resolution!
top taskbar is occassionally cleared [fixed]
White screen, touching the panel brings it back [fixed]
landscape items position incorrect [fixed]
V1.1
landscape compatible
Abort/Retry added to MessageBoxSense
TripleState Checkboxes and OnOffItems added
FAQ
is QVGA resolution supported?
Yes, SDK will find the correct resolution and select the appropriate resource resolution. The SDK will delete the other resources...
have you planned to extend MessageBox types to Abort/Retry?
Yes, to create one:
MessageBoxSense::show(L"Hello",L"Try again ?", MESSAGE_ABORTRETRY);
is this landscape compatible?
Yes but having refresh rate issue. Seems to be a DirectDraw problem (S2U2 was subject to the same issue...)
If someone know how to solve this problem, send me a message !
Back button too slow.
You can change the speed anim using this function: changeSpeed(double nbMilisecond)
why aren't you including some TripleState Checkboxes and OnOffItems ?
Both are now included:
new MyItem(1,5,15,ITEM_IS_CHECKBOX,ITEM_THIRD_STATE,L"My third checkbox (Third state)");
Other apps
Wake on Wan is a new app which use this SDK. Sources are available!
Quick shutdown is a software which use this SDK too. It can turn off, restart or set the phone in sleep mode. Sources are also available!
"
Sense SDK win32 C++
For informations about SDK (installation, use compile...), see here: http://charlie-soft.com/Software/Manila_SDK/html/
Good work ! thanks for sharing hope devs will use it.
Hello my friend !
Great work !
( C'était exactement ce que je cherchais en c++ pour mes MFC smart device !!! )
Great Work, Thx for the source!!
Really great work!
but I have two questions:
- is QVGA resolution supported?
- have you planned to extend MessageBox types to Abort/Retry?
thank you
regards
NIce work
Altough i don't really know what todo with it... i instalt the example.cab and it was really smooth!
Only one thing if i go to other controls and i want to change the value then the onscreen keyboard should show up right? But it doesn't.... So i slide my qwerty keyboard open, and in landscape i get an error message: DDERR_SURFACELOST(back buffer)
I dont know what it means... is this landscape compatible?
Good job man !
Nice works !
I just have a feedback, I find too slow the animation when you click on the "back" button, is there is a way to speed it up ? (or disable simply the animation)
SDK Manila
Hello all !
I will try to answer all your questions. So :
- is QVGA resolution supported?
No but easy to implement... Just resize resources to correct resolution. I will post resources shortly.
- have you planned to extend MessageBox types to Abort/Retry?
If it's something wanted, I will do it.
- is this landscape compatible?
No, not yet. But will be in next release!
-Back button too slow.
I will add a method to set the speed of animation... in the next release
-Bug with hardware keyboard
The onscreen keyboard don't show up and I don't know why... I will look around for a fix.
If a developer wants to translate .NET applications into C++, feel free to post I will try to help you!
There is still lot of work, but I will try to do this quickly!
petititi said:
- have you planned to extend MessageBox types to Abort/Retry?
If it's something wanted, I will do it.
Click to expand...
Click to collapse
thank you for quick reply. I need this extension for my app "htc menu loader" (link in signature) to migrate from .net to c++
again, really great work. You are making something that HTC should have done months ago.
Great project !
I don't know if you notice but I disabled the bottom taskbar... Do you think that I should add the possibility to enabled it? I saw that your application needed one...
I hope you will find my SDK easy to use !
Hey, this looks awesome.
Question though: I'm just shy of clueless when it comes to making an actual working app. Is there any place I can go to read/learn the coding I will need to actually use this?
Application win32 c++
You can use the example application included into the SDK to learn basic stuff or you can download this application: WakeOnWan. It’s based on my SDK (here are the sources).
You need some basic knowledge about Object-oriented programming and C language. I try to explain how to use the SDK in the example using comments or on my webpage.
I will also post a short tuto in second post...
Very, very nice! The demo runs very smoothly on my stock Touch Pro 2.
petititi said:
You can use the example application included into the SDK to learn basic stuff or you can download this application: WakeOnWan. It’s based on my SDK (here are the sources).
You need some basic knowledge about Object-oriented programming and C language. I try to explain how to use the SDK in the example using comments or on my webpage.
I will also post a short tuto in second post...
Click to expand...
Click to collapse
Awesome thanks!
What's sad, is when I was young, I used to be able to code in C. Made my first video game when I was 6 on a Commodore 64 (ok i dated myself here) Now, can't remember very much
C++ ? It's just like riding a bike!
Hatefly said:
Awesome thanks!
What's sad, is when I was young, I used to be able to code in C. Made my first video game when I was 6 on a Commodore 64 (ok i dated myself here) Now, can't remember very much
Click to expand...
Click to collapse
I'm sure you can!
It's just like riding a bike - you never really forget how. And we are here to help you to refresh your memory.
petititi said:
I'm sure you can!
It's just like riding a bike - you never really forget how. And we are here to help you to refresh your memory.
Click to expand...
Click to collapse
Sweet thanks! Just downloaded an ebook on c programing.
Sounds (and looks) great, although there are still to many glitches (like not working in landscape etc.) which are preventing me from using this package.
But I have one question, why aren't you (all) including some TripleState Checkboxes and OnOffItems ?
I need them often but you cant find such controls online - not to speak of sense.
TripleState Checkboxes ?
Hello,
the TripleState Checkboxes is a simple feature I can add. To be sure, TripleState Checkboxes will looks like:
And tripleState On/Off:
I will include them in the next release... Be patient, the next release is coming soon and adds support for portrait and fixes a few bugs...
Can anyone tell me how/where you define the categories under the app drawer?
Each time I flash a ROM, I lose my category definitions, although any home screen "launcher action" widgets can be recovered. If I can match the order in which I defined the categories then my widgets will be ok.
I'm guessing that when you add a new catalog, you add some sort of file with a number and that is linked in the launcher action widget. e.g. Add new catogory "Office" to the menu maps to /data/data/appdrawer/categories/1.xml (I'm guessing the location and format - hopefully someone can let me know how it really works!)
That file 1.xml contains the name "Office" somewhere in its definition (or even somewhere else relative to the launcher/appdrawer) so that 1.xml can be identified as "Office"
However, when you create a launcher action widget, I think that a link is created and that that doesn't care about the name (you can call the widget whatever you want) so your widget might be "Office.wdgt" which is linked to "1.xml" from above. That works until you flash a new rom and then you have to remember that you created the "Office" category first otherwise the widget, which still links to "1.xml" will point to the newly defined first category...
I've got about 9 or 10 categories and it's a PITA trying to remember the order I've defined them in. If I could interrogate a file somehow through adb or via the terminal, that'd be great as I could at least recover my categories in the correct order and not have to recreate all of the widgets.
[Edit]
Alternatively - Does anyone know how to disassemble the ADW backup files? It's these that are referencing the drawer categories, so perhaps I can work it out from the ADW backup...
[/Edit]
Can anyone help?
Thanks in advance
Bingo - I think.
The adw_ex_launcher.db file is an SQLite database which can be viewed using sqljet-browser or any other SQLite browser software. In there, there is a favorites table and the data has title and intent columns (amongst others) Within the intent data the CATALOG_INDEX is defined and this ranks the categories as needed.
At least with this I can setup my categories, knowing that they're defined in the correct order and I don't have to mess around with redefining both catalogs and home screen launcher actions.
Hope this helps someone else...
Is it possible to get into the registry and select which apps to add to Quick Actions? I would like to add OneDrive and other apps, beside the typical system functions there.
The problem is, I'm not sure where to look for this. Has anyone achieved this before?
Yes,me. Change the uri.
ms-onedrive:
Restart the phone after.
ms-settings: is the "All Settings icon, presumably?
How do I find the icon for OneDrive?
Dont know, change the uri with one of these: HKCU\Software\Classes.
Hi guys,
there seems to be a limitation in W10M regarding the number of tile folders on the start screen. I tried it on different devices and could create 25 tile folders, but I need more... Creating the 26th always results just in a start screen reload before the has device recognized that a tile is put on top of another tile.
Is there I way to tweak it? I suppose the layout is stored in an XML file or in a database. I'd just try to edit this resource adding more folder elements.
_AndyAndy_ said:
Hi guys,
there seems to be a limitation in W10M regarding the number of tile folders on the start screen. I tried it on different devices and could create 25 tile folders, but I need more... Creating the 26th always results just in a start screen reload before the has device recognized that a tile is put on top of another tile.
Is there I way to tweak it? I suppose the layout is stored in an XML file or in a database. I'd just try to edit this resource adding more folder elements.
Click to expand...
Click to collapse
You can customize in here.
http://www.upsieutoc.com/image/RI0oVh
Aries Prine said:
You can customize in here.
http://www.upsieutoc.com/image/RI0oVh
Click to expand...
Click to collapse
The screenshot you point to explains TileColumnSize that is used to define how much tiles/tile folders are displayed in a row. But it isn't a problem. My problem is how to CREATE more than 25 tile FOLDERS on the start screen.
_AndyAndy_ said:
The screenshot you point to explains TileColumnSize that is used to define how much tiles/tile folders are displayed in a row. But it isn't a problem. My problem is how to CREATE more than 25 tile FOLDERS on the start screen.
Click to expand...
Click to collapse
I don't know.
So folks, I pushed two tiles to the very top of the start screen and managed to create the 26th tile folder in this way.
But now a long-tap on every tile or group results into a start screen reload, so I'm unable to edit it at all...
I suppose it's a memory issue. Can plz someone verify it? All my devices have 1 GB RAM and stop at 25/26 tile groups.
I investigated the file system but found no traps of a file that controls the start screen layout.
There is system32\layouts\defaultLayouts.xml which is used for the initial setup after a hard reset.
And there's an interesting MSDN article about customizing the start screen layout via LayoutModification.xml:
https://msdn.microsoft.com/en-us/library/windows/hardware/mt171093(v=vs.85).aspx
However it states that "Windows 10 Mobile only supports one Start group". So no chance to outsource the full configuration of the start screen to that file.
Now I'd like to export the phone's registry hoping to find the tile groups configuration there.
Is there a registry export tool? Interop Tools have a registry search but it doesn't search as assumed.
_AndyAndy_ said:
I suppose it's a memory issue. Can plz someone verify it? All my devices have 1 GB RAM and stop at 25/26 tile groups.
Click to expand...
Click to collapse
2GB RAM (Xiaomi Mi4): 25 folders is maximum
adijagiel said:
2GB RAM (Xiaomi Mi4): 25 folders is maximum
Click to expand...
Click to collapse
Thx a lot! Sounds good. Should be an artificial pre-defined limitation.
Anyone, how is it possible to export a W10M registry?
_AndyAndy_ said:
Anyone, how is it possible to export a W10M registry?
Click to expand...
Click to collapse
You can copy registry hives from Windows\System32\cache. I don't know if you need unlocked Bootloader and MassStorage mode, or only mtp usb hack, if you want I can send you mine
adijagiel said:
You can copy registry hives from Windows\System32\cache. I don't know if you need unlocked Bootloader and MassStorage mode, or only mtp usb hack, if you want I can send you mine
Click to expand...
Click to collapse
Pardon, but there is no such path. Spent some time to check different locations, couldn't find the registriy cache...
However I probably found the place where tile configuration is stored:
Phone\Data\Users\DefApps\APPDATA\LOCAL\TileDataLayer\Database
Can somebody plz verify it? I couldn't copy or open them.
A link (regarding W10 desktop) says: "Windows 10 Start screen or Start menu configuration are stored in a database file named vedatamodel.edb, which is always locked or in-use by the system when you’re logged on and can’t be copied." http://www.winhelponline.com/blog/backup-start-menu-layout-windows-10/
_AndyAndy_ said:
Pardon, but there is no such path. Spent some time to check different locations, couldn't find the registriy cache...
Click to expand...
Click to collapse
Sorry, typo , i mean "config" :/