skip to Main Content

Android Studio – How to save number from EditView in another integer in kotlin

I'm pretty new to android so I will try to explain this the best way I can, so I have a EditView in an activity I created like this: <EditText android:id="@+id/num" android:layout_width="230dp" android:layout_height="61dp" android:inputType="number" android:background="@drawable/border" android:layout_marginTop="25dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.502" app:layout_constraintStart_toStartOf="parent"…

VIEW QUESTION

Android Studio – How to open both WhatsApp and GB-Whatsapp using an Intent in your Android App

I want to open chooser for both whatsapp and gb-whatsapp so the user can choose any of one from them. This code is only opening whatsapp only. Intent intentWhatsapp = new Intent(Intent.ACTION_VIEW); String url = "https://chat.whatsapp.com/JPJSkaiqmDu5gLKqUPAfMM"; intentWhatsapp.setData(Uri.parse(url)); intentWhatsapp.setPackage("com.whatsapp"); startActivity(intentWhatsapp);

VIEW QUESTION
Back To Top
Search