I don’t have any errors but still my data is not showing in android emulator, I passed it in mainactivity but still it displays blank screen,Someone help me to solve this issue. I gave internet permission to display images. Is this androidx jetpack problem because it is happening for me many times while…
Tag: android
Java IOExeption reading file android
I’m trying to get an Opengl es app working and I’m currently working on the shaders. To do that I need to open tow text files situated in src/shaders/ Here is my code: private static int LoadShader(…
Using RecyclerView and getting information from Web services but not displaying answers and I’m not getting any errors WHY?
public class MainActivity extends AppCompatActivity implements LoaderManager.LoaderCallbacks<List> { private static final String GOOGLEBOOKURL = “https://www.googleapis….
Can’t get custom Object from Firestore
I’m trying to create a custom object from a document in the Firebase Firestore. Whenever I try to use the User object, I get a NullPointerException on the user object: I call getUserFromFirebaseUser here: Here is the User class: I’m relatively new to using Firebase with Android. Any help is apprec…
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed Couldnot figure out what the error says
I have got stuck in the above-mentioned error message in Android Studio. My Database is a simple one 1st column: Name TEXT PRIMARY KEY 2nd column: Price TEXT I have already gone through the answers to the same question in StackOverflow but couldn’t resolve the error. I am quoting my DataBaseHelper class…
java.util.ConcurrentModificationException when removing elements from arraylist even with iterators
I’m trying to delete content from two arrayLists when a particular condition is satisfied. But when the condition satisfied I get Concurrent modification error. After searching on internet I saw the solution to fix this using the iterator concept but that also doesn’t work. Here is the two code va…
Kotlin App open activity 2 with button CRASH
so this is the error in the logcat however when i try to declare “CreateNoteFragment” in the manifest only the .MainActivity & .SplashScreen appear and does not let me declare the .CreateNoteFragment my CreateNoteFragment also references “BaseFragment” activity as such below error.…
AndroidViewModel has no zero argument constructor. How to solve this?
I’ve searched for my problem nearly whole the Internet and couldn’t find the answer, which I need. Yes. My question is not unique, but there was no answer, which could help me. So I decided to ask it myself. Now about the problem: ………………………R…
TextView lost after onPause()
I’m learning how to add elements to LayoutParam. I add a TextView element after each click to “`LayoutParam“. my problem is when i press the Home Button and i open the app again, i don’t see any elements. as they have never been. Answer Are you recalling the send() method in the onResu…
Manipulating and comparing dates with GregorianCalendar and can’t get the code to work properly
I’m struggling to find the error in my code here. paytotal is coming out 0 when it should have a number. firstDayOfPaycheck is the date Oct. 23rd 2020. lastDayOfPaycheck is the date Nov. 6 2020. My Simple date format sdf is “MMM dd, yyyy”. string dateInQuestion passed into runPayroll is R…