Skip to content
Advertisement

Tag: android

Android: CalendarView and Button not able to share data

I’m creating an application that lets user to list down school assignment and the deadline. In the OnClickListerner, the “selectedDate” is highlighted as an error. Is there a way to solve the issue? Answer The selectedDate is defined in another scope so it is not visible for OnClickListerner. You can move it to the onCreate method scope.

How to make a custom-shaped Recycler View?

I need to make a recycler view whose elements will wrap around the ImageView (like this: https://imgur.com/a/7NpCHri). Is there a way to implement this? Answer You can create adapter with GridLayoutManager and for items with indexes 6, 7, 10, 11 make empty transparent views. But as it were said in comment it is not appropriate use of RV. Maybe it

Current time API / Exact time detection via API

Today, for the first time, I am trying to get the right time through the API. I don’t understand‚ please help. I am using the http://worldtimeapi.org/api/timezone/ site to determine the exact time. But I didn’t understand how to use it in JAVA and what codes to write. Please send me a snippet of code or codes. I don’t know what

cannot resolve ‘@GET’ [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 year ago. Improve this question

How to upload file through Android Webview app?

Possible duplicate of : This This This I know, but the reason I still ask this question is I DID NOT UNDERSTAND THOSE ANSWERS. And I also know, that it’s my problem and those contributors did well. Not blaming anyone. I’m a beginner at Android Studio and those answers were definitely not rookie friendly. cause I’ve been starring at them

How to pass value from a fragment/activity to xml?

So I know data can be passed using intent between activities and fragments, but is there a way to pass the value to some XML files? Say, I have the name and email from the login page, and I can pass it from from loginActivity to mainActivity (navigation) panel, but is there a way to pass it to strings.xml in

How do I pass ArrayLists to another activity, modify it, and return it back to use?

I’m trying to create a login/register part of a project, and I’m having trouble with passing the sign-up information back to the login activity. I initialized username_info, password_info, and name_info in MainActivity, and I want to send it to SignUpActivity through Intent. After values are added in the other activity, it’s sent back like this (the arraylists have the same

Advertisement