How To Create, Start, Stop Android Background Service
Android background service is an android component that runs in the background. There is no GUI for users to interact with the android background service object directly, it is usually started in android activity and runs in the same thread of the activity. When users quit the android-activity, the android background service will also exit …
How To Create, Start, Stop Android Background Service Read More »
How To Create Scrapy Project To Crawl Web Page Example
Scrapy is a Python library that can be used to crawl web pages and extract the web page elements by XPath or CSS selector in python code. This article will tell you how to create a Scrapy project and how to implement the Scrapy related classes in the project to crawl and extract a job …
How To Create Scrapy Project To Crawl Web Page Example Read More »
Android Foreground Service Example
Android foreground service is an android service object. It always runs in the foreground, this can avoid service objects being recycled by the android system when android os does not have enough resources. Android foreground service can interact with users through notification. It is usually used in a music player, file downloader, etc which user …
Python 3 Matplotlib Draw Point/Line Example
Python matplotlib module is used to draw graphical charts. This article will tell you how to use matplotlib to draw point and line. But before you can use it, you should make sure it is installed. You can open a terminal and input the below command to check, if there is no error message print …
How To Run Node JS Server In Background
When you use Node JS to implement an HTTP / HTTPS web server, you always follow the general steps as below. But if you close the terminal or kill the node process unexpectedly, the HTTP web server will stop also. This article will tell you how to avoid such an issue and make the node …
How To Use Scrapy Xpath Selectors To Extract Data In Scrapy Shell
This article will tell you how to start Scrapy shell debugging tool to extract the information on a web page. How to simulate a real web browser to send a request to a web server by specifying User-Agent header value. It will also tell you how to extract web element value use xpath in Scrapy …
How To Use Scrapy Xpath Selectors To Extract Data In Scrapy Shell Read More »
Passing Data Between Activities Android Tutorial
When you develop an android application, you always need to pass data between activities. And even more, you sometimes need to pass data between all activities for example pass session-id, user-name, and password. In this article, I will tell you how to use android Intent or Application object to pass data between activities.
How To Get Real File Path From Android Uri
The previous article Android Pick Multiple Image From Gallery Example has told us how to browse an image gallery to select and show images use Intent.ACTION_GET_CONTENT intent. In that example, we save all user-selected images android file path URI in a list. Then we display those images one by one.