Skip to content
Advertisement

Tag: android

Why cant I initialize the Webview

im just starting out with android studio, i have imported WebKit but those imports are grayed. and i cant initialize the webview “private WebView webview” shows errors how to do it correctly? Answer I was using kotlin instead of java that was the issue (beginner mistake lol) my issue was that i couldn’t initialize the webview on my code. but

Arrays.asList() how to append String value to each item

I’m reading getting the names of all the images inside a subfolder of my assets folder. I then want to concat a String before each one. Is there a way to do it inside my method getPreviews with Array’s .asList() so I can avoid using the loop? Answer Arrays.asList doesn’t allow the creation of Lists from derived items directly. However,

Event Listener in Firestore doesn’t see field updates in documents inside collection. Android, Java

I have next firestore scheme: collection “users” – document user_id – collection “trips” – document trip_id – collection “requests” – document request_user_id with fields: and boolean field <is_accepted> On one of my pages I want to listen to realtime updates of requests: if <is_accepted> changes from 0 to 1(it means user is accepted for a trip). I have written EventListener

How to remove everything from ListView using a button onClick?

How to remove everything from ListView using a button onClick? When i try “fullCourseList.clear();”, I can’t add any more courses and the page is refreshed only after visiting the page again Answer You should save off the adapter so you can call clear() on it. Clearing the list this way will also automatically notify the adapter to update. Since you

Updating notifications after being added

I want to update the content for a reminder after it has been added before being received by the user. After setting a reminder through AlarmManager using the data stored in sqlite database, the notification from the reminder set only shows the data, title and description, that was first added, not any updated data stored corresponding to the ID as

Advertisement