Im attempting to analyze a memory leak that has been driving me crazy for weeks, I found out about the eclipse MAT tool that helps you to figure out what is wrong, the problem is every single tutorial I have found says that I need to convert the format of the file from dalvik to HPROF format, however not one single tutorial I can find explains how to actually do it, instead I get vague things like this
In my current understanding, an Android DP is generally displayed at the size of one pixel on a 160dpi screen, while the CSS px is defined as a visual angle. So does a px happens to be the same as a dp when seeing in some distance? If so, is that a common pattern to use px as dp in css, or did I completely misunderstand the CSS code?
To convert dp to px you need to take account of the display dimensions you are addressing to. The greater the DPI, the more pixels you'll have to cram in the same area to make it look good and to avoid pixelation:
Android automatically scales down images if it finds that the used device resolution is lower, so you are safe to develop with XXHDPI in mind, as it addresses the majority of today's high-end devices on the market.
To get an idea of the appearance of a px, imagine a CRT computer monitor from the 1990s: the smallest dot it can display measures about 1/100th of an inch (0.25mm) or a little more. The px unit got its name from those screen pixels.
Although dp is a pure and new unit just for Android, you should make some calculations in order to adapt the MD layouts which all come in dp. If you want to have some more idea how big will the specific element be in the physical sense the most useful for the purpose of the question is Ideal touch size range value in in Material Design guidelines for specific devices ** Below the dp value there is a physical one. **The dp value changes, but the physical stays the same.
Imagine an application in which a scroll or fling gesture is recognized after the user's finger has moved by at least 16 pixels. On a baseline screen, a user's must move by 16 pixels / 160 dpi, which equals 1/10th of an inch (or 2.5 mm) before the gesture is recognized. On a device with a high-density display (240dpi), the user's must move by 16 pixels / 240 dpi, which equals 1/15th of an inch (or 1.7 mm). The distance is much shorter and the application thus appears more sensitive to the user.
Getting back to the last dilemma: the css px, if you decide to dive into subtle nuances of different devices. If you are a not so inquiring one, just stick with the Density ratio from the MD table. But if you are a perfectionist, this crux of CSS pixels and physical dimensions relation has a perfect (and pretty simple explanation) in a W3C Candidate Recomendation:
Note: Note that this definition of the pixel unit and the physical units differs from previous versions of CSS. In particular, in previous versions of CSS the pixel unit and the physical units were not related by a fixed ratio: the physical units were always tied to their physical measurements while the pixel unit would vary to most closely match the reference pixel. (This change was made because too much existing content relies on the assumption of 96dpi, and breaking that assumption breaks the content.)
This new definition of px (taking into account the physical dimensions) fills the gap between CSS pixels and dps and lets us make sure that by using simple measurement calculations the so called output environment, which in this case is a consistent (in a physical sense) MD layout, stays the same across different devices and platforms. Moreover, both W3C and MD Guidelines use the low- and high-resolution device pictures to illustrate the core idea of pixel/dots coverage - more device pixels (dots) are needed to cover a 1px by 1px area on a high-resolution device than on a low-res one, which means that the widely used in CSS queries for retina display are indeed the same thing you have to provide (but with more thresholds) for Material Design and all mobile devices.
Concluding, either use the MD Density ratio which is best recommended practice by Google, or if you're fixated on precision or your design needs to be absolutely consistent about physical sizes: use the accurate conversion using ppi/dpi values of the specific or common devices (which is pretty insane), what you can easily test on Google resizer online tool since they respect the common thresholds suggested in MD Guide in the first place and division rules for the ratio and relevant display type names (xlarge, medium and so on) implemented in it.
Im not sure one exists. I know that on Windows you can use Onenote to write text with a stylus and convert it but i cant find the same function, either with the Onenote android app or another android app.
Again, close, but none of these actually let you write with a stylus and allow you to convert. I think there is a gap in the market here ! Some of these take photos and convert / ocr but just not from hand written text onto the tablet
Starting this week, I am unable to open my .txt files with the Dropbox Editor on the Dropbox Android phone app. I am now being presented with the following message:
Upload to View
This file type can only be viewed if it is first uploaded and converted into a Google Docs file. Do you want to continue?
I do not want to use Google Docs for my .txt files. I have tried that provided option, but you then must tie the document to a Google account, and it does annoying auto-formatting and such which I am purposely trying to avoid by using .txt files in the first place.
Is Dropbox editor being deprecated? Is there any way to use another text editor on my device instead of converting to a Google Doc and tying back to a Google account? I am unable to even try to open this document using another editor now, you get the same 'Upload to View' message when clicking the kabab menu too
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
@Nancy Thanks for the quick response Nancy. What is the best way to send over a screenshot? I am not seeing a way to add it to my original post or here in a comment
OS version: Android version 14
Dropbox app version: 358.2.4
Exact message text:
Upload to View
This file type can only be viewed if it is first uploaded and converted into a Google Docs file. Do you want to continue?
If you are thinking that Evernote actually converts handwritten characters into typewritten counterparts, that won't happen. I can't think of any application off the top of my head that has this capability, let alone one that has direct tie-ins to Evernote. The closest thing I can think of might be some product or service offered by Livescribe.
Can you please expand on this comment? I've found that the only place in EN where handwriting is auto-converted to text is when I use the widget and do a quick reminder, and even then it's only the title. I'm not seeing any other place in EN where I can do a handwritten note and convert the handwriting to text. I *do* know that this feature is available in Samsung's S-Note app but I'd really like to stick with putting everything in EN. Are you saying that you use the S-Note feature to create and then send those notes to EN? Thanks!
I dont know how much/if you are willing to pay for an app, but 7Notes has handwriting to text capability and it can export to Evernote. However, this feature is only available in the premium version. I have used it some myself, but converting handwriting to text really wasnt that important to me, so I havent really explored all the possiblities of the app. I am still looking for the perfect stylus/handwriting app myself.
I was having great success since last spring using text note with the stylus on my Note 4 to take notes that converted to text. A few days ago something changes so I can only do that in the title part of the note but when I go to the main note area it only lets me draw or use the keyboard. This change makes Evernote generally useless for me. What happened?
I have a Note 4. If I use the Samsung Keyboard and select the handwriting option, it will convert to text in Evernote. It's a keyboard function, not Evernote. Instead of the qwerty you get a writing area. Hope that helps.
e59dfda104