Skip to content

Tag: android

Change text in button

I need to make it so that if a user clicks on button_apple and doesn’t click on it for 3 seconds, its text becomes so superfluous. And if anyone knows why my text changes in button_apple, but not in button_cherry. Tell me, please. Answer You’re setting the listener on your apple button. The cherry…

Android Studio php connection

I’m trying to get information from db using php in android studio java. The php code works 100%. The problems is that when I open the app from the Android emulator the app closes itself almost instantly. This is the error message I get in run Logcat is empty The Build is also error-less From what I see …

How to share image via intent in android 10

I’m fetching an image from a URL as a bitmap using glide, and onResourceReady() I’m trying to share the image via intent, but I’m getting an exception. I’m using Android 30. My method for providing file URI. Source MY Error I also tried using the IntentShare Library But there I was get…

when I click on the button the app crashes

Here the error: java code: xml file: when I click on the button the app crashes Using tabbed activity from android studio example whit legacy android studio libraries Any help is welcome Answer You can not use android:onClick attribute in fragment layout unless you create it in the activity class, not the fra…

my intent in navigation drawer is not working

When I tap on any item of in navigation drawer ,instead of going to new activity , the drawer toggles. MainActivity : this is my mainActiviy.xml code where i have usedNavigation View I have checked my code many times but not able to find the mistake…it would be great help if someone helps me in this Tha…