[android-developers] Re: moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-04 Thread Flo
Oh, now I see what you meant by passing the parent activity.. no idea, why I didn't understand it first, guess I shouldn't program more than 6h without a break :D However, if anyone comes across the same problem as I did, just pass the activity to the class constructor like this: public class

[android-developers] Re: moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-03 Thread Flo
Okay, so my suspicion was right! How can I achieve passing the parent activity to it? Does this involve Intents? Or should the CPAddressbook simply extend the parent activity? Thanks for your help so far, Flo. On 3 Jan., 02:17, Dmitri Plotnikov dplotni...@google.com wrote: Actually, no need

[android-developers] Re: moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-03 Thread Flo
Okay, so my suspicion was right! How can I achieve passing the parent activity to it? Does this involve Intents? Or should the CPAddressbook simply extend the parent activity? Thanks for your help so far, Flo. On 3 Jan., 02:17, Dmitri Plotnikov dplotni...@google.com wrote: Actually, no need