[android-developers] Re: Making a persistant content observer

2009-07-13 Thread jrgraf...@googlemail.com
tion can be noticed by the user and allows him/her to > start your activity. > > On Jul 10, 10:14 am, "jrgraf...@googlemail.com" > > wrote: > > Hey guys, > > > Quick question: I am trying to make a permanent contentObserver that > > observes content://sm

[android-developers] Making a persistant content observer

2009-07-10 Thread jrgraf...@googlemail.com
Hey guys, Quick question: I am trying to make a permanent contentObserver that observes content://sms. The way I do it atm is have an initial configure Activity with my application that calls the following code: ContentResolver contentResolver = getContentResolver();

[android-developers] Installing USB drivers on Vista 64 bit

2009-07-05 Thread jrgraf...@googlemail.com
Hey all, I am currently having issues installing my G1 in development mode on Vista 64 Premium SP1. I have tried both installing the drivers that come with the latest SDK and also the ones here: http://forum.xda-developers.com/showthread.php?t=446274. Whenever I plug the phone in it comes up as

[android-developers] Re: Dynamically getting application context

2009-05-14 Thread jrgraf...@googlemail.com
xtend your class constructor to require a context and > use that object to get your preferences, you probably want to use the > application context for such a thing. > > Or for a more general solution, you can tell your extended class to > broadcast an Intent and who ever

[android-developers] Dynamically getting application context

2009-05-13 Thread jrgraf...@googlemail.com
I am currently encountering issues when extending the GPS LocationListener class. The issue that I am seeing is when I get an update via onProviderEnabled(String provider), I am unable to change the SharedPreferences used by my application. The problem here is that since I am not passed a context

[android-developers] Re: Get result from settings activity intent

2009-05-05 Thread jrgraf...@googlemail.com
to settings > and change something without you being aware.) > > On Tue, May 5, 2009 at 2:29 AM, jrgraf...@googlemail.com < > > > > jrgraf...@googlemail.com> wrote: > > > The problem I have here is that after the setting is updated in the > > configura

[android-developers] Re: Get result from settings activity intent

2009-05-05 Thread jrgraf...@googlemail.com
wrong way? Thanks for all your help! -James On May 4, 3:48 pm, Mark Murphy wrote: > jrgraf...@googlemail.com wrote: > > I am currently trying to launch a GPS settings activity using > > startActivityForResulthowever it never seems to be calling my > > onActivityResult fu

[android-developers] Get result from settings activity intent

2009-05-04 Thread jrgraf...@googlemail.com
Hey all, I am currently trying to launch a GPS settings activity using startActivityForResulthowever it never seems to be calling my onActivityResult function after it exits. I noticed the docs mentioned that some Intent protocols are not defined to return a result, is this one such example?

[android-developers] Re: Pending intent not detecting onCreate

2009-04-29 Thread jrgraf...@googlemail.com
. > > You'd probably want to keep the number of layers to a minimum to keep it > speedy. > > j > > On Wed, Apr 29, 2009 at 3:40 AM, jrgraf...@googlemail.com > > > > wrote: > > > Thanks for your reply Jeff, > > > Turns out what I really nee

[android-developers] Re: Screen Orientation.

2009-04-29 Thread jrgraf...@googlemail.com
ting, just the > keyboard hidden state changing. > > Am I missing something? > > On Tue, Apr 28, 2009 at 5:36 PM, jrgraf...@googlemail.com < > > > > jrgraf...@googlemail.com> wrote: > > > Hey Dianne, > > > Thanks for your reply, below is a s

[android-developers] Re: Pending intent not detecting onCreate

2009-04-29 Thread jrgraf...@googlemail.com
lso, if you don't have an inside the Activity > definition in your manifest, you might need to add the > android:exported="true" flag. > > j > > On Tue, Apr 28, 2009 at 5:52 PM, jrgraf...@googlemail.com > > > > wrote: > > > As a side note I also

[android-developers] Re: Pending intent not detecting onCreate

2009-04-28 Thread jrgraf...@googlemail.com
, "jrgraf...@googlemail.com" wrote: > I have the following code in a static function in my application > widget: > >                 Intent defineIntent = new Intent(context, > ToggleIntentActivity.class); >                 PendingIntent p

[android-developers] Re: Screen Orientation.

2009-04-28 Thread jrgraf...@googlemail.com
> you are doing), I can't help any more. > > On Tue, Apr 28, 2009 at 7:23 AM, jrgraf...@googlemail.com < > > > > jrgraf...@googlemail.com> wrote: > > > The problem for me though is that the constants returned never change > > after I set a preferred

[android-developers] Pending intent not detecting onCreate

2009-04-28 Thread jrgraf...@googlemail.com
I have the following code in a static function in my application widget: Intent defineIntent = new Intent(context, ToggleIntentActivity.class); PendingIntent pendingIntent = PendingIntent .getActivity(context, 0, defineIntent, 0);

[android-developers] Re: Screen Orientation.

2009-04-28 Thread jrgraf...@googlemail.com
by the constants described in the java docs (NOT the > SCREEN_ORIENTATION_* contantgs). > > On Mon, Apr 27, 2009 at 4:05 PM, jrgraf...@googlemail.com < > > > > jrgraf...@googlemail.com> wrote: > > > I cant seem to get current orientation via either: > > > g

[android-developers] Re: Screen Orientation.

2009-04-27 Thread jrgraf...@googlemail.com
I cant seem to get current orientation via either: getResources().getConfiguration().orientation or (WindowManager) getSystemService(WINDOW_SERVICE).getDefaultDisplay ().getOrientation(); after setting up a preferred orientation via: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDS