Dmitri Sh
12/29/2019, 1:35 AMTim
12/29/2019, 6:41 PMminucha
12/29/2019, 8:51 PMHistoryActivity
. My video model has name
, authorName
, authorImageUrl
, videoDescription
and every time I download a video, I store the video info in the SharedPreference
so that I can list all the videos with their description in the HistoryActivity
. I am using video’s name
property as an ID to connect the video with its description I stored in the SharedPreference
. However, when user changes the name of the video using other apps, I am losing the ID.
So the question: Is there any way that I can use as an ID for video file or any other file type?Ran
12/30/2019, 7:07 AMkapt
cannot be used in subproject during kotlin plugin 1.3.20?Jonny
12/31/2019, 4:28 AMval gson = GsonBuilder()
.setLenient()
.excludeFieldsWithoutExposeAnnotation()
.create()
val jobAcceptRequest = gson.fromJson(body, JobAcceptRequest::class.java)
The json is this:
{
"Id": 44,
"SenderId": "5d2f80d3-9199-4017-a5df-1d669928a0af",
"JobId": 13
}
And the class:
class JobAcceptRequest {
@Expose(serialize = false)
var id: Int = 0
@Expose(serialize = false)
var senderId: String = ""
@Expose
var jobId: Int = 0
}
I've parsed pretty much the same thing before and it worked fine then. What's wrong here?...Slackbot
12/31/2019, 7:56 AMIan Warwick
12/31/2019, 10:53 AMSlackbot
12/31/2019, 11:42 AMIvann Ruiz
12/31/2019, 5:10 PMarrow-meta
library in a production Android app yet?Will Nixon
12/31/2019, 9:20 PMmending3
01/01/2020, 9:24 AMhomeFragmentViewModel.navigateToDetail.observe(this, Observer {
val action = HomeFragmentDirections.actionHomeFragmentToDetailFragment2()
action.id = id
this.findNavController().navigate(action)
homeFragmentViewModel.navigatedToDetail()
})
when I click on one of my list, it throws me: n`avigation destination myapp:id/action_homeFragment_to_detailFragment2 is unknown to this NavController`
solved by checking the current fragment i'm on firsttrevjones
01/02/2020, 4:35 PMa.c.Intent.getStringExtra
returns a String!
even though it is annotated with android.annotation.Nullable
where as a.os.BaseBundle.getString
returns a String?
as expected based on the a.a.Nullable
annotation that has seemingly no effect on the intent apis?
inference and IDE seem to spot the issue, but the compiler DGAF
-Xjsr305=strict
has no effect here either.
edit: If inferred as non null why does the compiler treat it like a platform type? Is that intended behavior or a bug?Ofir Bar
01/02/2020, 9:39 PMKashif
01/03/2020, 7:19 AMKashif
01/03/2020, 7:20 AMSergey B
01/03/2020, 9:51 AMJoshua
01/03/2020, 6:33 PMJoshua
01/03/2020, 6:46 PMCyberpunk Keanu
01/04/2020, 9:42 AMiex
01/05/2020, 12:02 PMpranaypatel
01/05/2020, 7:53 PMJoan Colmenero
01/05/2020, 10:08 PMERROR: Unable to resolve dependency for ':feature_x@debug/compileClasspath': Could not resolve project :app.
Karolo
01/06/2020, 9:57 AMAslam Hossin
01/07/2020, 2:18 AMHow to convert this Uri /storage/emulated/0/DCIM/Camera/IMG_20200106_121447.jpg to File ?
Praveen Raikar
01/07/2020, 10:42 AMKashif
01/07/2020, 12:10 PMpostMessage
. what is best possible way for it?heehawgr
01/08/2020, 2:29 AMMainFragmentDirections.actionToRegisterLoginFragment("login")
which says too many arguments, what can I do?Joey
01/08/2020, 3:30 AMitnoles
01/08/2020, 3:48 AMjmfayard
01/08/2020, 1:32 PMHow do you setup your MacBook for Android development?Hello professional Android devs! Can you type the following command? $
echo "== brew list == " && brew list && echo "\n== brew cask list" && brew cask list
Which software in your setup,
that you find valuable for a lot of android devs,
are missing from my list?
git fd thefuck tldr kmdr
jetbrains-toolbox android-sdk android-ndk dash github iterm2
firefox android-ndk insomnia github fastlane postman
sketchup visual-studio-code zeplin flycut