I have an URL, I download the image in it and convert it to bitmap. I want to download the bitmap in the internal memory of the cellphone to be in the gallery. I found solutions but includes SDcard and I need to save the image even if the cellphone doesn’t have external memory. How can I achieve that? A…
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 …
Displaying notifications at a certain time with Android Studio
I’m pretty new to Android Studio and Java in general. I’m trying to build an app that, based on whether a checkbox is ticked in the app’s settings menu, will display a notification everyday at 8AM. I’ve figured out how to display the notification, but not how to trigger it at 8AM. This…
How do I search for a particular object within an array of JSON objects using postman
How do I query for a particular BusStopCode from within a JSON object in a JSON array for example if I want to find only the first object then the bus stop code I would query is 01012 my current URL query request looks like this- http://transport/dataservice/BusStops?BusStopCode=01012 here http://transport/da…
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…
how to convert findElementByAndroidUIAutomator in Page Factory Format for Appium
I am currently designing Appium Android framework based on page object and page Factory. I have a below line of code which uses “findElementByAndroidUIAutomator”. I wanted to convert it to page Factory format like below example. As I checked I didn’t not find any definite answers regarding t…
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…
How to get arraylist from recyclerview adapter in android kotlin
I have recyclerView which is having multiple items. Every item is holding a checkbox to select that item. I want to get the selected item in another ArrayList and pass it to my MainActivity. On accept click I called getselecteditem() but getselecteditem() function always returns null. Here is my adapter code.…