[android-developers] Re: How to use the "new" clipboard function?

2011-03-30 Thread Dominik Erbsland
okay found out the "problem":
with honeycomb

ClipboardManager
cm=(ClipboardManager)getSystemService(CLIPBOARD_SERVICE);

is gonna be deprecated. with android 2.3.3 it's still working!
JFYI

On 3月29日, 午後11:23, Mark Murphy  wrote:
> Am Di, 29. März 2011 um 5:10 PM, Dominik Erbsland  
> wrote:> Ich benutze die Zwischenablage, damit der Benutzer einen Text 
> kopieren aus meinem> App in die Zwischenablage.aber jetzt heißt es, dass die 
> Art und Weise ich die> Zwischenablage ist veraltet.
>
> > Leider konnte ich kein passendes Beispiel, wie ich auf den Nutzen haben> 
> > Zwischenablage "neuen" Weg.> Ich fand die Dokumentation 
> > hier:>http://developer.android.com/guide/topics/clipboard/copy-paste.html
>
> > Aber ich habe schon den Code verwenden:> ClipboardManager Zwischenablage = 
> > (ClipboardManager)> GetSystemService (Context.CLIPBOARD_SERVICE);
>
> > Und Eclipse sagt mir, dass diese veraltet ist.
>
> getSystemService () ist nicht veraltet, und wederCLIPBOARD_SERVICE, zumindest 
> nach den docs.
>
> > Auch die "Notepad" Beispiel-Anwendung basiert auf 
> > veralteten>http://developer.android.com/resources/samples/NotePad/index.html
>
> Wie kann ein Beispiel app veraltet sein?
>
> > Könnte jemand bitte Post mich ein kurzes Beispiel, wie man einen String in 
> > das Add> Zwischenablage "neuen" Weg?
>
> Das gleiche wie die alte Weise:
>
> https: / / github.com / commonsguy / cw-advandroid / Baum / Master / 
> SystemService ...
>
> Wenn Sie reichen Slideshows Clip möchten, können Sie das auch tun:
>
> https: / / github.com / commonsguy / cw-advandroid / Baum / Master / 
> SystemService ...
>
> -Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to use the "new" clipboard function?

2011-03-31 Thread A. Elk
Your statement is imprecise.

android.*text*.ClipboardManager is being deprecated, in favor of android.*
content*.ClipboardManager. The javadoc for android.text.ClipboardManager 
points to the new API.

Nothing in the documentation suggests that the old way of copying and 
pasting text is any different from the new way. Only the package name is 
different. That sometimes happens.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to use the "new" clipboard function?

2011-03-30 Thread Mark Murphy
2011/3/30 Dominik Erbsland :
> okay found out the "problem":
> with honeycomb
>
>                ClipboardManager
> cm=(ClipboardManager)getSystemService(CLIPBOARD_SERVICE);
>
> is gonna be deprecated.

Where do you see this documented?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en