When developing Madoka diaries, when exporting and importing functions, I want to steal a lazy export, use Gson to transform Java objects into JSON and put them in txt, and then turn JSON into javaBean when importing.
The database I use is Litepal directly engage in, the advantage of using this library is fast, convenient, suitable for beginners.
But in fact, SQLite's syntax and some other statements are not difficult, so using this library is for convenience.
When you use Litepal to store data, you need to call the save () method.
I encountered a problem here. Obviously, the save () method returns true, but there is no data to store in the database.
This is called Gson to convert JSON to JavaBean object.
Obviously, the content of Diary is correct. I started asking about "Niang".
As a result, I didn't find any articles that were directly related to my question. As a result, I saw someone in Tucao setting getting, and I thought it would be because I didn't call Diary's construction method.
Diary, as a Litepal, is inherited from LitePalSupport. Is it because there is no way to call LitePalSupport?
Last articleAnalysis of Shizuku source codeI have probably passed the application from ShizukuService to SystemService.At the end of the article, I mentioned only.Moe.shizuku.serviceThe main method of Starter, which is wrapped under the Java class, starts the whole ShizukuService, so we can happily call the API of Shizuku.
Next we need to go deeper into the Navtive level.I want to know who is calling the main method of Starter.How to call it?
The last update was six months ago.I don't feel like 2019. Nothing has been done. Nothing has improved.
Unconsciously, it is another new year. 2019 is last year, and 2018 is the year before last.
We haven't had much snow this winter. I remember that once I got snow, it melted quickly.
Infectious diseases have also appeared in China. So far, more than 5000 people have been shot.Now do not let go out, relatives have not finished, and now every day at home nest.But the advantage is that we don't have to go to school.。
This year's CCTV Spring Festival Gala also did not see it. BiliBili also made a new year's offering. It's a year after year, but I'm not interested in watching it.
Recently, the magic girl has been watching slowly.In January, there was nothing new to expect. There was only one favorite: a scientific battery gun T, after all, I was in the pit.Another is the degree of invasion, I do not like the current plot, the only thing I like is OP.
Oh, in fact, there are also Acfun Darwin games that can only be broadcast.(because I like women's character)
Conclusion: in the month, Xin Fu liked only one song and one song.
I feel more and more meaningless. It may also be a change in my mindset. Now I have been looking at the old days.