I am trying to change the text of a TextView an ImageButton click. However, when the button is pressed, the text does not change. I have tried to use TextView tv = (TextView)findViewById(R.id.textView1);. However, I am not able to use FindViewById because I am working with RemoteViews. The text of textView1 is set correctly OnUpdate, ..
Category : android
So I have a table called name_value in a database called cache.db. The database name has a dot in it. When I try to execute the select query in database, I get an error as follows android.database.sqlite.SQLiteException: no such table: cache.db.name_value (code 1 SQLITE_ERROR): , while compiling: SELECT name, value FROM `cache.db.name_value` at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6720) at ..
I want to download about 100 audio files by download manager android studio from my host But the problem is that the app freezes The problem was that all the ricochets were thrown together. I came Solve the problem with the return function and download the files one by one, but the program freezes again ..
I’m trying to add a "copy" button to a settextview. Here is my full code: public class activity_tasks extends AppCompatActivity { private Button button_refresh; TextView textView; TextView textView4; private AdView mAdView; @RequiresApi(api = Build.VERSION_CODES.M) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tasks); MobileAds.initialize(this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) { } }); mAdView ..
I have a bazel-based c++ project that has a dependency on from the external protobuf repo because we use protos. My .bazelrc has an android config that specifies an android config with build:android_arm64 –crosstool_top=//external:android/crosstool (in addition to other things, including –[email protected]_tools//tools/cpp:toolchain) The protobuf BUILD file has an android config that uses the same crosstool_top value, ..
am using android 11 oneui 3.0. whenever am in call in my phone with anyone and i watch a video at the same time (netflix,youtube) etc.. the audio quality of the video is really shit the only way to make it usable a little is by increasing the call audio volume and media volume. i ..
picture about firestore… This is a picture about the buttons… I’m a beginner and I’m trying to do quiz app. When user click the button, if is it true The button is getting green. However I’m trying to do when a question solved before by user. Button should be green already. When solved first time, ..
There is an issue with my pepk file. I tried to use $ keytool -list -v -keystore FILE_PATH_HERE to find my alias and I get Unrecognized keystore format. I corrupted the file by accident. How can I upload a new app version to the play store? What are my options. Note: I still have the ..
I am using the animation in the navigation graph in this way <fragment android:id="@+id/specifyAmountFragment" android:name="com.example.buybuddy.buybuddy.SpecifyAmountFragment" android:label="fragment_specify_amount" tools:layout="@layout/fragment_specify_amount"> <action android:id="@+id/confirmationAction" app:destination="@id/confirmationFragment" app:enterAnim="@anim/slide_in_right" app:exitAnim="@anim/slide_out_left" app:popEnterAnim="@anim/slide_in_left" app:popExitAnim="@anim/slide_out_right" /> But when I use a recycler view in the final fragment there is a strong lag in the transition. I need to hear when the animation between two fragments ends ..
I’ve already seen similar problem and tried all kind of solutions, this is what I ended up with: layoutManagerMemes = LinearLayoutManager( [email protected], LinearLayoutManager.VERTICAL, false ) recyclerViewMemes.setHasFixedSize(false) recyclerViewMemes.adapter = adapterMemes recyclerViewMemes.layoutManager = layoutManagerMemes recyclerViewMemes.scrollToPosition(0) The XML: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#000000" android:orientation="vertical"> <LinearLayout android:id="@+id/linearLayout4" android:layout_width="match_parent" android:layout_height="0dp" android:orientation="vertical" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> ..
Recent Comments