[android-developers] about KeyStore
hi all, I want to use the keystore to fix issue of the install package. but I read the source code, that I can not found the source code of KeyStore.PrivateKeyEntry ?? but I read the api/xml file and can get the information of KeyStore.PrivateKeyEntry. 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 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 meands of oneway interface ?
hi all. I read some aidl file that use the oneway. and I don't know what's means of it? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] packagemanager aidl files
hi all, I use the android 2.2 source code, but when I read the source code of packagemanager located in frameworks/base/core/java/android/content/pm/ there are some files such as PackageInfo.aidl, PackageInfoLite.aidl,so I wonder that aidl file name begin with the I letter, but these file are not. and I found that these files seems to have not used. because the PackageInfo class defined in PackageInfo.java implements from Parcelable. 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] about PackageManager.java
hi all, I read the PackageManager.java, this is only defined a abstract class, the derived class is defined in ContextImpl.java and use the ApplicationPackageManager. I wonder why not do in PackageManager.java? another pattern do it. such as PowerManager. 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] two method to get the service
于 2010年12月13日 15:44, Dianne Hackborn 写道: On Sun, Dec 12, 2010 at 11:27 PM, tangke mumut...@gmail.com mailto:mumut...@gmail.com wrote: I have a question that how to get a service? I have two different method to set backlightbrightness 1. IPowerManager pm = IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE)); pm.setBacklightBrightness(0); This is using private implementation details of the platform. An application using this is likely to break in the future. Heck, you can't even write this code without bypassing the standard SDK tools and building directly against the platform code. thanks. I know. 2. PowerManager mpm = (PowerManager)mContext.getSystemService(Context.POWEER_SERVICE); mpm.setBacklightBrightness(0); This is the supported SDK API. -- Dianne Hackborn Android framework engineer hack...@android.com mailto:hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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] two method to get the service
hi,all I have a question that how to get a service? I have two different method to set backlightbrightness 1. IPowerManager pm = IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE)); pm.setBacklightBrightness(0); 2. PowerManager mpm = (PowerManager)mContext.getSystemService(Context.POWEER_SERVICE); mpm.setBacklightBrightness(0); and I read the source code, that the two method will use the first method. PowerManager.java public void setBacklightBrightness(int brightness) { try { mService.setBacklightBightness(brightness); }catch(RemoteException e) { } } what is the difference of the two method? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] create the widgets?
hi guys. I am a new developer in android, and I see some examples about activity, but I don't know How can I create the widget dynamicly? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en