What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-11 08:43:07
Unable to resolve activity for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.nicpic.pltestingall/.HiltTestActivity (has extras) } at androidx.test.core.app.InstrumentationActivityInvoker.startActivity
I got the same error with HiltTestActivity.kt, because I insert the AndroidManifest.xml parallel to the activity file. My fix: Move the AndroidManifest.xml to the java folder. Add solution -
Java 2021-09-30 05:29:02
scala vs java
Scala is a statically typed programming language whereas Java is a multi-platform, network-centric, programming language. Scala uses an actor model for supporting modern concurrency whereas Java uses the conventional thread-based model for concurrency. Sc... Add solution -
Other 2021-09-27 10:03:02
android listview to recyclerview
Import dependency. Replace ListView with RecyclerView. Replace ListView with RecyclerView in the Java file. Update the adapter. Update the ViewHolder. Update the constructor. Override onCreateViewHolder method. Override onBindViewHolder method. Modify get... Add solution -
Java 2021-09-10 16:46:02
find minimum number in array java
// Find minimum and maximum values in a java array public class MaxMinValueInArray { public static void main(String[] args) { int[] arrNumber = new int[]{50, 150, 250, 500, 160, 530}; int maximum = maxNumber(arrNumber); System.out... Add solution -
Java 2021-09-07 05:34:02
android java retrofit offline cache
// i.g siyanda.zama 16.05.20 in the manifest folder <application //dont forget to put the name // create a java file named MyApplication.java android:name=".MyApplication" android:allowBackup="true" android:icon="... Add solution -
Java 2021-08-27 14:14:01
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
Null pointer try to say that the textview is null. That can happen beacause the findviewbyid is not matching with the right one on your xml. Be sure your id matches on your xml and java file Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5