Skip to content

Tag: android

Add https to missing strings of an array?

I’m writing an app for a client who doesn’t have an official API but wants the app to extract video links from his website so I wrote a logic using jsoup. Everything seems to work fine except some of the links don’t start with https so I’m trying to add it before the URL. Here’s …

i can’t reference a String that exists

Im trying to run this code: but the R.string.default_web_client_id part isnt working (Cannot resolve symbol ‘default_web_client_id’). i know that the ‘default_web_client_id’ string exists, but it isnt at the String XML, its in a generated ‘values.xml’ am i doing something w…

Make HTML anchor links start a new activity in Android Java

I have a String that contains HTML tags which I display in a TextView Now I want those links to be clickable, and not just clickable, but to startup an Activity when clicked. The href attributes have numbers which I want to pass as a parameter to my Intent to start my Activity. I use JSoup to extract the valu…

How to track a touch on the screen

I want to write a penalty shootout application, now I have set up the background and added the ball and the goalkeeper to the map. How do I make it so that when I tap on the screen, the ball follows my touch on the screen. How to do this? How to track the touch on the screen and enter