Re: [android-developers] using anctionbar to implement tab, how to jump to another tab programmly?
Yes, this works. Thanks! On Mon, Jan 21, 2013 at 5:08 PM, Michael Leung michaelchi...@gmail.comwrote: actionBar.setSelectedNavigationItem(x)? On Tue, Jan 22, 2013 at 4:17 AM, Summer novelt...@gmail.com wrote: Could you give me an example of how to set the fragment to be active? Thanks 在 2013年1月20日星期日UTC-8下午9时15分22秒,Michael Leung写道: Can you set the tab with B Fragment to be active? On Mon, Jan 21, 2013 at 9:25 AM, Summer nove...@gmail.com wrote: https://github.com/Leandros/**Ac**tionBar-with-Tabshttps://github.com/Leandros/ActionBar-with-Tabs say I am in A fragment, i have a button, after I click this button, how can I jump to B fragment, as B tab is clicked? Thanks --S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 -- 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] using anctionbar to implement tab, how to jump to another tab programmly?
Could you give me an example of how to set the fragment to be active? Thanks On Sun, Jan 20, 2013 at 9:15 PM, Michael Leung michaelchi...@gmail.comwrote: Can you set the tab with B Fragment to be active? On Mon, Jan 21, 2013 at 9:25 AM, Summer novelt...@gmail.com wrote: https://github.com/Leandros/**ActionBar-with-Tabshttps://github.com/Leandros/ActionBar-with-Tabs say I am in A fragment, i have a button, after I click this button, how can I jump to B fragment, as B tab is clicked? Thanks --S -- 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 -- 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: ListFragment and actionbar
Thanks, that worked for me! On Fri, Jan 11, 2013 at 5:18 AM, Fisiu fisi...@gmail.com wrote: W dniu piątek, 11 stycznia 2013 08:44:42 UTC+1 użytkownik Summer napisał: Hi, I am developing an application which I will have multiple tabs and in one of the tab I will have listview. --So if I use actionBar and Fragment, setListAdapter() in the Fragment won't work. To use setListAdapter() your activity needs to extend ListActivity. But You have a Fragment it won't work. Instead use: listView.SetAdapter(myAdapter); --if I use actionBar and ListFragment, ActionBar.**TabListener can't accept listFragment. Any tip/help? 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 -- 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] NDK jni recommend some examples for me
NDK jni recommend some examples for me . How to link the .so file? How to write the .mk file? everything about this . My system environment is Ubuntu 12.04 .I set everything up. -- 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] Questions about enabling both 3g and wifi at the same time,and selecting the interfacec by programming
Hello! I'v seen that you'v anwsered a lot about enabling 3g and wifi simultaneouly. You mean that there's no this kind of function in the past sdk, do you know that whether there is improvement in this kind of function in recent sdk version? You also mentioin firmware, could you please explain a little bit more about that ? Are there any other ways to realize this funcitong? I need to select the interface in my program, which is called source address routing in linux, could you tell me is it possible to realize this in android and give me some suggestions? Thanks best regards. -- 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 close entire app?
Perhaps you could try creating your own BroadcastReceiver on every Activity that will exit its Activity upon receiving broadcasted message sent from the last page when user choose to exit the app. I haven't tried it myself but I hope it gives you a clue to solve your problem. Otherwise you should call finish on every Activity upon starting another Activity and handle starting previous Activity when user press a Back key On Fri, Aug 12, 2011 at 10:17 PM, ndiiie90 rnd...@gmail.com wrote: Hi again Mark, I must close the entire app, because my app is a commerce application, that has its own flow until the payment, and user can't go back to previous screen, so whenever user has reached the last page, there are options to exit the app or go back to menu again..have any idea? Thanks, Rendy On Aug 11, 7:49 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 10, 2011 at 10:55 PM, ndiiie 90 rnd...@gmail.com wrote: how to close entire app? You don't, any more than you close entire Web app. Android will terminate your process eventually, just leave it alone. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 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 -- 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 to embed a package in another package
I have 2 packages a.apk and b.apk, is it possible to embed b.apk into a.apk, that when I install a.apk, b.apk is installed automatically, and when a.apk is uninstalled, b.apk is uninstalled as well? Thanks. -Jiang -- 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] How to embed a package in another package
Since the 2 packages are developed by 2 teams, it is more simple to maintain souce code in embeded mode. --- 10年12月21日,周二, TreKing treking...@gmail.com 写道: 发件人: TreKing treking...@gmail.com 主题: Re: [android-developers] How to embed a package in another package 收件人: android-developers@googlegroups.com 日期: 2010年12月21日,周二,上午10:11 On Mon, Dec 20, 2010 at 8:09 PM, Jiang webs...@yahoo.cn wrote: I have 2 packages a.apk and b.apk, is it possible to embed b.apk into a.apk, that when I install a.apk, b.apk is installed automatically, and when a.apk is uninstalled, b.apk is uninstalled as well? Doubtful. Why don't you just have one app? - TreKing - Chicago transit tracking app for Android-powered devices -- 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 -- 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] How to embed a package in another package
Thanks, Both a.apk and b.apk contains UI and resources, so if I export a.apk as a.jar, and import a.jar to the project of b.apk, during building, the following message display: Error generating final archive: duplicate entry res/drawable/icon.png would you please tell me how to implement as you said? Thanks. BR, -Jiang --- 10年12月21日,周二, TreKing treking...@gmail.com 写道: 发件人: TreKing treking...@gmail.com 主题: Re: [android-developers] How to embed a package in another package 收件人: android-developers@googlegroups.com 日期: 2010年12月21日,周二,下午12:00 2010/12/20 Jiang webs...@yahoo.cn Since the 2 packages are developed by 2 teams, it is more simple to maintain�souce code in embeded mode. Then have these two teams give you two jar files or one jar and one apk that uses it. - TreKing - Chicago transit tracking app for Android-powered devices -- 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 -- 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] Key store is lost
I lost the key store which has been used to sign a published application. I generated the key store with the following instructions: keytool -genkey -keystore keystore-name -storepass store-password -alias store-alias -keypass key-password -validity validity-date -dname d-name I remember all arguments used to generate the key store, how can I generate the same key store? 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
Re: [android-developers] Key store is lost
Thanks, all of you, for your help. It seems what we can do is to backup key store. --- 10年12月14日,周二, Marcin Orlowski webnet.andr...@gmail.com 写道: 发件人: Marcin Orlowski webnet.andr...@gmail.com 主题: Re: [android-developers] Key store is lost 收件人: android-developers@googlegroups.com 日期: 2010年12月14日,周二,下午7:51 On 14 December 2010 12:35, Jiang webs...@yahoo.cn wrote: I lost the key store which has been used to sign a published application. I generated the key store with the following instructions: keytool -genkey -keystore keystore-name -storepass store-password -alias store-alias -keypass key-password -validity validity-date -dname d-name I remember all arguments used to generate the key store, how can I generate the same key store? You can't create the same key you had before due to random factors used during key generation process (which is there exactly for that purpose). Try backup or (depending on how you lost it) try contacting companies like kroll ontrack (if your app is paid and you can accept the costs of course) -- 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 -- 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 communicat e between Activities/Services
Sorry, what do you want to implement? --- 10年12月13日,周一, Kenneth WON kenneth...@gmail.com 写道: 发件人: Kenneth WON kenneth...@gmail.com 主题: [android-developers] Re: How to communicate between Activities/Services 收件人: Android Developers android-developers@googlegroups.com 日期: 2010年12月13日,周一,下午2:05 Hi, Jiang How can I implement it as program code? Thanks! Kenneth On 12月13日, 下午12�r32分, Jiang webs...@yahoo.cn wrote: Once some specific event occurs, such as app is expired, I need to inform all active Activities/Services, is there any good way to implement such communication? Currently, I use Broadcast, but some guys said it is expecsive. Thanks. -Jiang -- 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 -- 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 to communicate between Activities/Services
Once some specific event occurs, such as app is expired, I need to inform all active Activities/Services, is there any good way to implement such communication? Currently, I use Broadcast, but some guys said it is expecsive. Thanks. -Jiang -- 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 to restart activity once configuration changed
1, By default, if android system configuration is changed, only top activity is restarted (onDestroy is invoked, then onCreate is invoked) immediately, and other activities in history stack will defer to be restarted once they are resumed. 2, I need to do extra works once configuration changed, so I capture configuration changes event. and in onConfiguratonChanged, I restart activity as following: finish(); Intent intent = new Intent(this, getClass()); startActivity(intent); The issues occur: a), All activities in history stack will receive such event, so all activities will be restart immediately, and activities stack is reordered reversedly. b), When restarted activity, onCreate is invoked before onDestroy() my question is: If I myself handle configuration changes event, how to restart activity as Android does by default. Thanks very much! - Jiang -- 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 to restart application.
In my application, I need to restart the application itself (kill it, and then relaunch it), how to implement this feature? I tried ActivitiManager.restartPackage(), but seems the application doesn't be killed. Thanks. -Jiang -- 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 to close all activities in Activity stack and start a new one
When some activities is created, such as A-B-C-D, and in a timer, I need to close all activities in Ativity stack in the order D-C-B-A (the timer don't know what activities have been created), and then start a new Activity E. How to implement this feature? 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
Re: [android-developers] Re: What's on earth the SAX Parser changes between 2.1 and 2.2
Ok, I wrote it in english, hoping it can be read by more people who have the same issues, if some one has the problem, they will read it carefully regardless the poor syntax. Apparently, you are not. My test code is aimed to work on both 2.1 and 2.2, which have different implementation of SAX, 1.6, even 1.5 have delivered with large amount of handset, that should not be ignored. :) On Mon, Oct 11, 2010 at 12:23 AM, Indicator Veritatis mej1...@yahoo.comwrote: So if I read your blog post correctly, the problem is not a new bug introduced in 2.2, it is that your test code only worked because of a bug present in 2.1, but fixed in 2.2. But I have to admit I didn't spend that much time studying the blog post. I might have if I did not find the misuse of English verb tenses so off-putting. Also, your blog will show up better in searches if you fix the spelling of 'exception': you wrote 'excpetion'. On Oct 9, 7:42 am, Jun Jiang jiangjun.jk...@gmail.com wrote: Thanks, frank, I have found the cause of my problem, you can refer my blog post for more detail: http://mmmyddd.freeshell.net/blog/Computer/Android/saxcompatibility On Thu, Oct 7, 2010 at 11:58 PM, Frank Weiss fewe...@gmail.com wrote: The bug report sheds no more light on the problem than you did. I've used the same SAX parser code on 2.1 as on 2.2 without issues. I suspect there's either an issue in your default handler code or in the XML being read. Have you tried to step through the code on 2.1-update1? Did you implement the characters callback correctly? Did you look at the changes in the library code, as the bug report suggested? -- 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 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.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] What's on earth the SAX Parser changes between 2.1 and 2.2
Thanks, frank, I have found the cause of my problem, you can refer my blog post for more detail: http://mmmyddd.freeshell.net/blog/Computer/Android/saxcompatibility On Thu, Oct 7, 2010 at 11:58 PM, Frank Weiss fewe...@gmail.com wrote: The bug report sheds no more light on the problem than you did. I've used the same SAX parser code on 2.1 as on 2.2 without issues. I suspect there's either an issue in your default handler code or in the XML being read. Have you tried to step through the code on 2.1-update1? Did you implement the characters callback correctly? Did you look at the changes in the library code, as the bug report suggested? -- 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] What's on earth the SAX Parser changes between 2.1 and 2.2
I have wrote a ContentHandler for SAX parser to retrieve data from and xml file, but it does't work on 2.1-update1, but works fine on 2.2, What is on earth is the changes, anyone knows? the problem I encountered is exactly the same as stated at: http://code.google.com/p/android/issues/detail?id=11223 *Reported by m.de.kwant, Sep 14, 2010* My application uses a urlconnection to retrieve a soap response. This XML is run through the default saxparser available in the java/android lib. In android version 2.1 the XML is not parsed correctly. I fact there seems to be no parsing at all, while the raw input is available. In android version 2.2 the input XML is parsed and the return result from my handlers is correct. In short. SaxParser on 2.1 does nothing (no result, no error, no parsing), Saxparser on 2.2 works like it supposed to work. Are there any work arounds for this problem ? *Comment 1 by project member e...@google.com, Sep 14, 2010* you can have a look at the differences between 2.1 and 2.2 yourself. Status: Declined Owner: e...@google.com Labels: Component-Dalvik Delete comment Comment 2 by jiangjun.jking, Today (95 minutes ago) I have the same issue, could you please explain more clear about it? -- 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 to get android version programmtically
Hello, guyes. I need to get android version programmtically dynamically when my application is running on device. I tried android.os.Build.Version, but it doesn't exist in Android sdk 1.6. How to get android version? Thanks. Jiang -- 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 to know who has registered the developer name on Android Market
I'd like to publish my application to Android Market, but when I create developer profile in http://market.android.com/publish/signup, the following warning messages are shown under the field 'Developer Name': Will appear to users under the name of your application The business name entered is already taken. How to know who has registered this developer name? Thanks. -Jiang -- 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] Doesn any body konw how to contact with Android Market support team?
Thanks. Jiang -- 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: Killi Process with files on SD card
i think the problem here is that you really do not known when the user is going to unmount the sdcard.. it can happen at any moment. so the only way is to make those open file closed, which seams to be difficult, especially for files read/written in a separate thread async... since i met with the the same problems, see http://groups.google.com.ni/group/android-developers/browse_thread/thread/a5ee991af46fd256?hl=en# and i searched in the group, but just did nou find any satisfying solution. i wounder is there any way to make open files closed? just to avoid the process being killed problems... 2010/9/7, Frank Weiss fewe...@gmail.com: Can this data be written sooner rather than later? Can you put it or part of it in SQLite, where it's quicker to update just a part of a large data model? -- 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 -- 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 press menu key programmatically..
maybe he means unlock the screen by pressing the menu key. i think you cannot achieve it by your app, since the key event is poped up by the system and delivered to upper layer apps. 2010/9/7, Yahel kaye...@gmail.com: i think pressing menu key Not sure what you mean by open lock, but the way to call the menu programmatically is : Activity.openOptionsMenu(); Good luck. Yahel -- 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 -- 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] help
help -- 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 to use preference objects in TabActivity
In general, preference objects can be used in PreferenceActivity. Now I need to use these objects in TabActivity, how to implement this feature? Thanks! - Jiang -- 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] subscribe
subscribe -- 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] It is possible to monitor and block network?
It is possible to implement following features: 1, Get notification when a net network connection is established by other applications. 2, Hook network input/output stream, or peer input/output stream, and block corresponding network connection if the stream contains unexpected contents. Thanks, -Jiang -- 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 to implement a listiew like Android built-in application Settings.apk
I want to design a ui like that of Settings Display (Comments, here Settings is an Android built-in applicatin). That ui looks like a ListView, is it predefined or customized? If it is a customized ListView, where can I find the down-arraw icon on the riht of Brightness item row? Thanks. -Jiang -- 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 to implement a li stiew like Android built-in application Settings.apk
Oh, I know, it is preference activity --- 10年6月10日,周四, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] How to implement a listiew like Android built-in application Settings.apk 收件人: android-developers@googlegroups.com 日期: 2010年6月10日,周四,下午4:45 I want to design a ui like that of Settings Display (Comments, here Settings is an Android built-in applicatin). That ui looks like a ListView, is it predefined or customized? If it is a customized ListView, where can I find the down-arraw icon on the riht of Brightness item row? Thanks. -Jiang -- 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 -- 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] Int to string
Integer.toString(tmp) --- 10年6月11日,周五, Jason Hensler jasonehens...@gmail.com 写道: 发件人: Jason Hensler jasonehens...@gmail.com 主题: [android-developers] Int to string 收件人: android-developers@googlegroups.com 日期: 2010年6月11日,周五,上午11:58 It seems like in my code that my app is crashing because it is a int and not a string. This is my code: I am assuming that tmp has a value.. For debugging what is the best way to check varibles for values? If i remove the line with the red text everything runs fine. EditText text; text = (EditText) findViewById(R.id.EditText01); SharedPreferences myPrefs = this.getSharedPreferences(muter, MODE_WORLD_READABLE); SharedPreferences.Editor prefsEditor = myPrefs.edit(); int tmp = myPrefs.getInt(state, 0); text.setText(tmp); Thanks in advance! Jason -- 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 -- 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] Why my application doesn't in application history?
I start a new activity with the following statements: Intnet intent = new Intent(this, NewActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); startActivity(intent); After the new activity is launched, I press HOME key for about 3 seconds, and I see the a dialog with messages No recent applications. why my application is disappeared? thanks. -Jiang -- 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] How to show a dialog even if the Activity is in background
Thanks, both of all. Simply, I want to pop up a dialog on the current visible Activity, even if the Activity belongs to other application. And at this time, if my application is running on background (invisible), don't display any Activities (even if the topmost Activity) of my applicatioin except to pop up a dialog. --- 10年6月4日,周五, TreKing treking...@gmail.com 写道: 发件人: TreKing treking...@gmail.com 主题: Re: [android-developers] How to show a dialog even if the Activity is in background 收件人: android-developers@googlegroups.com 日期: 2010年6月4日,周五,下午10:05 On Fri, Jun 4, 2010 at 3:09 AM, Jiang webs...@yahoo.cn wrote: In other word, no matter what application is running on foreground, use can watch the dialog. Let me get this straight - you want to force a popup dialog in front of the user's current activity after they've made the deliberate decision to navigate away from your app? Why, exactly, would you want to do this? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 -- 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 to show a dialog even if the Activity is in background
If my Activity is switched to background, when something takes place, I want to show a dialog without switching the Activity to foreground. In other word, no matter what application is running on foreground, use can watch the dialog. Thanks. -Jiang. -- 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 know the r eason that causes the activity destroyed
Yes, you are righe. My issue is fixed after I added the following line to Activity in AndroidManifest.xml: android:configChanges=mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale --- 10年6月3日,周四, Gibson zclgib...@gmail.com 写道: 发件人: Gibson zclgib...@gmail.com 主题: [android-developers] Re: How to know the reason that causes the activity destroyed 收件人: Android Developers android-developers@googlegroups.com 日期: 2010年6月3日,周四,下午1:41 I guess one of the reason maybe due to the screen orientation changed? On Jun 3, 6:53 am, Jiang webs...@yahoo.cn wrote: One of my Activity is restarted automatically (that is onDestroyed() is called, and then onCreate(xxx) is called as well). And I found following matters before Acviity is destroyed: - onLowMemory() is not called - onConfigurationChanged(xxx) is not called - inOnDestroy(), method isFinishing() returns false How to know the reason auses the activity destroyed? Thanks. -Jiang -- 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 -- 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 to know the reason that causes the activity destroyed
One of my Activity is restarted automatically (that is onDestroyed() is called, and then onCreate(xxx) is called as well). And I found following matters before Acviity is destroyed: - onLowMemory() is not called - onConfigurationChanged(xxx) is not called - inOnDestroy(), method isFinishing() returns false How to know the reason auses the activity destroyed? Thanks. -Jiang -- 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] How to decrease the space between checkbox?
Good, Thanks!!! --- 10年5月31日,周一, Kostya Vasilyev kmans...@gmail.com 写道: 发件人: Kostya Vasilyev kmans...@gmail.com 主题: Re: [android-developers] How to decrease the space between checkbox? 收件人: android-developers@googlegroups.com 日期: 2010年5月31日,周一,下午10:08 Actually, looking at the sdk sources, the top/bottom margins are in the drawable (the checkbox images). I ran into the same problems with spinners, the fix was to create my own background images with smaller transparent margins. http://kmansoft.wordpress.com/2010/04/19/compact-spinner-widgets/ -- Kostya 31.05.2010 17:25, TreKing пишет: On Sun, May 30, 2010 at 10:18 PM, Jiang webs...@yahoo.cn wrote: The space between checkboxes in below UI layout is too much, how to decrease it? Try adjusting the various padding parameters on them. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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 -- 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 to decrease the space between checkbox?
The space between checkboxes in below UI layout is too much, how to decrease it? LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content CheckBox android:layout_width=wrap_content android:layout_height=wrap_content android:text=Apple / CheckBox android:layout_width=wrap_content android:layout_height=wrap_content android:text=Pear / /LinearLayout 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] CheckBoxs' labels are not updated after locale is changed
When locale is changed via Settings Language keyboard Select local, labels on buttons, textviews, and spiners are updated according to new locale (I created corresponding strings.xml in the folder values-locale), but checkboxs' are not; if I close the activity and restart it again, the checkboxs' labels become correct. Why, is it Android's bug? Thanks. -Jiang -- 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] Memory leaks???
My God. The statements to send messages cause memory leak. I should use the following statements instead. Message message = m_handler.obtainMessage(); message.what = 1; message.what = obj; message.sendToTarget(); --- 10年5月21日,周五, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] Memory leaks??? 收件人: android-developers@googlegroups.com 日期: 2010年5月21日,周五,上午11:50 1, In a thread, I send a gread many of messages with followign statements: Message message = new Message(); message.what = 1; message.what = obj; m_handler.sendMessage(message) message = null; 2, In a acvity class MyActivity extends Activity { class MyHandler extends Handler { public void handleMessage(Message msg) { handleActivityMessage(msg); } } public handleActivityMessage(Message msg) { } } When returned from MyActivity, System.gc() is called, but I found the memory usage grows compared to the stage before entering MyActivity, does memory leak during message processing? 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 -- 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: capture outgoing sms in android
1, Cache all messages's hash code on the phone 2, Register an content observer for content://sms 3, In onChange method of observer, enumrate all messages to check if it is in cache, if not, the message is sent out just now. --- 10年5月21日,周五, Nandan . bhavesh2...@gmail.com 写道: 发件人: Nandan . bhavesh2...@gmail.com 主题: [android-developers] Re: capture outgoing sms in android 收件人: android-developers@googlegroups.com 日期: 2010年5月21日,周五,下午3:42 h can any one help me how to capture outgoing sms in android.. thank youbhavesh On Thu, May 20, 2010 at 4:33 PM, Nandan . bhavesh2...@gmail.com wrote: Hii. In android there is a�broadcast Receiver�for incoming SMS. but in my application i want to capture outgoing SMS through code it is�possible�in android. There is no any�Receiver�for outgoing SMS. �how can i implement to capture outgoing SMS. if any one have idea plz reply me.. Thank you very much With Regrads Bhavesh -- B!-!/-\\/!=$!-! -- 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 -- 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 to force Activity to call finalize()?
My application contains 2 activities A and B. B is opened with startActivity(intent) in A, when B is closed with finish(), I found the method finalize() of B is not called. My question is: How to force Activity to call finalize() when it is closed with finish()? 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] When Activity is closed, its fields is not release, how to resolve this issue.
In the followingscenario, the fields of Activity is not released when the Activity is closed with calling finish(). Class MyClass { } public MyActivity extends Activity { private MyClass obj; public void onCreate(xxx) { obj = new MyClass(); } } when Activity is closed, the field 'obj' is not released. Certainly, we can add statement obj = null in onDestroy() to release it explicitly, but I'm curious that other fields of Activity is not released, is there memory leak? I tried following test: 1, Start Activity A 2, Start Activity B from A with calling startActivity 3, Close Activity B with calling finish(); 4, Start Activity B in method onResume() of Activity A When B is started about 2000 times, Android system report out of memory, it seems that memory leaks during the processes, how to resolve this issue? Thanks very much. -- 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 to find memory leak?
When start Activity A, I found the memory usage of application is about 5MB, Then start Activity B from A via startActivity. In Activity B, I created a thread, and traverse file system in this thread, after traversing completed, call finish() and to return to Activity A. at this time, I found the memory usage of application is about 8MB (GC is forced before check memory usage). How to find Where memory leaks? By the way, I checked the memory usage with DDMS. 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: How to find memor y leak?
I will try these tools. Thanks, both of you. --- 10年5月20日,周四, Mathias Lin m...@mathiaslin.com 写道: 发件人: Mathias Lin m...@mathiaslin.com 主题: [android-developers] Re: How to find memory leak? 收件人: Android Developers android-developers@googlegroups.com 日期: 2010年5月20日,周四,下午8:19 Yourkit, http://yourkit.com/overview/index.jsp, is another profiler tool that could be used. In sdk2.1, you can also do it on a non-rooted device - you can create a hprov from within the app and write it to sdcard. Debug.dumpHprofData(/sdcard/myapp.hprov); At least in v2.1, possible that this wasn't availabe in 1.x sdk. On May 20, 8:10 pm, pacoder sove...@gmail.com wrote: I've been using Eclipse MAT (http://www.eclipse.org/mat/) to look at heap dumps. My phone isn't rooted so I run my app in the emulator then use adb to do a kill -10 which forces a heap dump. I then do an adb pull to grab the file (your logcat will give you the name of the heap dump output file when it runs). Then I use the android hprof-conv tool to convert the heap dump to one that MAT can read. Then just open it up in MAT and you can look around through the dump. It will also suggest leak candidates to you, it's a nice tool. Also, you will need to grant write permissions to the output directory in your emulator. I just go do a chmod 777 /user/data. hth, Sean Overby On May 20, 6:27 am, Jiang webs...@yahoo.cn wrote: When start Activity A, I found the memory usage of application is about 5MB, Then start Activity B from A via startActivity. In Activity B, I created a thread, and traverse file system in this thread, after traversing completed, call finish() and to return to Activity A. at this time, I found the memory usage of application is about 8MB (GC is forced before check memory usage). How to find Where memory leaks? By the way, I checked the memory usage with DDMS. 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 athttp://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 athttp://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 -- 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] When Activity is closed, its fields is not release, how to resolve this issue.
Thanks. Even if I called System.gc(), the 'obj' field of MyActivity is still not released. If I don't use infinite loop, and tried the following test, exception 'out of memory' still occurs 1, Start Activity A 2, Press a button on Activity A to start Activity B 3, In onCreate method of B, allocate 5MB, then assign it to a field, this field is not released explicitly in onDestroy of B 4, Press Back key to return to A, 5, Execute System.gc in A, then start B again 6, Repeat steps 4 and 5 about 4 times, exception out of memory occurs --- 10年5月20日,周四, Mark Murphy mmur...@commonsware.com 写道: 发件人: Mark Murphy mmur...@commonsware.com 主题: Re: [android-developers] When Activity is closed, its fields is not release, how to resolve this issue. 收件人: android-developers@googlegroups.com 日期: 2010年5月20日,周四,下午8:17 In the following scenario, the fields of Activity is not released when the Activity is closed with calling finish(). Class MyClass { } public MyActivity extends Activity { private MyClass obj; public void onCreate(xxx) { obj = new MyClass(); } } when Activity is closed, the field 'obj' is not released. I am going to assume that by not released, you mean not garbage collected. Certainly, we can add statement obj = null in onDestroy() to release it explicitly, but I'm curious that other fields of Activity is not released, is there memory leak? If something in your code is keeping your instance of MyActivity in memory -- such as holding onto an instance of it or something referring to it in a static context -- then you will have a memory leak. I tried following test: 1, Start Activity A 2, Start Activity B from A with calling startActivity 3, Close Activity B with calling finish(); 4, Start Activity B in method onResume() of Activity A When B is started about 2000 times, Android system report out of memory, it seems that memory leaks during the processes, how to resolve this issue? You are creating an infinite loop. Activity A be called with onResume() as part of Activity B finishing, so you are restarting Activity B right away. Do not create an infinite loop, and you will not run out of memory. There are tools in Android to diagnose true memory leaks, such as the Allocation Tracker and VM Heap in DDMS, or the dump HPROF file button in DDMS in Android 2.x. Those will help you track down your memory leak. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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 -- 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 force Acti vity to call finalize()?
Thanks. I still worry that fileds of Activity (not fileds of Activity's subclass) is not released. --- 10年5月20日,周四, Streets Of Boston flyingdutc...@gmail.com 写道: 发件人: Streets Of Boston flyingdutc...@gmail.com 主题: [android-developers] Re: How to force Activity to call finalize()? 收件人: Android Developers android-developers@googlegroups.com 日期: 2010年5月20日,周四,下午10:11 Don't rely on finalize() being called (at an even somewhat predictable time). Finalize is called by the garbage collector of every java Object. It may be quite a while before finalize is called by the garbage collector. Instead, implement the onDestroy. On May 20, 3:42燼m, Jiang webs...@yahoo.cn wrote: My application contains 2 activities A and B. B is opened with startActivity(intent) in A, when B is closed with finish(), I found the method finalize() of B is not called. My question is: How to force Activity to call finalize() when it is closed with finish()? 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 athttp://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 -- 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] Memory leaks???
1, In a thread, I send a gread many of messages with followign statements: Message message = new Message(); message.what = 1; message.what = obj; m_handler.sendMessage(message) message = null; 2, In a acvity class MyActivity extends Activity { class MyHandler extends Handler { public void handleMessage(Message msg) { handleActivityMessage(msg); } } public handleActivityMessage(Message msg) { } } When returned from MyActivity, System.gc() is called, but I found the memory usage grows compared to the stage before entering MyActivity, does memory leak during message processing? 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] -http-proxy not working solution
Hi, I'm trying to get my emulator works with my HTTP proxy servers. I remember that I ever succeeded using -http-proxy option settings from Eclipse Run Configuration window when I was using android 1.5 SDK. But now when I already updated to latest SDK I cannot make my emulator to connect to internet via HTTP proxy. I read that someone posted this issue here before ( http://groups.google.com/group/android-developers/browse_thread/thread/8178bddb09f1ffb2?pli=1) , but still no solution. Anyone can give a clue how to solve this issue? 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: -http-proxy not working solution
Sorry, already solved this issue. I replaced my emulator.exe in SDK folder using old android-1.5 SDK emulator.exe :). Now the browser can connect to the internet using proxy. Hope there is no other issue regarding this hard way solution On Tue, Apr 20, 2010 at 10:38 PM, Andry Jiang andryde...@gmail.com wrote: Hi, I'm trying to get my emulator works with my HTTP proxy servers. I remember that I ever succeeded using -http-proxy option settings from Eclipse Run Configuration window when I was using android 1.5 SDK. But now when I already updated to latest SDK I cannot make my emulator to connect to internet via HTTP proxy. I read that someone posted this issue here before ( http://groups.google.com/group/android-developers/browse_thread/thread/8178bddb09f1ffb2?pli=1) , but still no solution. Anyone can give a clue how to solve this issue? 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
Re: [android-developers] Re: Android in China - What is going on?
I was at Shenzhen last week. It is strange that the google sync doesn't work in Shenzhen, but it works perfectly in Beijing. I hadn't modified any settings. And in Beijing, both CNC network and CMCC APN work fine. Best regards, On Sat, Nov 21, 2009 at 9:26 AM, shimsim shim@gmail.com wrote: Hi westmeadboy, i just tried accessing the google sync page from the link you posted and it works fine on my G1 both on WiFi and using China Mobile APN, so maybe its a regional issue too. I'm located in GZ. Don't get me wrong, I am happy to use this topic for everyone to post their current experiencing with the issues with Android in China, I just want to keep pushing for some official answers too. More posts please, lets keep the momentum here! Ironically the day after starting this post everything has been working fine but as Hong mentioned, its probably just because President Obama is in town, so things may go back to being blocked soon. Any comment Google? On Nov 20, 4:13 pm, westmeadboy westmead...@yahoo.co.uk wrote: Well, I cannot access:http://www.google.com/mobile/products/sync.html. Can you (without a VPN)? I know you just want answers, but I think it would help to clarify the problem/symptoms too. How is that some people (you) can log on but others (me) can't? You might also want to try: http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5... On Nov 20, 2:23 pm, shimsim shim@gmail.com wrote: It has been working for me almost perfectly the last 3 days, but twitter and facebook are still blocked, so maybe they are just working wherever President Obama is, either way I have a a PPTP VPN setup but thats not the point here ... Getting back to the original question .. can someone from GOOGLE or ANDROID speak up and let us know whats going on . PLEASE! some official reason why and whats going to happen in the long term. It's kind of important, this isnt social networking we are talking about, its mail and market and its potentially making Android useless in China. If this is the wrong place to be posting this question then feel free to suggest a more appropriate place, but at least respond. thanks! On Nov 20, 12:54 pm, westmeadboy westmead...@yahoo.co.uk wrote: On Nov 19, 4:53 pm, Gmail addictor tsang.a...@gmail.com wrote: The sync works again! Market also became accessible! WoooW~~ YEAH! Still not working for me - I can't get past the Set up your Google account wizard. I've tried clearing caches of numerous google/htc apps, but still no joy... Can anyone else confirm its working in mainland china? -- 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 -- 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] Can an application get event that it is installed?
Hello, Guys, In application, I want to do some operations when it is installed, how can I implement this feature? Thanks in advance. ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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: In Java application, how to load native library which depends on the third shared library
Thanks for your replay. In fact, I know how to create jni library and how to load jni library in Java application, what confusing me is where to install the third shared library. For example: If I defeind a jni library libjni-test.so which invokes APIs defined in libxxx.so(libxxx.so is not system library), and load the library by invoking System.load(jni-test) in Java application, then I copy libjni-test.so to My-Project/lib/, after building and installing application, the libjni-test.so is installed under /data/data/my-package-name/lib, but what place to copy the third library libxxx.so to? Thanks. --- 09年8月26日,周三, Dianne Hackborn hack...@android.com 写道: 发件人: Dianne Hackborn hack...@android.com 主题: [android-developers] Re: In Java application, how to load native library which depends on the third shared library 收件人: android-developers@googlegroups.com 日期: 2009年8月26日,周三,下午3:20 Hi, you probably want to ask about native development on android-ndk. 2009/8/25 Jiang webs...@yahoo.cn Hello, guys. I created a jni library which depends the third shared library, I must copy the third shared library to /system/lib, otherwise, Java application can't load jni library. But you know, on G1 with official OS image, /system/lib is readonly. I tried to call System.setProperty to set java.library.path to the location stored the thired shared library before load jni library, but the issue still exists. Is there any one konw how to solve this issue? Thanks a lot. BR, - Jiang 好玩贺卡等你发,邮箱贺卡全新上线! -- 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. ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] In Java application, how to load native library which depends on the third shared library
Hello, guys. I created a jni library which depends the third shared library, I must copy the third shared library to /system/lib, otherwise, Java application can't load jni library. But you know, on G1 with official OS image, /system/lib is readonly. I tried to call System.setProperty to set java.library.path to the location stored the thired shared library before load jni library, but the issue still exists. Is there any one konw how to solve this issue? Thanks a lot. BR, - Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] why glReadPixels return Alpha always -1
Hi, it is always return -1 when call Android opengl es api glReadPixels(), it is a bug of Android? 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: Extending contacts
I suggest you to save these extra data to your own database. Best regards, On Wed, Jun 10, 2009 at 6:12 PM, marc.popple...@orange-ftgroup.com wrote: Hi, I'm trying to see how extra information can be attached to contacts entries. Looking at the SDK reference, I stumble upon the Contacts.Extensions (http://developer.android.com/reference/android/provider/Contacts.Extensions.html) and Contacts.People.Extensions (http://developer.android.com/reference/android/provider/Contacts.People.Extensions.html) classes. Sadly I can't find any article about what theses classes are for and how to use them. My goal is to add a few extra fields to the contacts entries which do not fit in any of the current available field types (emails, im accounts, phone numbers, postal addresses). Is there a way to achieve this? Thanks, Marc --~--~-~--~~~---~--~~ 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: About PinyinIME in android-1.5
I guess, first, it's not so stable yet, still some of bugs need to be fixed before release it. 2nd, G1 and other android devices are not shipped to China Mainland so far. So they do not need to include this in this version, which is built as G1 android-1.5 firmware update. Best regards, On Wed, May 13, 2009 at 7:45 AM, moontain chen.worksp...@gmail.com wrote: Anyone answer the question? Thanks? Regards, Moontain 2009/5/12 moontain chen.worksp...@gmail.com Hi Yuan, Thanks for the reply. I can find the PinyinIME package in the Android 1.5 SDK, but can't find the source code in the official cupcake release. I was looking for the PinyinIME project under the folder mydroid/packages/inputmethods/ When I get android code with following commands,I can't find the PinyinIME project under above folder. cd ~/mydroid repo init -u git://android.git.kernel.org/platform/manifest.git -b android-1.5 repo sync But if I get code from the cupcake development branch with following commands, The PinyinIME project is there. cd ~/mydroid repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake repo sync I'm wondering why the PinyinIME was dropped in official cupcake release code? Thanks. Regards, Moontain 2009/5/11 Yuan Kwok yuank...@gmail.com where are you looking for the PinyinIME? from the T-mobile official release or the official SDK emulator? I don't have a real phone for dev, but the PinyinIME can be found in the emulator(remember to kick off the emulator with a avd of firmware version 1.5) when you press and hold in an input box for a while, the PInyinIME can be found in the contextMenu. (you may need to switch the default locale to Chinese) On Mon, May 11, 2009 at 10:39, moontain chen.worksp...@gmail.com wrote: Hi, When I get code with following repo init command to get the official android 1.5 code, I can't find the PinyinIME project, but it is in the cupcake code(-b cupcake). Why it is dropped in the official version? Is this because license issue or something else? Thanks repo init -u git://android.git.kernel.org/platform/manifest.git -b android-1.5 Regards, Moontain --~--~-~--~~~---~--~~ 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: Eclipse + cupcake + other android projects in build path = VerifyError
Well, I met the same issue. Does anyone have any idea about this? Best regards, On Tue, Apr 28, 2009 at 11:14 PM, Guillaume Perrot guillaume.p...@gmail.com wrote: We have an application cut into 3 android projects: * Project REAL (the real android project) * Project LIB1 (an android project without any activity, just to make android reusable classes) * Project LIB2 (same as LIB1) LIB1 and LIB2 are android projects rather than J2SE ones because LIB1 and LIB2 use Android classes. Project REAL has LIB1 and LIB2 in its project build path in Eclipse. In SDK 1.0 and 1.1, no problem at all when running the project REAL from Eclipse, it mixes the code of the 3 projects and produces one big APK with everything in it. But now in SDK 1.5, it installs 3 different APKs on the emulator or on the phone (I tested both), and the project REAL immediately crashes because of a VerifyError: it does not find a class that is in LIB1. The size of the produced APK is smaller, indeed LIB1 and LIB2 classes are not in it... I tried using uses-library in the manifest like google maps library but it complains at installing, we have a missing shared library error. I tried adding class folders in build path, it compiles in Eclipse but we still have a VerifyError. Same thing if we use external class folders in build path. The only thing that worked for me was to add an eclipse folder, which is in fact a symbolic link, and to make it a source folder. But that solution is not convenient for us because when we share the projects in SVN, the referenced paths are different for each developer. Using eclipse path variables can do the trick but it is far from being convenient. Indeed, if we have to reinstall Eclipse or if we move the place we check out the code in our developer station we have to reconfigure all these messy path variables in Eclipse. Is there a way to restore the old behavior on other android projects in build path ? --~--~-~--~~~---~--~~ 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: Bus error when running 1.5 emulator
I've submitted a patch for this bug https://review.source.android.com/Gerrit#change,9597 If you'd like, I can mail you the binaray file I built. Best regards, On Tue, Apr 21, 2009 at 7:58 AM, Peter pkana...@gmail.com wrote: Ok, my problem has returned, so the above fix wasn't it. Here's my crash report. Any ideas? Process: emulator [321] Path: /usr/local/dev/android/android-sdk-mac_x86-1.5_pre/ tools/emulator Identifier: emulator Version: ??? (???) Code Type: X86 (Native) Parent Process: bash [275] Date/Time: 2009-04-20 19:27:34.808 -0400 OS Version: Mac OS X 10.5.6 (9G55) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0010 Crashed Thread: 0 Thread 0 Crashed: 0 emulator 0x000667a1 sock_address_init_resolve + 87 (sockets.c:631) Thread 0 crashed with X86 Thread State (32-bit): eax: 0x0008 ebx: 0xbfffcb98 ecx: 0x edx: 0x edi: 0xbfffcb5c esi: 0x ebp: 0x0085fa80 esp: 0xbfffcb20 ss: 0x001f efl: 0x00010202 eip: 0x000667a1 cs: 0x0017 ds: 0x001f es: 0x001f fs: 0x gs: 0x0037 cr2: 0x0010 Binary Images: 0x1000 - 0x19a46b +emulator ??? (???) /usr/local/dev/android/ android-sdk-mac_x86-1.5_pre/tools/emulator 0x8fe0 - 0x8fe2db43 dyld 97.1 (???) 100d362e03410f181a34e04e94189ae5 /usr/lib/dyld 0x90003000 - 0x90003ffd com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/ Library/Frameworks/vecLib.framework/Versions/A/vecLib 0x900a4000 - 0x904b4fef libBLAS.dylib ??? (???) /System/Library/ Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ Versions/A/libBLAS.dylib 0x904b5000 - 0x904ddff7 com.apple.shortcut 1 (1.0) 057783867138902b52bc0941fedb74d1 /System/Library/PrivateFrameworks/ Shortcut.framework/Versions/A/Shortcut 0x904de000 - 0x9052fff7 com.apple.HIServices 1.7.0 (???) 01b690d1f376e400ac873105533e39eb /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices 0x9053 - 0x9080aff3 com.apple.CoreServices.CarbonCore 786.11 (786.11) f06fe5d92d56ac5aa52d1ba182745924 /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ Versions/A/CarbonCore 0x9080b000 - 0x90820ffb com.apple.ImageCapture 5.0.1 (5.0.1) /System/ Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ ImageCapture.framework/Versions/A/ImageCapture 0x9085b000 - 0x90871fff com.apple.DictionaryServices 1.0.0 (1.0.0) ad0aa0252e3323d182e17f50defe56fc /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/ DictionaryServices.framework/Versions/A/DictionaryServices 0x90872000 - 0x908effef libvMisc.dylib ??? (???) /System/Library/ Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ Versions/A/libvMisc.dylib 0x908f - 0x908f6fff com.apple.print.framework.Print 218.0.2 (220.1) 8bf7ef71216376d12fcd5ec17e43742c /System/Library/Frameworks/ Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/ Print 0x908f7000 - 0x908f8ffc libffi.dylib ??? (???) a3b573eb950ca583290f7b2b4c486d09 /usr/lib/libffi.dylib 0x908f9000 - 0x90984fff com.apple.framework.IOKit 1.5.1 (???) f9f5f0d070e197a832d86751e1d44545 /System/Library/Frameworks/ IOKit.framework/Versions/A/IOKit 0x9121 - 0x912d7ff2 com.apple.vImage 3.0 (3.0) /System/Library/ Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/ Versions/A/vImage 0x9155c000 - 0x91589feb libvDSP.dylib ??? (???) b232c018ddd040ec4e2c2af632dd497f /System/Library/Frameworks/ Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/ libvDSP.dylib 0x91597000 - 0x9161eff7 libsqlite3.0.dylib ??? (???) 6978bbcca4277d6ae9f042beff643f7d /usr/lib/libsqlite3.0.dylib 0x9161f000 - 0x916bcfe4 com.apple.CFNetwork 422.15.2 (422.15.2) 80851410a5592b7c3b149b2ff849bcc1 /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/ Versions/A/CFNetwork 0x916bd000 - 0x916c4ff7 libCGATS.A.dylib ??? (???) 386dce4b28448fb86e33e06ac466f4d8 /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib 0x916c6000 - 0x91720ff7 com.apple.CoreText 2.0.4 (???) f9a90116ae34a2b0d84e87734766fb3a /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/ Versions/A/CoreText 0x91721000 - 0x91725fff libmathCommon.A.dylib ??? (???) /usr/lib/ system/libmathCommon.A.dylib 0x91726000 - 0x91741ffb libPng.dylib ??? (???) 4780e979d35aa5ec2cea22678836cea5 /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ Versions/A/Resources/libPng.dylib 0x917fa000 - 0x91805fe7 libCSync.A.dylib ??? (???) e6aceed359bd228f42bc1246af5919c9
[android-developers] Re: SDK 1.5 Error
First you should create a avd file for your emulator: the command line is: cd sdk_dir android create avd -n my_avd -t 1 On 4月14日, 下午5时42分, vinny.s...@gmail.com vinny.s...@gmail.com wrote: Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted. when i'm going to Run the SDk 1.5 Project the Following error is going to get any body knows thiss --~--~-~--~~~---~--~~ 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: SDK 1.5 Error
While i run the emulator with command line, i get an error message: emulator: ERROR: You did not provide the name of an Android Virtual Device with the '-avd name' option. Read -help-avd for more information. If you *really* want to *NOT* run an AVD, consider using '-data file' to specify a data partition image file (I hope you know what you're doing). On 4月14日, 下午5时42分, vinny.s...@gmail.com vinny.s...@gmail.com wrote: Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted. when i'm going to Run the SDk 1.5 Project the Following error is going to get any body knows thiss --~--~-~--~~~---~--~~ 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 delete package programmatically without UI
Thanks for your help. BR, -Jiang --- 09年4月8日,周三, Al Sutton a...@funkyandroid.com 写道: 发件人: Al Sutton a...@funkyandroid.com 主题: [android-developers] Re: How to delete package programmatically without UI 收件人: android-developers@googlegroups.com 日期: 2009,48,周三,2:40下午 A user should always know when an application is being removed from their system, so there is no way. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Jiang Sent: 08 April 2009 04:44 To: android-developers@googlegroups.com Subject: [android-developers] How to delete package programmatically without UI Hello Guys, We can delete package by following steps below: Uri uri = Uri.fromParts(package, strPackageName, null); Intent it = new Intent(Intent.ACTION_DELETE, uri); startActivity(it); But in that way, Applications Manager's UI will display, my question is how to delete packages silently (without Applications Manager's UI showing), Thanks greatly. -Jiang 好玩贺卡等你发,邮箱贺卡全新上线! ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to delete package programmatically without UI
Hello Guys, We can delete package by following steps below: Uri uri = Uri.fromParts(package, strPackageName, null); Intent it = new Intent(Intent.ACTION_DELETE, uri); startActivity(it); But in that way, Applications Manager's UI will display, my question is how to delete packages silently (without Applications Manager's UI showing), Thanks greatly. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to hide an Activity
Hello guys. Two activities exist simultaneously, when some event occurs, I want to make one activity showing and another hiding without close. In other words, I want to switch between two activities without closing, I tried to hide activity but no such interface is provided, how can I implement this feature? Thanks. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to set item's height of ListView
Hello, Guys. The default item's height of ListView is too large, how can I set it's height? just like ApiDemos/Views/Lists/6. ListAdapter Collapsed. Thanks! -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to display a horizontal bar
Hello guys. I want to display a horizontal bar in the view, just like the separator of ListView, in other words, the left/right of the bar is fading, I tried as following: Define UI elements in xml: TableLayout xx .. !--Following line is horizontal bar -- View android:height=5sp android:background=#FF909090 android:fadingEdge=horizontal /TableLayout Then the horizontal bar is shown, but the left/right of the bar is not fading. Would you give me any suggestion? Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 display a horizontal bar
It works, thanks a lot. -Jiang --- 09年3月31日,周二, Jon Colverson jjc1...@gmail.com 写道: 发件人: Jon Colverson jjc1...@gmail.com 主题: [android-developers] Re: How to display a horizontal bar 收件人: Android Developers android-developers@googlegroups.com 日期: 2009,331,周二,7:36下午 On Mar 31, 11:25燼m, Jiang webs...@yahoo.cn wrote: I want to display a horizontal bar in the view, just like the separator of ListView, in other words, the left/right of the bar is fading This is how it's done in the Contacts app: View android:layout_width=fill_parent android:layout_height=1dp android:background=?android:attr/listDivider / -- Jon ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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: why I can't access http://developer.android.com
Use this url: http://androidappdocs.appspot.com On Fri, Mar 27, 2009 at 2:09 PM, kingfu kingfu2...@gmail.com wrote: Now I am in China. --~--~-~--~~~---~--~~ 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 i use vold(New volume manager daemon) to automatically mount sdcard when device startup?
Hi, all I am porting android to my own device now. I checkout the latest source code from android.git.kernel.org. I have successfully compilated filesystem images and burn those images to my devices. But i couldn't automatically mount my sdcard when android startup. The / sdcard directory is empty when i used 'ls /sdcard' command. I have copied the vold.conf file from development/data/etc direcotry to my device(/system/etc), but it's invalidated. When i read the source code(vold), i found the vold daemon relate to switch driver, device mapper driver and android gadget driver. Are there some document or information about how to configurate android kernel to support vold new volume management and wirte right vold.conf configuration file? Is anyone can help me? Thank you a lots~! BR! linuxemacs --~--~-~--~~~---~--~~ 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: Problem w ith setTheme() method
Please invoke setTheme() just before setContentView() --- 09年3月19日,周四, Marcus marcus.ter...@gmail.com 写道: 发件人: Marcus marcus.ter...@gmail.com 主题: [android-developers] Re: Problem with setTheme() method 收件人: Android Developers android-developers@googlegroups.com 日期: 2009,319,周四,3:31下午 I'm sorry. But even if I put the setTheme on the first line of onCreate (even beforce super.onCreate), I get a dark black background and not a transparent/blur background. But if I set the theme in the manifest, it works. It's not a great problem, because I can set it in the manifest. But really strange. Also if I create an own theme which inherits the Dialog-Theme with parent=@android:style/Theme.Dialog and change nothing in the body, I don't get the transparent background! Is there a trick or something more to consider? ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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: Extra I cons in Menu
activity android:name=.mainApp android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.education android:label=@string/education / --- 09年3月20日,周五, Grant Kimm grantk...@hotmail.com 写道: 发件人: Grant Kimm grantk...@hotmail.com 主题: [android-developers] Re: Extra Icons in Menu 收件人: android-developers@googlegroups.com 日期: 2009,320,周五,10:12上午 #yiv2114977463 .hmmessage P { margin:0px;padding:0px;} #yiv2114977463 { font-size:10pt;font-family:Verdana;} Hi, Thanks for the reply. Here is my code sample. activity android:name=.mainApp android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.education android:label=@string/education intent-filter !-- What goes here instead of MAIN or LAUNCHER? -- action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity What do I need for the intent information for activities that are within the main app, but not the root activity? Education is an activity that a user can launch after getting into the mainApp activity. Thanks. Date: Thu, 19 Mar 2009 19:08:13 -0700 Subject: [android-developers] Re: Extra Icons in Menu From: jmcg...@gmail.com To: android-developers@googlegroups.com On Mar 19, 4:44 am, Grant Kimm grantk...@hotmail.com wrote: Hi, When I run my app, I see about 8 or 9 icons in the main phone menu. One is to run the app, and the others actually run activities within the app. I want there to only be one icon for users. Any ideas as to why this is happening? My code is structured similar to examples from the book Android - A Programmers Guide by JF DiMarzio. How do I hide the other icons so users have to start at the main menu screen? Check your manifest for these lines: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter Make sure you *only* have those under your main activity, the one you want to appear in the launcher. Jesse ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 re ad the file in sdcard?
Sorry, you need to write like: FileInputStream is = new FileInputStream(/sdcard/your_file); --- 09年3月17日,周二, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: 回复: [android-developers] Re: How to read the file in sdcard? 收件人: android-developers@googlegroups.com 日期: 2009,317,周二,5:17下午 InputStream is = new InputStream(/sdcard/your_file); --- 09年3月17日,周二, AlexNguyen alexnt...@gmail.com 写道: 发件人: AlexNguyen alexnt...@gmail.com 主题: [android-developers] Re: How to read the file in sdcard? 收件人: Android Developers android-developers@googlegroups.com 日期: 2009,317,周二,5:15下午 I created the file.java to read file so I don't know why it's error. And there's the error: android.content.res.AssetManager $AssetInputStream public class Test1 extends Activity{ /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); readfilefromlocal(this); } protected void readfilefromlocal(Context ctx) { FileInputStream istream = null; TextView tv = new TextView (this); try { istream = (FileInputStream)ctx.getResources().openRawResource (R.raw.sample); SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); ExampleHandler myExampleHandler = new ExampleHandler(); xr.setContentHandler(myExampleHandler); xr.parse(new InputSource(istream)); ParsedExampleDataSet parsedExampleDataSet = myExampleHandler.getParsedData(); tv.setText(parsedExampleDataSet.toString1()); } catch (Exception e){ tv.setText(Error: + e.getMessage()); } this.setContentView(tv); } } If I want to modify to read file at sdcard, how must i do? Thanks, --Alex 好玩贺卡等你发,邮箱贺卡全新上线! ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] Is it possible to get notification when a application is about to be launched
Hello guys, I need to execute some operation when the specific application is launched, it is possible to get notification when an application is to be launched, or after it is launched? Thanks. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 it p ossible to get notification when a application is about to be launched
Thanks for your replay. many people may have various requirement but Android doesn't support now, could you set up a type of communication pipe to let user present their suggestion? :-) Thanks. -Jiang --- 09年3月16日,周一, Dianne Hackborn hack...@android.com 写道: 发件人: Dianne Hackborn hack...@android.com 主题: [android-developers] Re: Is it possible to get notification when a application is about to be launched 收件人: android-developers@googlegroups.com 日期: 2009,316,周一,3:25下午 Nope, sorry. On Sun, Mar 15, 2009 at 11:45 PM, Jiang webs...@yahoo.cn wrote: Hello guys, I need to execute some operation when the specific application is launched, it is possible to get notification when an application is to be launched, or after it is launched? Thanks. -Jiang 好玩贺卡等你发,邮箱贺卡全新上线! -- 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. All such questions should be posted on public forums, where I and others can see and answer them. ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] [From Jiang] How to receive Email/Gmail programatically
Hello, Guys, I need to read all Email and Gmail, then remove the specific one(s). But I found Android doesn't provide APIs to receive Email, and I read Gmail failed as following: ContentResolver resolver = getContentResolver(); Uri uriGmail = Uri.parse(content://gmail/); Cursor cursor = resolver.query(uriGmail, null, null, null, null); . function resolver.query(xxx) returns null; how can I implement those features? Thanks a lot. BR, -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] (from Jiang) How to get notification when sd card is inserte d/mounted?
Aha, I found the reason, we need to register broadcast receiver as following: MyBroadcastReceiver myReceiver = new MyBroadcastReceiver(); IntentFilter filter = new IntentFilter(Intent.ACTION_MEDIA_MOUNTED); filter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); filter.addAction(Intent.ACTION_MEDIA_EJECT); ... filter.addDataScheme(file); //I forgot this line registerReceiver(myReceiver, filter); --- 09年3月11日,周三, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] (from Jiang) How to get notification when sd card is inserted/mounted? 收件人: android-developers@googlegroups.com 日期: 2009,311,周三,3:26下午 Hello guys, I registered a broadcast receiver with action android.intent.action.MEDIA_MOUNTED, but when sd card is inserted, the broadcast is not sent out. Any one could help me to solve this issue? Thanks in advance. -Jiang 好玩贺卡等你发,邮箱贺卡全新上线! ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] (from Jiang) How to get notification when sd card is inserted/mounted?
Hello guys, I registered a broadcast receiver with action android.intent.action.MEDIA_MOUNTED, but when sd card is inserted, the broadcast is not sent out. Any one could help me to solve this issue? Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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: Am I able to hook file system on Android
Yes, I tried that solution, but the registered function is not invoked when a file is modified. Maybe rather than regular files, those APIs are only available for Content Providers, such as SMS, Contract, Media etc. Thanks! -John --- 09年3月4日,周三, Marco Nelissen marc...@android.com 写道: 发件人: Marco Nelissen marc...@android.com 主题: [android-developers] Re: Am I able to hook file system on Android 收件人: android-developers@googlegroups.com 日期: 2009,34,周三,1:36上午 While a content provider is the preferred way to control access to data your app has, it won't do what the original poster was asking for. There is no way to intercept access to any random file. On Tue, Mar 3, 2009 at 1:34 AM, Philipp Stecher p...@hexdust.net wrote: Hi I think what you are looking for is a ContentProvider. Be sure to read the document on Datastorage too. (in your SDK directory at docs/guide/topics/data/data-storage.html) good luck, philipp Hello guys. Am I able to hook file system on Android? that means before a file is opened by other application, a registered function by the third application is invoked, and in the registered function, it can decide whether permit other application to open that file. Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to get socket connectivity notification
Hello Guys, I need to monitor socket connectivity and close specific connection. I tried broadcast receiver with Intent action android.net.conn.CONNECTIVITY_CHANGE, but it seems that doesn't work. Is it possible to implement my feature? Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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: Am I able to hook file system on Android
Thanks for your replay. I'll replay this topic after reading the documents and doing some test. --- 09年3月3日,周二, Philipp Stecher p...@hexdust.net 写道: 发件人: Philipp Stecher p...@hexdust.net 主题: [android-developers] Re: Am I able to hook file system on Android 收件人: android-developers@googlegroups.com 日期: 2009,33,周二,5:34下午 #yiv1330989389 p, #yiv1330989389 li {white-space:pre-wrap;} Hi I think what you are looking for is a ContentProvider. Be sure to read the document on Datastorage too. (in your SDK directory at docs/guide/topics/data/data-storage.html) good luck, philipp Hello guys. Am I able to hook file system on Android? that means before a file is opened by other application, a registered function by the third application is invoked, and in the registered function, it can decide whether permit other application to open that file. Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] Am I able to hook file system on Android
Hello guys. Am I able to hook file system on Android? that means before a file is opened by other application, a registered function by the third application is invoked, and in the registered function, it can decide whether permit other application to open that file. Thanks in advance. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] Does bitwise operation for the number of contains bug?
Hello guys, I want to obtain least 32 bits from a number of type long, so I perform bitwise operation on the number with bits mask 0x, but the result is error, it still contains other bits. for example: long a = 0x1234567890abL; long b = (a 0x); I expect the value of b is 0x567890abL, but in practice, it is still 0x1234567890abL. Is this a bug ? Thanks. -John. ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] Does bitwis e operation for the number of contains bug?
Sorry, it's my faults. I should change the line long b = (a 0x); to long b = (a 0xL); --- 09年2月18日,周三, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: [android-developers] Does bitwise operation for the number of contains bug? 收件人: android-developers@googlegroups.com 日期: 2009,218,周三,4:41下午 Hello guys, I want to obtain least 32 bits from a number of type long, so I perform bitwise operation on the number with bits mask 0x, but the result is error, it still contains other bits. for example: long a = 0x1234567890abL; long b = (a 0x); I expect the value of b is 0x567890abL, but in practice, it is still 0x1234567890abL. Is this a bug ? Thanks. -John. 好玩贺卡等你发,邮箱贺卡全新上线! ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to get what process has openned the file?
What has process openned the specified file? On Linux, we can implement that simply by reversing directory /proc/pid/fd/ for all PIDs. But how to implement this function on Android? Thanks a lot. -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to bring a existing activity to foregroung when the application icon in program list is clicked
When the application icon in program list is clicked, create a new activity if the activity does not exist, or bring the existing activity to foreground. I tried to add add launchMode to manifest but that does not take effect, The related part of manifest like: activity android:name=.MyActivity android:label=@string/app_name android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity How can I implement it? Thanks in advance! BR, -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 to get the position of the click point.
Hi, I'm working on a simple application, I need the application to give different response when the user click different position of the screen. But it seems I can't get the position in the OnClickLisenter, I tried OnTouchListener, but it's not as well as I expected. Can you give me some help on 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] How to judge a file/directory is a symbol link
Hello, guys. I need to traverse all files recursively in the specified path, but I found a directory is a symbol link to its parent/ancestor, so the traversal behavior never completes. My question is how to judge a file/directory is a symbol link. Thanks a lot. BR, -John ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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] Can one application removes files of other application?
I tried following methods, but looks like all of them are infeasible: 1) From Android official documents, I did't find proper permission to be added to application manifest; 2) I want to use 'setuid su' security hole, but that is fixed on Android RC30. Is it possible to remove files of other application? ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Where is the android.jar source
frameworks/base/core/java/android Regards, Evan JIANG On Fri, Nov 7, 2008 at 11:22 AM, NY [EMAIL PROTECTED] wrote: I visit git.source.android.com want to find the source of android.jar such as the package android.app, android.widget but I can not find them where are they? thx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how the library files (c, c++) are linked with framework (java files)
Just for an example, There`s a file FileObserver.java under framewors/base/core/java/android The linked jni file is android_util_FileObserver.cpp under frameworks/base/core/jni The path may be not exactly right. I`m writing mail from my cell phone. Regards, Evan 2008/11/4, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, How is the framework and the corresponding library files are linked through the JNI layer? Any particular example through with i can understand one to one mappings from java to c/c++ code? If anybody have worked on this, please reply. Thanks in advance. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: OpenDatabase error
I guess it`s permission problem. Why not access the settings through the SettingsProvider? Regards Evan 2008/11/5, Kingorcus [EMAIL PROTECTED]: db = SQLiteDatabase.openDatabase(/data/data/ com.android.providers.settings/databases/settings.db, null,SQLiteDatabase.OPEN_READONLY); I keep getting an exception unable to open database file any ideas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Add an item click listener on the ListView
HI, listViewXMLFiles.setOnItemClickListener() Regards, Evan JIANG On Wed, Nov 5, 2008 at 11:26 AM, Anshul [EMAIL PROTECTED] wrote: I have created a ListView and want to register a listener whenever an item on the listview is clicked. I saw a lot of references on implementing the onListItemClick function but it requires that my class be derived from ListActivity. My activity has few buttons, some edittestboxes and a listview so I don't want to derive my class from ListActivity. Is there any way I can add an item click listener to the list view. I create a list view using the following code. listViewXMLFiles = (ListView) findViewById(R.id.ListViewXMLFiles); ListAdapter listAdapter = new ArrayAdapterString(this, android.R.layout.simple_list_item_1, mStrings); listViewXMLFiles.setAdapter(listAdapter); // TODO: Add a item select listener, Thanks, -Anshul --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Lock view orientation?
Change your activity attributes in the AndroidManifest.xml Like: Activity android:name=foo *android:screenOrientation=portrait* /Activity Best regards, Evan JIANG On Wed, Nov 5, 2008 at 11:33 AM, Eric B [EMAIL PROTECTED] wrote: I'd like my app to always display like the keyboard on the G1 is hidden (portrait). I've looked at the Window API and search the forums, but I couldn't figure out how to specify this. Anyone know if this is possible? Thanks, Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing Import android.provider.Telephony
The class and APIs are still there. But the document is hidden. You can have a look at android source code: ROOT/frameworks/base/core/java/android/provider/Telephony.java Best regards, Evan JIANG On Wed, Nov 5, 2008 at 12:14 PM, Shawn Burkit [EMAIL PROTECTED]wrote: I do not see this int the newest list of apis... has this been removed or replaced? If it has been replaced can someone please tell me what its replacement is? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: R.java
Hi, You can have a look at ANDROID_SDK/tools/lib/build.template Best regards, Evan JIANG On Wed, Nov 5, 2008 at 11:08 AM, Mr Chaloo [EMAIL PROTECTED] wrote: Hi, Is there any way to make the R.java using Ant scripts. If some one have idea...let me know. Thanks. Mr Chaloo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
There's a android.database.CursorJoiner class to join 2 cursors On Fri, Oct 24, 2008 at 5:44 PM, zero [EMAIL PROTECTED] wrote: it depends on what you're up to. if you just want to join accross tables, in a contentprovider, you can do that with the querybuilder object. also, from the outside, afaik it's possible to use sql syntax in the selectstring. if you want to join data *across* different contentproviders, (meaning across different databases), thats going to be hard. easiest way i found to do that is creating another provider which effectively doubles the data and syncing that every time the app starts. On Oct 24, 9:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Content observers for SMS mailboxes
The sms provider's source code is in ROOT_OF_ANDROID_SOURCE_CODE/packages/providers/TelephonyProvider/SmsProvider.java After had a look at that, I found you're right. It only send UriChange notification on 3 Uris. I'm not sure if it's a bug. You can register your content observer on content://sms. After get the notifyChange, query the latest SMSes, and check the sent flag to judge is it a sent sms or received sms. Regards, Evan JIANG On Fri, Oct 24, 2008 at 8:22 AM, denismo [EMAIL PROTECTED] wrote: Hi, I've spent several days trying to figure out how to listen for sent SMS. One thing that I tried is content observers on content://sms/sent. That didn't work. Then I tried content://sms/inbox. That didn't work either. In my scenarios, I was doing two things: - sending SMS to emulator using telnet sms send some number some text. This generates notification in the notification area, and you can read the sms later, but content observer on content://sms/inbox is not invoked - sending SMS from one emulator to another. I had one on 5554, another on 5556. I had content observers on both on content://sms/inbox and content://sms/sent and I was sending sms from 5554 to 5556 using sendTextMessage(5556, null, ...). I saw SMS being received by 5556, there was notification and I could read the SMS on 5556. None of the observers were invoked. So now I start wondering if content observers are at all support for SMS content provider? The same content observers, when installed on content://contacts/people, are invoked fine when I add a new contact, so I know I'm using the right API and use it correctly. Any clues? Anyone has any examples of listening on these content providers? Or listening on different content providers which do give you information about sent SMS? Thanks. Denis --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Looking for a TextView with hyperlinks
See APIDemos - Text - LinkyText Regards, Evan JIANG On Tue, Jul 22, 2008 at 10:53 AM, Gavin Bong [EMAIL PROTECTED] wrote: Has anyone opensourced a TextView that will render urls as clickable links (fire up WebKit on receiving a clickc event) ? If not, I'll write one myself. Thanks Gavin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SDK Update?
Good question. In the same time, Apple had released 5 updates of iphone sdk. On Sat, May 10, 2008 at 9:23 AM, Gil [EMAIL PROTECTED] wrote: It's been more than two months since the release of m5-rc15. Can anyone from Google give us an update on the next SDK release schedule? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to set rich text in TextView?
Thank you for your reply. Is there any examples to show how to use SpannableString. In the method like SpannableStringBuilder.setSpan(Object what, int start, int end, int flags) , I've no idea what type of Object of the parameter what is needed. Best regards, Evan JIANG On Fri, Apr 4, 2008 at 4:12 PM, Romain Guy [EMAIL PROTECTED] wrote: I believe it is possible to do this by using a Spannable and BackgroundColorSpan. You can take a look at the documentation for SpannableStringBuilder if you want more information. On Fri, Apr 4, 2008 at 1:04 AM, Dan U. [EMAIL PROTECTED] wrote: It also supports u/u, but I don't think there's any way to set a color only for specific words in the string without implementing your own TextView. Either that or string together multiple textviews with appropriate colors, but that probably isn't the best idea. On Apr 4, 12:35 am, Evan JIANG [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 3:34 PM, Evan JIANG [EMAIL PROTECTED] wrote: Hi all, I find that TextView not support plain text. In APIDemos, there's Sorry, should be I find that TextView not only support plain text. a sample to set a text with b/b , i/i tags in TextView. But does TextView only support these two tags? Is it possible to set different font backgroud color in a TextView? My goal is to highlight words in a string. Best regards, Evan JIANG -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---