Skip to content

Instantly share code, notes, and snippets.

@meeDamian
Created February 17, 2012 15:54
Show Gist options
  • Save meeDamian/1854124 to your computer and use it in GitHub Desktop.
Save meeDamian/1854124 to your computer and use it in GitHub Desktop.
Service in TabActivity - News Activity
package com.example.app;
import com.example.R;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.Toast;
public class NewsActivity extends ListActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.news_list);
ListView lv = getListView();
// How to reference to mService.pastafarianism() from here ?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment