android

How do I get the phone number of a caller in android?

In my application, I programmatically count the phone number of the person who calls me. How do I do this? Which way to look?

Methods that use Context in arbitrary classes

I am studying Android development and came across a question. Let's say I create an arbitrary class and there I need to call ... se the findViewById method. What to do in such situations? Is it reasonable to pass Context to the constructor of this class?

Sending bits via Bluetooth to Android studio

I just started learning Java and the Android studio development environment. This is my first question, so don't judge me har ... ng the people who will answer there will be gurus of their business, at the same time I would be very happy to be criticized.

How do I find out and change the java version in Android Studio?

In Intelij IDEA, you can do this by going to Progect Structure-Progect (if, of course, I correctly interpret what I see): But in Android Studio, when you follow the same path, there is a completely different information:

How to do it раскадровку.GIF for animation in an Android project?

Suggest a free program that can be broken down .GIF to separate files i.e. frames.

How do I compile apps on Android?

Can someone tell you step by step how to compile some code (for example, in C++) on Android? I have no idea about this, but I know that it is quite difficult.

What technology stack is needed to get a job as an Android developer?

I write applications for Android in java. At the moment, I have written several not very complex applications. But the probl ... to study in order to be hired in this specialty There is not much information on this subject on the Internet Please tell me

Measuring the distance traveled in a day gps android

Guys, please help me out. You need to determine how much a person has traveled/passed through using GPS approximately per day ... ery good, because the gps icon will annoy the user. And the purpose of my application is to make the user feel good and calm.

How can I make a custom Spinner? (photo inside)

I manage to make the outgoing list appear on top of the initial line, but I need it to go below it (as in the picture). How do I do this? And how can you set the arrow on the right, and that it turns down animatedly when you click on the spinner?

find out the color of the view in android

There is some kind of view element that sets the color with the slider. how do I find out the code for this color? ColorDra ... the decimal system, which, if output to the logs, does not give anything (well, or I do not use it correctly) Help please ;)

Lru Cache clear data

Hello everyone Used LruCache to cache multiple images. Who knows how to remove these cached images from the cache now?

Retrofit. POST. Android. Kotlin

There is a POST request to the server using the Retrofit library. If the request is successful, a certain object with data is ... d()) .subscribe({ view.onSuccessful() }, { view.onFailure(it.message!!) }) }

Android Studio can't see the phone over usb

Xiaomi Redmi Note 7 Pro, usb debugging is enabled, the device is displayed in Troubleshooting, but when I launch it, there is no device in the "Select Deployment Target" window. What is my mistake?

Roadmap for learning Java/Android

I am 30 years old, I do not work in the field of programming. I studied PHP on my own, wrote simple sites or there NodeMCU (A ... ion? 2. At what stage should I switch to Kotlin (or learn it in parallel with JAVA) 3. What would you fix or advise? Thanks!

Sending data to the arduino and transmitting data to the mobile app via Bluethooth

There is an Arduino running line project, I'm trying to implement an Android program for it. There is a part of the main cod ... te(4, thisLength); for (byte i = 10; i < thisLength + 10; i++) { eeprom_update_byte(i, runningText[i - 10]); } }

Kotlin String format

I'm making an application and I want it to output 70% in textView for example. To do this, in resourse in string I wrote it l ... m within the same library group prefix (referenced groupId=androidx.core with prefix androidx from groupId=AsyncTascRetrofit)

Vk api how to display last name, first name

Vk api I do for example link text. I get a response in the form of link text How to display only the last name, first name

How to set the cursor on an entry with the entered ID in SQLite

Good afternoon! There is a table with records in sqlite. In Activiti, I have to display the entry on the screen in the prepar ... umnIndex("date"); int monthColIndex = c.getColumnIndex("month"); int yearColIndex = c.getColumnIndex("year"); .... and so on

Google at i/o 2013 presented Fused location provider, now only use it?

In general, what kind of fruit is extremely little known and there is no information on it on the Russian-language Internet, ... it would be great if everyone would speak out about what they understand by Fused location provider and how it can be used.

Ban on app deletion

There is an application and it is necessary to impose a ban on its removal. There is an idea to install it in some folder, and assign read-only rights to this folder under the root. What ideas do you have?