[Q] How to increase frequency of input events? - C++ or Other Android Development Languages

Hello!
I've started toying around with android app development and decided to code a drawing app that can use a stylus (I have a galaxy note 3). First thing I did was to implement a naive drawing machanism. What I do is I create lines from the motion events that I get, including the event history (getHistory*() funcions), expand them to rectangles and render lines with varying widths according to the pressure with the help of a fragment shader and a framebuffer. I've noticed that when using other drawing software (Sketchbook for Galaxy, S Note), I get smoother curves. By which I don't mean the anti-aliasing, but a higher amount of "key points". First thing that came to mind was that those programs interpolate the events to generate smoother lines - the points appear to be about 2x as dense. But then again, it's possible that they somehow get more input events because the processing is faster.
I don't have much experience with android, so I thought I might ask around if it was possible to increase the amount of input events that I get, and if it is, how? Or does the amount of events depend on processing time or do they just land in the history if the process was busy?
Here's what lines in Sketchbook and my code look like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

[App] MyScript Smart Note

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Link to app on Google Play:
https://play.google.com/store/apps/details?id=com.myscript.smartnote
This looks like a very promising note taking app. Watch the video on their Google Play site.
Unfortunately, it is showing as incompatible to the Note 10.1 (2014). I have contacted the developer, and I suggest you do the same to nudge them.
[Edit] Play store installation is working now. Their support team is awesome, and respond very promptly.
Yes, promising but some things to be ironed out including sync across devices and conversion of handwriting to type. Main advantage I found over a note is the resizing and merging of paragraphs.
Btw, installed fine on my Note 10.1 2014. Had some problems after installation as the ink kept vanishing. Was resolved by turning off forced GPU rendering under developer options.
Conversion of hand writing to type font is working fine for me. You need to activate it on the panel where you select pen color.
I wish there is an option to turn off pressure sensitivity when hand writing. Also, the option of disabling the two touch buttons by the home key would be nice.

Is there a simple way to apply a custom ICC profile to a rooted android smartphone?

While looking around, I have noticed a number of applications which allow for basic RGB, contrast, and saturation controls, but I have not found anything that could allow the global loading of something more like an ICC profile.
Many colorimeters and spectrometers compatible with applications such as displayCAL, allow you to test and generate calibration profiles for mobile devices, which can better account for any non-linearity in how the display reproduces color.
With this in mind, has anyone been able to load a custom calibration curve on an android device?
e.g., loading an ICC profile to make the following adjustments
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So far compared to basic RGB adjustments, an application such as colortrue which can do a more in-depth calibration can bring out better results with more accurate colors.
I'm searching for a solution for years now. I had the same idea. Using displayCal with my spyder4 to fix the colors of my phone. How we can apply custom icc profile? Anyone that can help?
AFAIK Android Oreo and later provides new support for color management. Before Android Oreo, applications used the sRGB color space. There's a reason for this: low-end hardware.

Constant High Disk Write Activity for No Apparent Reason

I own an Asus Zenfone Zoom that occasionally experiences a random high (internal/system) storage device write activity. It won't stop until I restart it. What's really frustrating is that I cannot track which app uses the memory chip, because the system monitor doesn't provide such information. There are no system monitoring apps that can make such information (the disk usage per and by app) available; I can only see the chip having a high write rate, but I cannot track which app does that.
The occurrence is apparently random - it happened one time after I used the camera and one time, recently, after I plugged the charger in. It stays somewhere between 50 and 100 KB/s and it causes a bit of lag - just some dropped frames; it doesn't affect the performance consistently but it's obviously abnormal and anyone would want it fixed.
I attached a screenshot taken from the app Simple System Monitor. I used more system monitoring apps and all of them provide the same results, so it's definitely not a matter of monitoring app malfunctioning,
Does anybody experience the same thing or it's just me? I'm looking forward to a solution. Thank you!
Operating system - Android 6
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Customisable sports (running) screens

Hi all,
I read with interest the threads about updated ROMs and custom watch-faces, but I do not see anything similar for the sport screens?
Currently, for running I have the choice between 4 fields and 6 fields. I find these really difficult to read whilst running.
Much better to have a single field, or a couple of fields and the ability to scroll between them?
I have found if you disable enough of the stats, the screen will display 3 fields. I have this set to time, distance and pace but even then, time *must* be the first field on the screen regardless of it's position set via the app.
Would there be any possibility to design custom screens for the sports pages?
If you choose your sport activity and start it, there's an option to swipe left right, to see just one field. At least in New 2.0 and above update
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my POCOPHONE F1 using Tapatalk
Select in the activity settings a "real time stats" like pace, hr or speed. It will appear as a single field page after starting an activity.

[APP][Android Studio] How to make buttons that are rounded on only one side?

Hi XDA community
Currently I'm trying to implement a simple add-subtract button pair into my app, but for it to look how I want it to, I need to round only the left edges for the left button and only the right edges for the right button.
Also, once a certain limit is reached (f.e. you can keep adding 1 until you reach 10 / you can keep subtracting 1 until you reach 0), the corresponding button should gray out.
Here's a sketch of how I want it to look like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I can handle the logic for the adding, subtracting and graying out, but for the selective edge-rounding I've found nothing so far.
Can you help me?
So I just asked a classmate and the answer is pretty elegant.
You first need to create a new layout resource file with a <shape> element as the base.
Then, you use "android:topLeftRadius" and the like to make a shape and pass it to the button like this: 'android:background="@drawable/rounded_button_left"' with "rounded_button_left" being the filename of my layout resource file.
Hope I could help someone

Categories

Resources