Category : line

I know it might be something very easy but is just something that I don’t know. In my code when I write "FirebaseInstanceId" or "getInstanceId()", they are crossed by a line in the middle and the code doesn’t work. If there is someone to explain me I’d be very thankful. FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(task -> { if (task.isSuccessful() ..

Read more

Consider the following web page, which is a simple demonstration of how to use record and playback features inside a browser: https://ai.github.io/audio-recorder-polyfill/ It should work just fine, out of the box. The problem is, that when this link is sent through some Android application, e.g. Messenger, and open it by clicking, it stops working. Messenger ..

Read more

I’m trying to figure out how to define a vertical line (1dp thick) to be used as a drawable. To make a horizontal one, it’s pretty straightforward: <shape xmlns:android=”http://schemas.android.com/apk/res/android” android:shape=”line”> <stroke android:width=”1dp” android:color=”#0000FF”/> <size android:height=”50dp” /> </shape> The question is, how to make this line vertical? Yes, there are workarounds, such as drawing a rectangle ..

Read more