JAVA

[JAVA] FetchURL

Have been trying to fetch the complete novel from URL and import into text file Targeted website: http://www.dongliuxiaoshuo.com/n/1438.html Try to fetch targeted path in source code: (*simple increment is not working here as some of the number were changed afterwards) Targeted text is enclosed by div tag in each single page (eg. http://www.dongliuxiaoshuo.com/n/1438/907700.html ) Source code developed (imported into text file: resultUrlString.txt)…

Continue Reading

Android

[Android] Spinner

 

Android

[Android] Saving data – SharedPreferences

SharedPreferences is a pure String file stored in the application folder, it is used to store local data without connecting to a server.   For both Save & Load, we need to implement:

Saving into SharedPreferences:

Loading from SharedPreferences: