when i try to build my android project i get this errors Error:(8, 37) error: package android.support.design.widget does not exist Error:(18, 9) error: cannot find symbol class TabLayout Error:(18, 32) error: cannot find symbol class TabLayout Error:(21, 33) error: cannot find symbol variable TabLayout Error:…
Tag: android
Android Create Calendar Event always as Birthday
I have a strange issue when I create a calendar event programmatically its always noted as Birthday Calendar (type) I don’t have any clue why its noted like that. My code I use is as below: Xamarin C# Please does someone has any tips or ideas which can point me to the right direction? Thanks in advance.…
How to launch Telegram app from my own android application?
I have an android app that should be able to open a chat in the telegram app by pressing a button. I want to open an existing robot chat page DIRECTLY from my app. I have a valid token for my robot. How can this be achieved? Thanks in advance. robot name : @InfotechAvl_bot robot token: 179284*********** Answe…
Capitalize every word in Edit text while typing
I want to capitilze every word in edit text while typing. My XML:- Now I am using But problem is it is not working in some device. Ex LG tablet. So I decided to do this programatically. So I am using following codes. Here my app getting crash. I found the problem while debugging. Problem is the onTextChanged …
Android Studio FloatingActionButton error
I installed Android Studio yesterday, and after battling multiple java and other errors, I have come to an error that I cannot seem to fix. I have not added anything or done any code, I have simply just started a new project and I get this error in the Preview over the phone: Rendering Problems: Followed by a…
exception android.support.multidex.MultiDexApplication cannot be cast class
I have a problem, my app generate this exception,and i don’t understand. I have implement the multiDexEnabled in my build.gradle My Class Java } file Gradle Manifest.xml Answer I think you should extend the AnalyticsApplication class into your own class, like this: After this, you must change your Andro…
How can i remove unnecessary top padding in cardview?
I managed to implement Cardviews in my app, but the cardview show an unnecessary padding in the top. What i want to achieve is to get a header image like this : Here’s my cardview Layout file : This is the code of the RecyclerView : android:layout_height=”match_parent” android:padding=”…
Retrofit: How to wait for response
I have AsyncTask and the doInBackground method inside which, I sending POST request using Retrofit. My code looks like: The problem is: Retrofit sending request asynchronously and while it, the doInBackground method returning the value. So I need to send a request in the same thread with all executions in the…
How do I add a shadow beneath my action bar in Android?
I’m trying to get a shadow to appear beneath my action bar, but for some reason the shadow continually appears and begins at the very top of the screen, instead of beneath the action bar. I’m using a CustomView android.support.v7.widget.Toolbar action bar widget in each of my xml layout files. How…
Does Glide have a method for loading both PNG and SVG?
I’m using Glide to load some images asynchronously into some of my ImageViews, and I know it can handle images like PNG or JPG as it can handle SVG. Thing is, As far as I know, the way I load those two kinds of image differs. Like: Loading “normal” images Loading SVG And if I try to load SVG…