[android-developers] I have a problem with android2.2 Launcher2.apk

2010-07-17 Thread LG ZHU
hi,all

I have a problem with android2.2  Launcher2.apk ,  I  find it also on
emulator .
why I cant not move focus on launcher panel  homebutton  when use mouse roll
down or down focus.

after  I do like this

   1. adb pull Launcher2.apk from /system/app
   2. delete Launcher2.apk  from emulator
   3. adb push Launcher2.apk in /system/app

 it will be ok like this ,I can move focus on this icon .like this image


why ?  please help me. when i make a  system.imgit also like  this
problem.

I must  adb pull Launcher2.apk  after  adb push this apk , it can be work ok
. or it can not move focus .

-- 
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] How can implement EditText on android app widget

2009-09-10 Thread LG ZHU

hi:all

  because,In 1.5 doc about app widget , A RemoteViews object  can
not support the EditText classes.
so we should think some method .
 today ,I have write a demo and  gone through the Android Source
Code and find some way from web.
at present ,there is not good idea to implement EditText on widget.

who can help me ? thanks

--~--~-~--~~~---~--~~
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: Clickable Desktop Widget

2009-09-10 Thread LG ZHU



thanks!

Now l want a EditText  on the widget ,how can I do this?  I think how
I can input on widget








On Aug 24, 11:52 pm, Alex Corbi a.co...@gmail.com wrote:
 Thanks, i appreciatte the help.

 On Aug 24, 4:27 pm, String sterling.ud...@googlemail.com wrote:

  On Aug 24, 1:05 pm, Alex Corbi a.co...@gmail.com wrote:

   The question is, how can i register a OnClikListener so i know when
   the user clicks the widget on the desktop

  You send it through theRemoteViewsobject. Here's my code:

         RemoteViewsviews = newRemoteViews(context.getPackageName(),
  R.layout.widget);
          views.setOnClickPendingIntent(R.id.click_target,
  PendingIntent.getActivity(
                          context,
                          0,
                          new Intent(context, MyActivity.class).setFlags
  (Intent.FLAG_ACTIVITY_NEW_TASK),
                          PendingIntent.FLAG_UPDATE_CURRENT));

  As you can see, mine opens a specific activity, but I believe you
  could fire any valid Intent.

  String

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---