[android-developers] Re: Android Projects Promotion Pages Online
Hi Gollum Of course, there are lots of people pay more attention for this OS in China,and pay lots of time for develop and desinge much more softwares,not only at application programs but also OS Device drivers,such as me.haha~~also,in china, there are lots of websites for android's fans to communication and discussion ,such as www.androidin.com ,www.android123.com,of course, my website www.51wince.com. It will more popular at the future. ho~~I have a question, are you Sizhong Lan? We changed our web's link before. Good luck and best regards! Mercury From 51wince.com 2009/3/23 Gollum [www.aidiji.com] www.aidiji@gmail.com *Thanks, man. I do hope people pay more attention on the market of China. For now, China Mobile is having 6000 millions of users and would definitely boost the Android soon as the major strategy. Therefore, I am so recommending that every Android app should make a version for Chinese when domestical software is nearly an vacuum. Well, does anybody care at all?* 2009/3/22 mercury xu xumerc...@gmail.com Hi Gollum Congratulations! Best wishes for your website! Best regards! Mercury From 51wince.com 2009/3/22 Gollum [www.aidiji.com] www.aidiji@gmail.com Dear all, AiDiJi.com http://www.aidiji.com/ (http://www.aidiji.com) has brought online the Android projects promotion pages, where companies and individuals can release their Android software products. The pages are mainly targeted at the market of China, which as you know, has the population of billions. Here, your product would have the audience on the billion scales, especially when in the near future (it is April as claimed) China Mobile, the dominant mobile operator within China, will launche the Android campaign with substantial Android phone products from many manufacturers. Besides, the promotion here is free to use without any revenue sharing, and will serve only as an index entry to your products’ pages to secure the payment if they charge. Meantime, AiDiJi.com would benefit somehow. In this win-win situation, what would you lose anyway? So please just try it out before you make the final decision, starting from the page as follows, Project Display: http://www.aidiji.com Project Release:http://www.aidiji.com/my.php Introduction with image demo: http://www.aidiji.com/viewtopic.php?f=13t=278 Thank you very much. -- www.aidiji.com - Where Android is hot! -- WWW.51WinCE.COM!Burr good! -- www.aidiji.com - Andoroid Developing Application Forum (in Chinese Language) -- WWW.51WinCE.COM!Burr good! --~--~-~--~~~---~--~~ 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: Is there a command to find out the pid of all process running on the emulator?
Hi ying As I know, you can check what's happen on your emulator from the Eclipse' DDMS,at the IDE left‘s list . You can find them. Anyway, you want to show those information on your program or just check it? IF run in your emulator.maybe you can try process as following java.lang.Objecthttp://developer.android.com/reference/java/lang/Object.html ↳ android.os.Process http://developer.android.com/reference/android/os/Process.html Wish can give you some helps. Best wish and regards! Mercury 2009/3/17 ying lcs ying...@gmail.com Hi, Is there a command to find out the pid of all process running on the emulator? If yes, can you please tell me how can I do that? Thank you. --~--~-~--~~~---~--~~ 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 inflate an xml file with ids from other apk?
Hi quill There are some questions for you maybe can help you solve this problem first, from your question, Did you setup the akp into android emulator? if yes, please reboot it, and try it again. last time, we also had those problem when we setup new akp. at the beginning, we also could get some sources such as some wave files at raw, we reboot the emulator the program can get them.. so my suggest is you can try it first...and check it...if u debug or run under the emulator I hope that can give you some helps...good luck and best regards! Mercury On 3月16日, 上午9时25分, quill quill...@163.com wrote: Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=hello---note this / /LinearLayout It works correctly, the text hello will be show on the screen. But when I defined the xml file like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hellonote this / /LinearLayout you know, the text was difined by string ids, so when my application load this, it can't find the string id. How can I do? --~--~-~--~~~---~--~~ 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 dismiss the single select dialog in AlertDialog
Hi Vincent you can try to comment button founction and use functions as following boolean onKeyDown(int keyCode, KeyEvent event) A key was pressed down. boolean onKeyUp(int keyCode, KeyEvent event) A key was released. you could choice one of them and then add following code into it new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { setResult(RESULT_OK); finish(); } } Maybe can help you. Best regards and good luck! Mercury On 3月15日, 上午12时47分, vincent Kor kor.vinc...@gmail.com wrote: Hi, All: from the reference of SDK, AlertDialog information as below. I want to create a dialog but i don't want to have any buttons in the dialog, then i hope to dismiss the dialog after i click any item in the dialog, how should i dismiss the dialog ? When the user click the back button, it will dismiss the dialog. so i need to send the key message in hard code ? is there any other way?? Thanks a lot for your help. Vincent -- public AlertDialog.Builderhttp://developer.android.com/reference/android/app/AlertDialog.Builde... setSingleChoiceItems (CharSequence[]http://developer.android.com/reference/java/lang/CharSequence.htmlitems, int checkedItem, DialogInterface.OnClickListenerhttp://developer.android.com/reference/android/content/DialogInterfac...listener) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. The list will have a check mark displayed to the right of the text for the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog. Parametersitems the items to be displayed. checkedItem specifies which item is checked. If -1 no items are checked. listener notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, *if no buttons are supplied it's up to the user to dismiss the dialog. * ** - --~--~-~--~~~---~--~~ 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 dismiss the single select dialog in AlertDialog
Hi Vincent That‘s a good idea , as we know, if we build an alterDlg need following code //modify by mercury xu 20090314 in the new sdk //they don't support this function as showAlert! new AlertDialog.Builder(loginScreen.this) .setTitle(Login Data) .setMessage(Login : + usrTxt + \n+ PassWords : + pwdTxt) .setIcon(R.drawable.icon) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { setResult(RESULT_OK); finish(); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }) .show(); maybe you can try to change the setPositiveButton and setNegativeButton as Not visible or comment them, and add following code for keyup or keydown founction. OnClickListener as setResult(RESULT_OK); finish(); you can get some useful infomation from http://developer.android.com/reference/android/app/AlertDialog.html. boolean onKeyDownhttp://developer.android.com/reference/android/app/AlertDialog.html#onKeyDown%28int,%20android.view.KeyEvent%29(int keyCode, KeyEventhttp://developer.android.com/reference/android/view/KeyEvent.htmlevent) A key was pressed down. boolean onKeyUphttp://developer.android.com/reference/android/app/AlertDialog.html#onKeyUp%28int,%20android.view.KeyEvent%29(int keyCode, KeyEventhttp://developer.android.com/reference/android/view/KeyEvent.htmlevent) A key was released. those two founction I hope that is your need. Wish good luck and best regards! Mercury 2009/3/15 vincent Kor kor.vinc...@gmail.com Hi, All: from the reference of SDK, AlertDialog information as below. I want to create a dialog but i don't want to have any buttons in the dialog, then i hope to dismiss the dialog after i click any item in the dialog, how should i dismiss the dialog ? When the user click the back button, it will dismiss the dialog. so i need to send the key message in hard code ? is there any other way?? Thanks a lot for your help. Vincent -- public AlertDialog.Builderhttp://developer.android.com/reference/android/app/AlertDialog.Builder.html setSingleChoiceItems (CharSequence[]http://developer.android.com/reference/java/lang/CharSequence.htmlitems, int checkedItem, DialogInterface.OnClickListenerhttp://developer.android.com/reference/android/content/DialogInterface.OnClickListener.htmllistener) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. The list will have a check mark displayed to the right of the text for the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog. Parametersitems the items to be displayed. checkedItem specifies which item is checked. If -1 no items are checked. listener notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, *if no buttons are supplied it's up to the user to dismiss the dialog. * ** - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---