Re: [android-developers] Fix for OutofMemoryError: bitmap size exceeds VM budget

2010-06-16 Thread haric zhu
Because the memory of cell phone is very limited, so when you are operating a bitmap it will take too much resource, it is no perfect way to avoid, the only thing you can do is to optimize it, like more bigger sample size, maybe options.inSampleSize = 10, or adjust the value of height and width, th

Re: [android-developers] Re: Start an App via the Web

2010-06-16 Thread haric zhu
You can use hooked javascript to call Activity for your website. 2010/6/17 Kumar Bibek > Well, The cloud-to-device messaging feature that was announced with > Froyo will help you in this.Check out the vidoes at Google I/O 2010 > > Thanks and Regards, > Kumar Bibek > http://tech-droid.blogspot.co

Re: [android-developers] ProgressBar.setProgressDrawable bug

2010-06-16 Thread haric zhu
Have you made an xml like default theme does? 2010/6/17 ls02 > Apparently ProgressBar.setProgressDrawable has bug, if called to set > new drawable, progress bar disappears completely. Is there any other > way to change progress bar color dynamically at run time? > > -- > You received this messag

Re: [android-developers] Re: how to make the tab view which like ASTRO Filemanager

2010-06-16 Thread haric zhu
I think you can customize one, extends TabHost and change it's behavior 2010/6/17 Kumar Bibek > I suspect thats not a TabHost. It's a Gallery. > > Thanks and Regards, > Kumar Bibek > http://tech-droid.blogspot.com > > On Jun 12, 7:10 am, petitlen wrote: > > hi,does any one use ASTRO?i feel the

Re: [android-developers] Re: Layout Highlight

2010-02-05 Thread haric zhu
und. > > Then how can i set these background too...? Pls ?.. > > > > > > > > On Fri, Feb 5, 2010 at 4:58 PM, haric zhu wrote: > > > HI Sasikumar.S, you can set a xml file as it's background like ListView > > > default action > >

Re: [android-developers] Finding Layout in Activity

2010-02-05 Thread haric zhu
Yes, you should try this LayoutInflater _inflater = LayoutInflater.from(context); to relect the layout file into your code Like: View view= _inflater .inflate(R.layout.tool_bar_ menu_item, parent, false); this view object is just you want. 2010/2/5 Sasikumar.S > Hi, > > >

Re: [android-developers] Layout Highlight

2010-02-05 Thread haric zhu
HI Sasikumar.S, you can set a xml file as it's background like ListView default action add this --> android:background="@android:drawable/list_selector_background" to your layout file 2010/2/5 Sasikumar.S > Hi, > > Can any one know how to highlight when we touch the layout? > > In my program

Re: [android-developers] Re: options menu items

2010-02-04 Thread haric zhu
I think it is not possible currently, but you can right a dialog like List Activity to do this, i mean customize it. 2010/2/5 Robert Nekic > I was about to start looking into this, too. I have several items in > a "More" menu and I would like to slightly adjust the height of each > item. I ass

Re: [android-developers] how to use com.android.internal.telephony

2010-02-04 Thread haric zhu
Hi, you can copy some classes for android.internal.telephony into you own project, will be OK in using. 2010/2/4 saru > hey i need to use com.android.internal.telephony package for my > development. but i am in a doubt whether i would use > android.internal.telephony package or how > > P

Re: [android-developers] next activity

2010-02-03 Thread haric zhu
Have you added Activity description in AndroidManifest.xml? If you have done that, there should be no problem. 2010/2/4 Madiba > I have a question about displaying next activity on the emulator… the > first activity displays fine on the emulator, it shows two spinners. > What I wanted to do next

Re: [android-developers] Download and Display 9 Patch Images

2010-02-03 Thread haric zhu
I think the 9 patch images can only be used in res folder, because it only will be explained by the ADT. 2010/2/4 brian karlo gutierrez > Hello Everyone, > > I have a question regarding 9 patch images. Is it possible to download > 9 patch png files from a webserver then display it as a backg

Re: [android-developers] Listview Text Filer Make Fast

2010-02-03 Thread haric zhu
If you use cursor adapter to filter text, it will be very fast. 2010/2/4 Sasikumar.S > Hi, > > I'm having a string array with 2500 items. > When add these items to my listview, my listview text filter is very slow > to access. > If i'm giving 'wa' to filter it will show the items starts from 'wa

Re: [android-developers] How to add some button dynamicly after setContentView

2010-02-03 Thread haric zhu
Yes, you should use LayoutInflater _inflater = LayoutInflater.from(context); to relect the layout file into your code Like: View itemView = _inflater .inflate(R.layout.tool_bar_menu_item, parent, false); then you can add something you want to itemView I hope this will be help