[android-developers] Proper usage of Fragments + ActionBar

2011-10-19 Thread Sebastian Roth
Hi everyone: Guess I need some help on how to use the ActionBar in combination with Fragments. Simple App Structure: Activity A Fragment 1 Fragment 2 Activity A loads, starts Fragment 1. Fragment one contains code to set the ActionBar: @Override public void onResume() {

Re: [android-developers] WifiLock and WakeLock regarding large downloads

2011-03-29 Thread Sebastian Roth
Hold on a second here: device policy of shutting down wifi and switching to 3g after 15 minutes of screen off - that means if I'm at home sleeping (with WiFI enabled), the device will not use WiFi but 3G over night? Can you confirm this? Where is this specified? On Tue, Mar 29, 2011 at 10:41

[android-developers] android:textAppearance on button

2011-03-21 Thread Sebastian Roth
Hello: Suppose I have this button: Button android:layout_width=179dp android:layout_height=match_parent android:layout_centerHorizontal=true android:background=@drawable/bg_act_incall_actions_end_call android:text=End Call

[android-developers] Re: Usage of android:textAppearence vs. style attributes

2011-03-18 Thread Sebastian Roth
. For the elements noticed in the stackoverflow question, I might simply haven't seen it as #33 on light gray background looks like black.. sorry thx. BR, Sebastian On Thu, Mar 17, 2011 at 11:29 PM, Sebastian Roth sebastian.r...@gmail.comwrote: [shamelessly copied from http

[android-developers] Usage of android:textAppearence vs. style attributes

2011-03-17 Thread Sebastian Roth
[shamelessly copied from http://stackoverflow.com/questions/5337680/using-androidtextappearance-on-textview-edittext-fails-but-style-worksas I believe we have proficient API aware people reading here ;-)] Hello, I'm facing a problem that TextView or EditText *text* styling via textAppearance

Re: [android-developers] SDK 11 is the slowest yet

2011-02-23 Thread Sebastian Roth
Have you tried tuning eclipse.ini options to enable higher memory limits? Sometimes, if a java app is running 100% it could be related to the garbage collector collecting (or, trying to) memory all the time. Else I would try uninstalling unneeded plugins. BR, Seb, not an eclipse user anymore On

Re: [android-developers] Re: How to delete...?

2011-02-15 Thread Sebastian Roth
On Tue, Feb 15, 2011 at 3:19 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: My problem was solved like this.. myDB.execSQL(DELETE FROM favourites where month=' +str1+ ' ); Pls. *don't* use this style of writing SQL queries! JAlexoid (Aleksandr Panzin) had a good

Re: [android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-25 Thread Sebastian Roth
, so the tools don't seem to find them. Since the bitmaps are marked as purgeable, they could be taking only 20K bytes, or as much as 256K bytes, so there is a wide range. Nathan On Jun 17, 8:35 am, Sebastian Roth sebastian.r...@gmail.com wrote: Yup. We've been running in that case too many

Re: [android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-25 Thread Sebastian Roth
Hi Kevin: I think the memory for high megapixel images is not so important because u usally will stream the image through a InputStream onto disk. You can then read the image via BitmapFactory and set a inSampleSize to retrieve it. BR, Seb, starting up a WIKI for android memory issues.. On Fri,

Re: [android-developers] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-17 Thread Sebastian Roth
Yup. We've been running in that case too many times. Invest in a good tool like Yourkit, use HPROF Heap dumps to find the objects with the sticky connects to JVM root and prepare to spend nights on trying again and again.. I recommend writing automated Unit-Tests for that as well. So that you can

Re: [android-developers] Re: How to find memory leak?

2010-06-09 Thread Sebastian Roth
But when doing that, do not forget to convert the snapshots using * hprof-conv*. I'm still searching for a automatic way. We're using: for i in *.andhprof; do hprof-conv $i `basename $i .andhprof`.new.hprof ;done On Thu, May 20, 2010 at 8:19 PM, Mathias Lin m...@mathiaslin.com wrote: Yourkit,