[android-developers] Re: How to use the static fragment library in legacy apps?

2011-03-05 Thread Dan Watling
> > > 2011/3/4 Dianne Hackborn > > > If it helps, ApiDemos has all of the same fragment samples as the ones > >> originally released for HC, but using this library.  You can run them from > >> "App/Fragment Support" in the UI, and the code is the Fragment*

[android-developers] Re: How to use the static fragment library in legacy apps?

2011-03-04 Thread Dan Watling
To get the example working, I just had to manually copy the 'android- support-v4.jar' from '/extras/android/compatibility/v4' into the libs folder of the project as well as add it to the build path. Lessons I've learned in the past few hours while playing with this: - Ensure all of your activitie

[android-developers] Re: Layout Designer in 2.3 doesn't recognize Gallery.

2011-02-04 Thread Dan Watling
I just ran across this issue as well in ADT 9.0.0. Fortunately, it seems to be only a problem with the graphical layout. You can still use it in your app. -Dan On Dec 17 2010, 12:51 pm, Nathan wrote: > The following classes could not be found: >  - Gallery > > Am I doing something wrong is this

[android-developers] Re: User selectable text in WebView

2010-09-07 Thread Dan Watling
FWIW, I was able to obtain the clipboard text by extending the WebView class, adding my own invalidate method, and a callback. The end result was something like this: public MyWebView(Context ctx, AttributeSet attrs) { super(ctx, attrs); mClipboard = (ClipboardManager) context.getSystemServi