I am trying to start android service from service class. The reason for this is to achieve some platform independence.
By doing this, I get a NullPointerException in the file android.content.ContextWrapper.startService (ContextWrapper.java:326). The purpose of the platform is 2.1-update1, any suggestions?
See the code below (I left the import to save some space)
package com.example.helloandroid; public class HelloAndroid extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);
source share