Attempting to follow basic How to connect Android with PHP, MySQL tutorial: application crashes - cannot import android.os.StrictMode
问题 Ok - so I'm using the following tutorial: "How to connect Android with PHP, MySQL" However almost everyone who attempts the tutorial (judging from the comments) is having force close issues due to the application only being designed to run on API level 8 or earlier. Several users have developed a fix for this involving adding the following lines of code in EditProductActivity.java file // this part only to identify where to put the working code public void onCreate(Bundle savedInstanceState)