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 ..

Read more

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 ..

Read more

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, ..

Read more

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 ..

Read more

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"> ..

Read more