Re: [android-developers] Can't receive broadcast PACKAGE_ADDED

2009-12-02 Thread mingkg21 mingkg21
You also need to add data android:scheme=package /.


2009/12/2 feng tian feng.of.t...@gmail.com

 Hi, All:
 I want to receive the broadcast intent PACKAGE_ADDED, but it seems I cant
 get it. Here are my codes, can someone check for me? Thanks very much.

 //TestReceiver.java, this is the class for receiving the intent. I just
 display
 package com.android.receiver;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.widget.Toast;

 public class TestReceiver extends BroadcastReceiver {
  public void onReceive(Context arg0, Intent arg1) {
  Toast.makeText(arg0, You have Received Broadcast,
 Toast.LENGTH_LONG).show();
  }
 }

 //ReceiveActivity.java, this is the class for activity
 package com.android.receiver;
 import android.app.Activity;
 import android.os.Bundle;
 public class ReceiverActivity extends Activity {
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 }
 }

 I defined the filter in the manifest .xml file:
action android:name=android.intent.action.TIME_SET/
action android:name=android.intent.action.PACKAGE_ADDED/

 I can detect the TIME_SET broadcast successfully. But I can't detect the
 PACKAGE_ADDED broadcast when I installed a package. :(




  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] Fullscreen dialog

2009-11-30 Thread mingkg21 mingkg21
styles.xml:

style name=Dialog_Fullscreen
item name=android:windowFullscreentrue/item
item name=android:windowNoTitletrue/item
/style

java code:

Dialog dialog = new Dialog(this, R.style.Dialog_Fullscreen);
dialog.setContentView(R.layout.main);
dialog.show();


2009/12/1 Dianne Hackborn hack...@android.com

 Give its constructor a non-dialog theme, such as android.R.style.Theme or
 android.R.style.Theme_Light.


 On Mon, Nov 30, 2009 at 8:33 AM, tikky tiku...@gmail.com wrote:

 I have a dialog with a list view in it and am wondering if there is a
 way in to create a dialog that appears like an activity? i.e.
 fullscreen and fix size?
 Is there is any style that can be applied to have this activity-like
 appearance?

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.


  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: EditText - dosplay gray text when blank

2009-10-27 Thread mingkg21 mingkg21
setHint(CharSequence hint)
Sets the text to be displayed when the text of the TextView is empty.

2009/10/27 fhucho fhu...@gmail.com


 Hi,
 I have a username EditText, by default it should show a light gray
 text Enter username, when user clicks on it it should disappear. I
 think I saw somewhere that this can be done with a xml attribute
 without writing Java code. Does EditText has a xml attribute for this?
 


--~--~-~--~~~---~--~~
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: Android 2.0 SDK is here!

2009-10-27 Thread mingkg21 mingkg21
http://androidappdocs.appspot.com/sdk/android-2.0.html

在中国用这个访问吧。


2009/10/28 xii stan stan@gmail.com

 Great Work!

 android 2.0

 But I can not visit this website! I am in Shen Zhen  in China!!!

 Does any one could help me! Thanks a lot


 On Wed, Oct 28, 2009 at 8:44 AM, Bonifaz bonifaz.kaufm...@gmail.comwrote:


 This sounds great. I was fevered waiting for Bluetooth RFCOMM.
 Thanks so much! Multi-touch is also awesome.




 


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