Skip to content

Tag: android-studio

i can’t reference a String that exists

Im trying to run this code: but the R.string.default_web_client_id part isnt working (Cannot resolve symbol ‘default_web_client_id’). i know that the ‘default_web_client_id’ string exists, but it isnt at the String XML, its in a generated ‘values.xml’ am i doing something w…

Android Studio calculate total price

I wanna ask how can I sum all patty price and display in the total ? The total is in activity_main.xml layout while all the product price is in view_product.xml . Screenshot of app As you can see the grey color text is per patty price , and the right side black text is price after multiply the quantity of

Why Can’t read data From Database Firebase?

I store name information that was working a few days ago and the information is stored on firebase Realtime, and now you don’t do it, and nothing goes to Database. in my dependencies i Used and in build Gradle (project) Answer In comments we find a problem, you need to add another one SHA-1, or change e…

I cant run the email intent code on my phone

enter image description here the email intent code is completely run in the android mobile model provided by android studio but when I run the code in my personal phone its not work… please answer ?? Answer Don’t forget to set the type of intent so it will trigger email clients