Re: [android-developers] insidious multi-threading bug
On Wed, Apr 24, 2013 at 10:26 AM, bob b...@coolfone.comze.com wrote: So, basically, the drawing thread was looping thru some enemy ships trying to draw them. Meanwhile, someone pressed the reset button on the game (an onTouchEvent), and the enemy ship LinkedList got cleared. This clearing occurred while the drawing thread was looping thru them. Thus an IndexOutOfBoundsException occurred. Anyhow, I guess my question is... how would the professional Android developer have prevented this? This is a bit of an advanced multi-threading question that is not specific to Android. In short, you need to synchronize any resource that is being accessed by multiple threads, in this case your list. There are many strategies and facilities for doing so, some built right into Java (see the synchronized keyword). You will have to do some research on multi-threaded resource use. - TreKing http://sites.google.com/site/rezmobileapps/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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Is this a bug at TabHost / TabActivity?
Set it at the activity in Manifest! Add the FULLSCREEN option there! On Tue, Oct 23, 2012 at 10:24 AM, Perry168 perry...@gmail.com wrote: Hi all, Following is my testing tabHost and activity. Layout ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:padding=0dp android:orientation=vertical FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 /FrameLayout TabWidget android:id=@android:id/tabs android:layout_weight=0 android:layout_width=fill_parent android:layout_height=wrap_content / /LinearLayout /TabHost ---TabActivity - public class tabtest extends TabActivity { private TabHost tabHost; public Context thisContext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.tabgroup); if (this.tabHost == null){ tabHost = getTabHost(); tabHost.setup(); tabHost.bringToFront(); TabSpec tab1 = tabHost.newTabSpec(Tab1); TabSpec tab2 = tabHost.newTabSpec(Tab2); TabSpec tab3 = tabHost.newTabSpec(Tab3); TabSpec tab4 = tabHost.newTabSpec(Tab4); TabSpec tab5 = tabHost.newTabSpec(Tab5); TabSpec tab6 = tabHost.newTabSpec(Tab6); tab1.setIndicator(Tab1,getResources().getDrawable(R.drawable.first)).setContent(new Intent(this,IntentGroup1.class)); tab2.setIndicator(Tab2,getResources().getDrawable(R.drawable.second)).setContent(new Intent(this,IntentGroup1.class)); tab3.setIndicator(Tab3,getResources().getDrawable(R.drawable.third)).setContent(new Intent(this,IntentGroup1.class)); tab4.setIndicator(Tab4,getResources().getDrawable(R.drawable.first)).setContent(new Intent(this,IntentGroup1.class)); tab5.setIndicator(Tab5,getResources().getDrawable(R.drawable.second)).setContent(new Intent(this,IntentGroup1.class)); tab6.setIndicator(Tab6,getResources().getDrawable(R.drawable.third)).setContent(new Intent(this,IntentGroup1.class)); tabHost.addTab(tab1); tabHost.addTab(tab2); tabHost.addTab(tab3); tabHost.addTab(tab4); tabHost.addTab(tab5); tabHost.addTab(tab6); } } } - https://lh4.googleusercontent.com/-DkProfjgRdQ/UIZBDCwNAEI/AOc/g0JYvOaWR3s/s1600/pq2.jpg The IntentGroup1.class just a Hello,world activity, so I not post it on here. Does anyone know how to solve the black spacing problem? This problem wasted me much days. I had try to test many times. Following is my observed information: 1) If it deleted getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN). It will not have shifted down problem. Also I found that the black spacing size is similar to status bar size. 2) when running the activity in Emulator (API 7 10) , they have same problem. But if running in API 14, It will not have this problem. Unfortunately, the apps is running for API 7 or above. Does anyone give me some help? Does any other method to change full screen? 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
Re: [android-developers] Is this a bug at TabHost / TabActivity?
Could you tell me how to add? I am not clearly. Thanks a lot! Paul-Peter Tournaris於 2012年10月23日星期二UTC+8下午9時15分20秒寫道: Set it at the activity in Manifest! Add the FULLSCREEN option there! On Tue, Oct 23, 2012 at 10:24 AM, Perry168 perr...@gmail.comjavascript: wrote: Hi all, Following is my testing tabHost and activity. Layout ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:padding=0dp android:orientation=vertical FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 /FrameLayout TabWidget android:id=@android:id/tabs android:layout_weight=0 android:layout_width=fill_parent android:layout_height=wrap_content / /LinearLayout /TabHost ---TabActivity - public class tabtest extends TabActivity { private TabHost tabHost; public Context thisContext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.tabgroup); if (this.tabHost == null){ tabHost = getTabHost(); tabHost.setup(); tabHost.bringToFront(); TabSpec tab1 = tabHost.newTabSpec(Tab1); TabSpec tab2 = tabHost.newTabSpec(Tab2); TabSpec tab3 = tabHost.newTabSpec(Tab3); TabSpec tab4 = tabHost.newTabSpec(Tab4); TabSpec tab5 = tabHost.newTabSpec(Tab5); TabSpec tab6 = tabHost.newTabSpec(Tab6); tab1.setIndicator(Tab1,getResources().getDrawable(R.drawable.first)).setContent(new Intent(this,IntentGroup1.class)); tab2.setIndicator(Tab2,getResources().getDrawable(R.drawable.second)).setContent(new Intent(this,IntentGroup1.class)); tab3.setIndicator(Tab3,getResources().getDrawable(R.drawable.third)).setContent(new Intent(this,IntentGroup1.class)); tab4.setIndicator(Tab4,getResources().getDrawable(R.drawable.first)).setContent(new Intent(this,IntentGroup1.class)); tab5.setIndicator(Tab5,getResources().getDrawable(R.drawable.second)).setContent(new Intent(this,IntentGroup1.class)); tab6.setIndicator(Tab6,getResources().getDrawable(R.drawable.third)).setContent(new Intent(this,IntentGroup1.class)); tabHost.addTab(tab1); tabHost.addTab(tab2); tabHost.addTab(tab3); tabHost.addTab(tab4); tabHost.addTab(tab5); tabHost.addTab(tab6); } } } - https://lh4.googleusercontent.com/-DkProfjgRdQ/UIZBDCwNAEI/AOc/g0JYvOaWR3s/s1600/pq2.jpg The IntentGroup1.class just a Hello,world activity, so I not post it on here. Does anyone know how to solve the black spacing problem? This problem wasted me much days. I had try to test many times. Following is my observed information: 1) If it deleted getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN). It will not have shifted down problem. Also I found that the black spacing size is similar to status bar size. 2) when running the activity in Emulator (API 7 10) , they have same problem. But if running in API 14, It will not have this problem. Unfortunately, the apps is running for API 7 or above. Does anyone give me some help? Does any other method to change full screen? 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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,
Re: [android-developers] Is this a bug at TabHost / TabActivity?
I found the method now ! It's work. Thanks a lot! Paul-Peter Tournaris於 2012年10月23日星期二UTC+8下午9時15分20秒寫道: Set it at the activity in Manifest! Add the FULLSCREEN option there! On Tue, Oct 23, 2012 at 10:24 AM, Perry168 perr...@gmail.comjavascript: wrote: Hi all, Following is my testing tabHost and activity. Layout ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:padding=0dp android:orientation=vertical FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 /FrameLayout TabWidget android:id=@android:id/tabs android:layout_weight=0 android:layout_width=fill_parent android:layout_height=wrap_content / /LinearLayout /TabHost ---TabActivity - public class tabtest extends TabActivity { private TabHost tabHost; public Context thisContext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.tabgroup); if (this.tabHost == null){ tabHost = getTabHost(); tabHost.setup(); tabHost.bringToFront(); TabSpec tab1 = tabHost.newTabSpec(Tab1); TabSpec tab2 = tabHost.newTabSpec(Tab2); TabSpec tab3 = tabHost.newTabSpec(Tab3); TabSpec tab4 = tabHost.newTabSpec(Tab4); TabSpec tab5 = tabHost.newTabSpec(Tab5); TabSpec tab6 = tabHost.newTabSpec(Tab6); tab1.setIndicator(Tab1,getResources().getDrawable(R.drawable.first)).setContent(new Intent(this,IntentGroup1.class)); tab2.setIndicator(Tab2,getResources().getDrawable(R.drawable.second)).setContent(new Intent(this,IntentGroup1.class)); tab3.setIndicator(Tab3,getResources().getDrawable(R.drawable.third)).setContent(new Intent(this,IntentGroup1.class)); tab4.setIndicator(Tab4,getResources().getDrawable(R.drawable.first)).setContent(new Intent(this,IntentGroup1.class)); tab5.setIndicator(Tab5,getResources().getDrawable(R.drawable.second)).setContent(new Intent(this,IntentGroup1.class)); tab6.setIndicator(Tab6,getResources().getDrawable(R.drawable.third)).setContent(new Intent(this,IntentGroup1.class)); tabHost.addTab(tab1); tabHost.addTab(tab2); tabHost.addTab(tab3); tabHost.addTab(tab4); tabHost.addTab(tab5); tabHost.addTab(tab6); } } } - https://lh4.googleusercontent.com/-DkProfjgRdQ/UIZBDCwNAEI/AOc/g0JYvOaWR3s/s1600/pq2.jpg The IntentGroup1.class just a Hello,world activity, so I not post it on here. Does anyone know how to solve the black spacing problem? This problem wasted me much days. I had try to test many times. Following is my observed information: 1) If it deleted getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN). It will not have shifted down problem. Also I found that the black spacing size is similar to status bar size. 2) when running the activity in Emulator (API 7 10) , they have same problem. But if running in API 14, It will not have this problem. Unfortunately, the apps is running for API 7 or above. Does anyone give me some help? Does any other method to change full screen? 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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
Re: [android-developers] Android ADT r20 Bug with Eclipse
It's fixed in ADT 20.0.1 which should be out soon. On Jul 13, 2012 6:41 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Its clearly a bug on last ADT update. You can safely remove those error messages either from the Problems view, or clicking on one with right button and selecting Clear lint messages. It is a bit annoying, but a reasonable workaround while they release a fixed version. On Jul 13, 2012 2:28 AM, Rafael Timmerberg raf...@googlemail.com wrote: Since the latest ADT update I have issues with Errors raised from Eclipse, although they are fixed and saved like this: Syntax error, insert ; to complete Statement. Usually I have to clean the Project or Cut the whole function to paste it again to get that error resolved. Has someone an idea, what is causing this issue? -- 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 -- 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] Android ADT r20 Bug with Eclipse
Its clearly a bug on last ADT update. You can safely remove those error messages either from the Problems view, or clicking on one with right button and selecting Clear lint messages. It is a bit annoying, but a reasonable workaround while they release a fixed version. On Jul 13, 2012 2:28 AM, Rafael Timmerberg raf...@googlemail.com wrote: Since the latest ADT update I have issues with Errors raised from Eclipse, although they are fixed and saved like this: Syntax error, insert ; to complete Statement. Usually I have to clean the Project or Cut the whole function to paste it again to get that error resolved. Has someone an idea, what is causing this issue? -- 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: Bluetooth chat bug?
I added some code like this to help me see which device is involved in this chicanery: String device_name = device.getName(); if (device_name == null) device_name = no name + device.getAddress(); On Saturday, July 7, 2012 8:14:26 AM UTC-5, Jons Jean wrote: Same thing I face in past . . .it looks it is due to cache of bluetooth something like this .. What Happend according to me Bluetooth 1st search for devices then get its name . . After searching devices when android bluetooth API try to get its name it goes out of range . . that gives null .. . if anyone explain more on this ? On Sat, Jul 7, 2012 at 11:58 AM, gjs garyjamessi...@gmail.com wrote: Hi, And by that logic device might be null as well... Maybe check the source code. Regards On Jul 7, 5:12 am, bob b...@coolfone.comze.com wrote: I'm looking at the Bluetooth chat example: // When discovery finds a device if (BluetoothDevice.ACTION_FOUND.equals(action)) { // Get the BluetoothDevice object from the Intent BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); // If it's already paired, skip it, because it's been listed already if (device.getBondState() != BluetoothDevice.BOND_BONDED) { mNewDevicesArrayAdapter.add(device.getName() + \n + device.getAddress()); } // When discovery is finished, change the Activity title } I think there is a bug here because it assumes device.getName() does not return null, when in fact it might. What do you guys think? -- 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 :* *Muhammad Nasir Aftab* --- -- 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: Bluetooth chat bug?
Same thing I face in past . . .it looks it is due to cache of bluetooth something like this .. What Happend according to me Bluetooth 1st search for devices then get its name . . After searching devices when android bluetooth API try to get its name it goes out of range . . that gives null .. . if anyone explain more on this ? On Sat, Jul 7, 2012 at 11:58 AM, gjs garyjamessi...@gmail.com wrote: Hi, And by that logic device might be null as well... Maybe check the source code. Regards On Jul 7, 5:12 am, bob b...@coolfone.comze.com wrote: I'm looking at the Bluetooth chat example: // When discovery finds a device if (BluetoothDevice.ACTION_FOUND.equals(action)) { // Get the BluetoothDevice object from the Intent BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); // If it's already paired, skip it, because it's been listed already if (device.getBondState() != BluetoothDevice.BOND_BONDED) { mNewDevicesArrayAdapter.add(device.getName() + \n + device.getAddress()); } // When discovery is finished, change the Activity title } I think there is a bug here because it assumes device.getName() does not return null, when in fact it might. What do you guys think? -- 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 :* *Muhammad Nasir Aftab* --- -- 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: Eclipse Image Bug
Never heard of DroidDrawI'll have to check it out! 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: Eclipse Image Bug
http://www.droiddraw.org/ On Mon, Jun 18, 2012 at 12:06 PM, Sam scoutamis...@gmail.com wrote: Never heard of DroidDrawI'll have to check it out! 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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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: Eclipse Image Bug
This sounds like this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421 Note however that we don't know how to reproduce this bug. If anyone has reproducible steps, please describe in as much detail as possible and attach to that issue. -- Tor On Sun, Jun 17, 2012 at 11:59 AM, G. Blake Meike blake.me...@gmail.comwrote: While I've never seen this happen in Indigo, it happens *constantly* in Juno. I know, I know: not supported. It is, however, certainly a way to drive a similar bug, consistently. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Eclipse Image Bug
It can be reproduced. 1. In the visual editor, drag an image from the left hand side, to anywhere on the screen 2. Drag anything else and place it under the image (for example, some text) 3. Go to the XML code and try to edit the item you dragged below the image 4. It will mess up the code and you wont be able to undo it because Ctr-z doesn't work On Monday, June 18, 2012 7:24:33 AM UTC-7, Tor Norbye wrote: This sounds like this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421 Note however that we don't know how to reproduce this bug. If anyone has reproducible steps, please describe in as much detail as possible and attach to that issue. -- Tor On Sun, Jun 17, 2012 at 11:59 AM, G. Blake Meike blake.me...@gmail.comwrote: While I've never seen this happen in Indigo, it happens *constantly* in Juno. I know, I know: not supported. It is, however, certainly a way to drive a similar bug, consistently. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Eclipse Image Bug
Well, you could use DroidDraw, build your layout their and then copy paste the XML into your project. Thanks On Mon, Jun 18, 2012 at 9:38 AM, Sam scoutamis...@gmail.com wrote: So...is there any way to fix this? On Sunday, June 17, 2012 11:59:27 AM UTC-7, G. Blake Meike wrote: While I've never seen this happen in Indigo, it happens *constantly* in Juno. I know, I know: not supported. It is, however, certainly a way to drive a similar bug, consistently. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/**product/0636920023005.dohttp://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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] is this a bug
On Thu, Jan 5, 2012 at 12:39 PM, John Davis davi...@gmail.com wrote: fooView = (View) theList.getItemAtPosition(i); // raises exception The exception would be? The stack trace would be? - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] is this a bug
Oh geeze, haha... the framework would never have this obvious a bug... What kind of an exception are you getting? A ClassCastException I would suppose? Kris On Thu, Jan 5, 2012 at 12:39 PM, John Davis davi...@gmail.com wrote: A listview says there are 6 items in the list. ie. count = 6 Yet, you can not get the items for (int i=0;inumRows;i++) { count = theList.getCount(); // returns 6 fooView = (View) theList.getItemAtPosition(i); // raises exception -- John F. Davis 独树一帜 -- 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] is this a bug
It looks like a bug ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2661 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679 ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 ActivityThread$H.handleMessage(Message) line: 2033 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4627 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 868 ZygoteInit.main(String[]) line: 626 NativeStart.main(String[]) line: not available [native method] On Thu, Jan 5, 2012 at 1:42 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 5, 2012 at 12:39 PM, John Davis davi...@gmail.com wrote: fooView = (View) theList.getItemAtPosition(i); // raises exception The exception would be? The stack trace would be? - 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 -- John F. Davis 独树一帜 -- 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] is this a bug
Ew, quit blaming the framework for your (somewhat obvious) mistake. Your list doesn't contain views, you're probably casting to something which isn't correct. (I suspect you're looking at the wrong part of the logcat.) You've most likely got a classcastexception, from something which should have been casted to String, not View... kris 2012/1/5 John Davis davi...@gmail.com: It looks like a bug ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2661 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679 ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 ActivityThread$H.handleMessage(Message) line: 2033 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4627 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 868 ZygoteInit.main(String[]) line: 626 NativeStart.main(String[]) line: not available [native method] On Thu, Jan 5, 2012 at 1:42 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 5, 2012 at 12:39 PM, John Davis davi...@gmail.com wrote: fooView = (View) theList.getItemAtPosition(i); // raises exception The exception would be? The stack trace would be? - 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 -- John F. Davis 独树一帜 -- 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] is this a bug
2012/1/5 John Davis davi...@gmail.com It looks like a bug Yup - a threading bug in your code. You are probably deleting an item somewhere else and not synchronizing your list. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] is this a bug
getItemAtPosition calls the adapter's getItem, which returns the data object backing the item. I don't see why it would be anything derived from View. Certainly the logcat has more information under Caused by:. -- Kostya 5 января 2012 г. 22:49 пользователь TreKing treking...@gmail.com написал: 2012/1/5 John Davis davi...@gmail.com It looks like a bug Yup - a threading bug in your code. You are probably deleting an item somewhere else and not synchronizing your list. - TreKing http://sites.google.com/site/rezmobileapps/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] is this a bug
2012/1/5 Kostya Vasilyev kmans...@gmail.com: getItemAtPosition calls the adapter's getItem, which returns the data object backing the item. I don't see why it would be anything derived from View. Yeah, while it could be some threading thing, I think it is as simple as this... (Also, like I said, you're probably pulling the irrelevant portion of the logcat, the offending code is surely sitting in your functionality activitythread is just doing the instrumentation off the looper...) kris -- 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] is this a bug
On Thu, Jan 5, 2012 at 1:02 PM, Kristopher Micinski krismicin...@gmail.comwrote: Yeah, while it could be some threading thing, I think it is as simple as this... (Also, like I said, you're probably pulling the irrelevant portion of the logcat, the offending code is surely sitting in your functionality activitythread is just doing the instrumentation off the looper...) You guys are correct - I jumped to threading idea based on a quick glance of the posted stack, which is now clearly not the right one. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] is this a bug
The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. On Thu, Jan 5, 2012 at 2:06 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 5, 2012 at 1:02 PM, Kristopher Micinski krismicin...@gmail.com wrote: Yeah, while it could be some threading thing, I think it is as simple as this... (Also, like I said, you're probably pulling the irrelevant portion of the logcat, the offending code is surely sitting in your functionality activitythread is just doing the instrumentation off the looper...) You guys are correct - I jumped to threading idea based on a quick glance of the posted stack, which is now clearly not the right one. - 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 -- John F. Davis 独树一帜 -- 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] is this a bug
2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yes, it is a bug in your code. My guess is that you are asking for an invalid position, perhaps because numRows is greater than getCount(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] is this a bug
2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yeah, it's a bug you caused. This is crazy: this method is used by thousands of developers in thousands of apps out on the market today: to suggest that it is an API bug with no data to back it (you don't have it, since your code reveals what you are doing wrong) is just embarrassing. It accuses of the framework writers for being incorrect, when in reality it's your code. Kris -- 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] is this a bug
Back to the original code snippet: The list view's item count is returned by theList.getCount and stored in a variable called count. The loop goes from 0 to numRows. That's an entirely different variable. Perhaps it's also set to theList.getCount() earlier, but that's not in the posted snippet. There is also a typecast in that snippet, which can quite easily go wrong and throw an exception, and which would be a bug in that snippet - calling the wrong method assuming it does something else. -- Kostya 5 января 2012 г. 23:32 пользователь Kristopher Micinski krismicin...@gmail.com написал: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yeah, it's a bug you caused. This is crazy: this method is used by thousands of developers in thousands of apps out on the market today: to suggest that it is an API bug with no data to back it (you don't have it, since your code reveals what you are doing wrong) is just embarrassing. It accuses of the framework writers for being incorrect, when in reality it's your code. Kris -- 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] is this a bug
Hello Mark, Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Once again, the docs say: = public Object getItemAtPosition (int position) Since: API Level 1 Gets the data associated with the specified position in the list. Parameters positionWhich data to get Returns The data associated with the specified position in the list === On Thu, Jan 5, 2012 at 2:31 PM, Mark Murphy mmur...@commonsware.com wrote: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yes, it is a bug in your code. My guess is that you are asking for an invalid position, perhaps because numRows is greater than getCount(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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] is this a bug
Please show us the stack trace generated by the exception. On Thu, Jan 5, 2012 at 11:46 AM, John Davis davi...@gmail.com wrote: Hello Mark, Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Once again, the docs say: = public Object getItemAtPosition (int position) Since: API Level 1 Gets the data associated with the specified position in the list. Parameters positionWhich data to get Returns The data associated with the specified position in the list === On Thu, Jan 5, 2012 at 2:31 PM, Mark Murphy mmur...@commonsware.com wrote: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yes, it is a bug in your code. My guess is that you are asking for an invalid position, perhaps because numRows is greater than getCount(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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 -- Romain Guy Android framework engineer romain...@android.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
Re: [android-developers] is this a bug
2012/1/5 John Davis davi...@gmail.com: Hello Mark, Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Jeeze, how many times do we have to tell you before you listen... This *is* a bug, a bug you introduced. You get the item at the position. Then you cast it to something it isn't. You can't do that: it's not a view, you can't treat it like one. Why do you think you can? Android API returns you back the object perfectly fine, but then *you* cast it to something it's not, *you're* the one raising the exception. Kris -- 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] is this a bug
Hello Kostya, numRows is the value returned by my database call. It is what I used to set the arraybound on the array adapter. It is also 6 as verified by the debugger. Like I said, it appears that the api is buggy and does not provide the ability to set listview items to be of different colors, since there is no way to manipulate them with the provided api. 2012/1/5 Kostya Vasilyev kmans...@gmail.com: Back to the original code snippet: The list view's item count is returned by theList.getCount and stored in a variable called count. The loop goes from 0 to numRows. That's an entirely different variable. Perhaps it's also set to theList.getCount() earlier, but that's not in the posted snippet. There is also a typecast in that snippet, which can quite easily go wrong and throw an exception, and which would be a bug in that snippet - calling the wrong method assuming it does something else. -- Kostya 5 января 2012 г. 23:32 пользователь Kristopher Micinski krismicin...@gmail.com написал: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yeah, it's a bug you caused. This is crazy: this method is used by thousands of developers in thousands of apps out on the market today: to suggest that it is an API bug with no data to back it (you don't have it, since your code reveals what you are doing wrong) is just embarrassing. It accuses of the framework writers for being incorrect, when in reality it's your code. Kris -- 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 -- John F. Davis 独树一帜 -- 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] is this a bug
Why in the world are you casting the result of getItemAtPosition to View? 5 января 2012 г. 23:46 пользователь John Davis davi...@gmail.com написал: Hello Mark, Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Once again, the docs say: = public Object getItemAtPosition (int position) Since: API Level 1 Gets the data associated with the specified position in the list. Parameters positionWhich data to get Returns The data associated with the specified position in the list === On Thu, Jan 5, 2012 at 2:31 PM, Mark Murphy mmur...@commonsware.com wrote: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yes, it is a bug in your code. My guess is that you are asking for an invalid position, perhaps because numRows is greater than getCount(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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] is this a bug
2012/1/5 John Davis davi...@gmail.com: Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Yes, it is a bug in your code. You are getting a ClassCastException now, because getItemAtPosition() is not returning a View. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] is this a bug
Will someone please go to John's house / work and copy and paste the actual mother loving stack trace so we can end this dumbass thread? - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] is this a bug
Hello Romain-guy, I would be happy to if I knew how to properly answer your request. I removed the breakpoint on the getitematpos call and let it rip. Then when it crashed, I went to debugger window and did a copy of the stack trace and posted it below: SwtorCompanion [Android Application] DalvikVM[localhost:8619] Thread [1 main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2663 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679 ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 ActivityThread$H.handleMessage(Message) line: 2033 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4627 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 868 ZygoteInit.main(String[]) line: 626 NativeStart.main(String[]) line: not available [native method] Thread [7 Binder Thread #2] (Running) Thread [6 Binder Thread #1] (Running) Thread [9 Binder Thread #3] (Running) If i comment out the getitematposition line it will run ok. On Thu, Jan 5, 2012 at 2:49 PM, Romain Guy romain...@android.com wrote: Please show us the stack trace generated by the exception. On Thu, Jan 5, 2012 at 11:46 AM, John Davis davi...@gmail.com wrote: Hello Mark, Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Once again, the docs say: = public Object getItemAtPosition (int position) Since: API Level 1 Gets the data associated with the specified position in the list. Parameters positionWhich data to get Returns The data associated with the specified position in the list === On Thu, Jan 5, 2012 at 2:31 PM, Mark Murphy mmur...@commonsware.com wrote: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yes, it is a bug in your code. My guess is that you are asking for an invalid position, perhaps because numRows is greater than getCount(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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 -- Romain Guy Android framework engineer romain...@android.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 -- John F. Davis 独树一帜 -- You received this message because you are subscribed
Re: [android-developers] is this a bug
OMG, seriously, the listView class does not contain a list of views? Get out of here, if that was not the case, it would be called somthing else. Its a listView. Its a bug. Geez. Yes, it is a bug in your code. You are getting a ClassCastException now, because getItemAtPosition() is not returning a View. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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] is this a bug
LOL Treking, buddy. I posted it to the best of my ability. Do you mean copy and paste the output from the stack trace in the debug window? On Thu, Jan 5, 2012 at 2:51 PM, TreKing treking...@gmail.com wrote: Will someone please go to John's house / work and copy and paste the actual mother loving stack trace so we can end this dumbass thread? -- 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] is this a bug
Unless it is a delegate to an underlying adapter and is provided as a utility.. Hmm... In what universe might this be the case... No way, that would -- of course -- be a crazy design decision that no human could possibly fathom... kris On Thu, Jan 5, 2012 at 1:54 PM, John Davis davi...@gmail.com wrote: OMG, seriously, the listView class does not contain a list of views? Get out of here, if that was not the case, it would be called somthing else. Its a listView. Its a bug. Geez. Yes, it is a bug in your code. You are getting a ClassCastException now, because getItemAtPosition() is not returning a View. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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] is this a bug
Open the Logcat view in Eclipse (or type adb logcat in a shell), then look for Caused by. There will be a stack trace showing the cause of the exception. What you are showing us is the current state of the thread. On Thu, Jan 5, 2012 at 11:53 AM, John Davis davi...@gmail.com wrote: Hello Romain-guy, I would be happy to if I knew how to properly answer your request. I removed the breakpoint on the getitematpos call and let it rip. Then when it crashed, I went to debugger window and did a copy of the stack trace and posted it below: SwtorCompanion [Android Application] DalvikVM[localhost:8619] Thread [1 main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2663 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679 ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 ActivityThread$H.handleMessage(Message) line: 2033 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4627 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 868 ZygoteInit.main(String[]) line: 626 NativeStart.main(String[]) line: not available [native method] Thread [7 Binder Thread #2] (Running) Thread [6 Binder Thread #1] (Running) Thread [9 Binder Thread #3] (Running) If i comment out the getitematposition line it will run ok. On Thu, Jan 5, 2012 at 2:49 PM, Romain Guy romain...@android.com wrote: Please show us the stack trace generated by the exception. On Thu, Jan 5, 2012 at 11:46 AM, John Davis davi...@gmail.com wrote: Hello Mark, Nope. for (int i=0;inumRows;i++) { // If it is the 2nd or 5th item, tag it so that it will be displayed in blue. if (i==2 || i==5) { listCount = adapter.getCount(); count = theList.getCount(); fooView = (View) theList.getItemAtPosition(i); // fooView.setTag(99); } i=2, listCount = 6 and count = 6. The listview stored in theList is functional, since it retuns the result provided by getCount. It is also in agreement with the array adapter count. theList.getItemAtPositon(5) should either return the item or null. It raises and exception. That is a bug. Once again, the docs say: = public Object getItemAtPosition (int position) Since: API Level 1 Gets the data associated with the specified position in the list. Parameters position Which data to get Returns The data associated with the specified position in the list === On Thu, Jan 5, 2012 at 2:31 PM, Mark Murphy mmur...@commonsware.com wrote: 2012/1/5 John Davis davi...@gmail.com: The only exception which i can find is javalang.unsupportedOperationException. as I was saying the api has a bug. The docs say you can get the data, when you try to so you get an exception. Either the docs are incorrect or its a bug. Yes, it is a bug in your code. My guess is that you are asking for an invalid position, perhaps because numRows is greater than getCount(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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 -- Romain Guy Android framework engineer romain...@android.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
Re: [android-developers] is this a bug
ListView contains Views that you access by calling getChildAt(). getItemAtPosition() returns an item from the Adapter. An adapter contains data, not Views. On Thu, Jan 5, 2012 at 11:54 AM, John Davis davi...@gmail.com wrote: OMG, seriously, the listView class does not contain a list of views? Get out of here, if that was not the case, it would be called somthing else. Its a listView. Its a bug. Geez. Yes, it is a bug in your code. You are getting a ClassCastException now, because getItemAtPosition() is not returning a View. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- John F. Davis 独树一帜 -- 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 -- Romain Guy Android framework engineer romain...@android.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
Re: [android-developers] is this a bug
On Thu, Jan 5, 2012 at 1:53 PM, John Davis davi...@gmail.com wrote: I would be happy to if I knew how to properly answer your request. You've had about 18 people across two threads tell you how to do this. You're doing this on purpose to see how many monkeys you can get do dance, aren't you? - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] is this a bug
Hello Treking, Nope not at all. You have to realize the other person you are talking to might not have your experience and might not understand you. In this case, I did not know that the logcat contains a different stack trace from the trace in the debug window. So, I learned a few things today. The listview contains two lists. The list of text which is retrieved via getitematpostion and the list of views which is retrieved via getChildAt. Also, I learned that the debugger window has a call stack whereas the logcat window has a java exception list. John On Thu, Jan 5, 2012 at 2:57 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 5, 2012 at 1:53 PM, John Davis davi...@gmail.com wrote: I would be happy to if I knew how to properly answer your request. You've had about 18 people across two threads tell you how to do this. You're doing this on purpose to see how many monkeys you can get do dance, aren't you? - 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 -- John F. Davis 独树一帜 -- 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] is this a bug
2012/1/5 John Davis davi...@gmail.com You have to realize the other person you are talking to might not have your experience and might not understand you. You didn't say you didn't understand - you insisted that either the documentation was wrong, or it was a bug, or what you were trying to do was impossible, or Gmail was using private APIs, or despite having multiple people tell you multiple times how to go about it, where you were going wrong, and how to find the information you needed in the stack trace. You can only go in so many circles before feeling like you're being taken for a ride, know what I mean? - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] is this a bug
Hello Treking, I am sorry if I made you feel that way. I was most certainly going in circles myself. Have a good one and thanks for the help. Smile John On Thu, Jan 5, 2012 at 3:16 PM, TreKing treking...@gmail.com wrote: 2012/1/5 John Davis davi...@gmail.com You have to realize the other person you are talking to might not have your experience and might not understand you. You didn't say you didn't understand - you insisted that either the documentation was wrong, or it was a bug, or what you were trying to do was impossible, or Gmail was using private APIs, or despite having multiple people tell you multiple times how to go about it, where you were going wrong, and how to find the information you needed in the stack trace. You can only go in so many circles before feeling like you're being taken for a ride, know what I mean? - 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 -- John F. Davis 独树一帜 -- 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] is this a bug
I was determined to stay out of this absurd grouo of threads...but after reading the bit quoted below, I can't stay on the sidelines anymore On Thu, Jan 05, 2012 at 02:54:52PM -0500, John Davis wrote: OMG, seriously, the listView class does not contain a list of views? When I read this one line, I was certain you were being extremely sarcastic... Until, that is, I continued reading. Get out of here, if that was not the case, it would be called somthing else. Its a listView. Its a bug. Geez. U, you need to spend some serious RTFM time in the developers guide. Not only that, you should look at what a Listview is. It's a *LIST* displayed on the screen (a view). It is NOT a list of views, it's a list that is displayed AS/IN a view. And, as others have said at least a dozen or more times between the two threads (that I've seen) that you started on this topic, it IS a bug... IN YOUR CODE. You can shove your head in the sand, or cover your ears and shout LALALALALALALALA I CAN'T HEAR YOU and ignore the truth all you want, the facts will still be there staring you in the face. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Seen in alt.sysadmin.recovery: Priceless; that's better than telling him to use the Read Manual command with the Real Fast option. Android Apps Listing at http://www.jstrack.org/barcodes.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
Re: [android-developers] is this a bug
ANDEV comedy hour On 1/6/2012 4:20 AM, John Davis wrote: Hello Treking, I am sorry if I made you feel that way. I was most certainly going in circles myself. Have a good one and thanks for the help. Smile John On Thu, Jan 5, 2012 at 3:16 PM, TreKing treking...@gmail.com wrote: 2012/1/5 John Davis davi...@gmail.com You have to realize the other person you are talking to might not have your experience and might not understand you. You didn't say you didn't understand - you insisted that either the documentation was wrong, or it was a bug, or what you were trying to do was impossible, or Gmail was using private APIs, or despite having multiple people tell you multiple times how to go about it, where you were going wrong, and how to find the information you needed in the stack trace. You can only go in so many circles before feeling like you're being taken for a ride, know what I mean? - 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] Re: New (?) market bug: most free games are GONE
On Fri, Aug 26, 2011 at 04:38:09PM -0700, Indicator Veritatis wrote: You don't have to look only on the Android Market from Google. You can also look at Getjar.com or slideme.org. Both have lots of free games, without the shenanigans Google has been imposing on us. Thanks. I knew about soc.io (have my two most recent apps listed there now, and I might have added my first one, too (not sure, memory screwed by the first cancer's chemo, etc.). The soc.io app has to be installed manually, too. But there's a problem...trying to install it via adb install locks my Motorola Bravo (MB520) to the point that I have to pull the battery (it's a very large file). And now they've disabled net downloads, even for free apps (this might resume after next week, but I'm not sure). So those of us who can't load 3rd-party apps except from the PC via adb/usb are somewhat screwed. I'll check those sites out tonight (and maybe load my apps there, too). I like the idea of the installer being on the google market. I would never have imagined that they'd let such a thing happen unless the temperature in hell reached absolute zero Just opened up the getjar site. Nice...thanks! Later, --jim -- 73 DE N5IAL (/4) | 1) Smoking habanero powder helps defeat that Running FreeBSD 7.0|off taste' quite nicely. spooky1...@gmail.com | 2) I figure a couple bong hits of [habanero] ICBM/Hurr.: / 30.44406N |powder would defeat just about anything! | 86.59909W--seen in Chile-Heads list Android Apps Listing at http://www.jstrack.org/barcodes.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
Re: [android-developers] Where to fill bug/feature request agains Market console?
Please see this: http://www.google.com/support/androidmarket/developer/bin/answer.py?answer=136601hl=en And specifially, this for Dev Console issues: http://www.google.com/support/androidmarket/developer/bin/request.py?contact_type=bugs -- Kostya 2011/6/20 Marcin Orlowski webnet.andr...@gmail.com Hi, Is there any place Market team reads I could use to share my thoughts on it? It's quite frustrating that most likely Market ecosystem devs seem not to use Market as device devs otherwise these two features (among others) would hit them quickly: - setting price of paid apps is broken - assume you are in US, set price in USD (i.e. 1). Then there're some countries for which you can't set separated price - price is dynamically converted from set price. But why the hell I am unable to set *different* price for US? It's get disabled which is extremely illogical. I am unable to (partially) control prices for (say) less important markets because at the same time I hit US price! - when more than one app is updated, Market (app) offers Update All button. When there's just one, I need to enter app details, hit couple of buttons etc. No Update All in such case... where can I report this? b.android.com does not seem right place Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- 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] Where to fill bug/feature request agains Market console?
On 20 June 2011 18:53, Kostya Vasilyev kmans...@gmail.com wrote: Hi And specifially, this for Dev Console issues: I hoped there's something more serious than this infamous fill-this-form-and-we-wont-reply-anyway thing. Thanks. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- 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] Where to fill bug/feature request agains Market console?
I used this once and got a reply from an actual human being within an hour. -- 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] Where to fill bug/feature request agains Market console?
the second link, I mean. -- 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] Minor layout editor bug report
While I read the forums, I really can't keep up with the amount of new threads, and I almost missed this. Anyway, thanks for the report, this would be a perfect bug to be filed on http://b.android.com I'll look into it. I filed http://code.google.com/p/android/issues/detail?id=17355 so feel free to star it to follow along. thanks! On Sun, May 29, 2011 at 10:42 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Since I know Xavier reads this forum. Tested with all the latest and greatest: - Open a layout - Save as a different name - Edit the new layout's XML - Switch to the graphical viewer - The graphical viewer is still showing the old layout from before Save as - To get the new layout to display, you need to close the file and reopen 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. 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: Dialog inflation bug in SDK r11 (3.1)?
On Wed, Jun 1, 2011 at 3:30 AM, String sterling.ud...@googlemail.comwrote: Toward this end, I'd like to see the relevant example in the documentation changed. Can anyone remind me of where to suggest doc updates? I think they get filed as bugs. I could be wrong though. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] Minor layout editor bug report
You might try the adt-dev Google Group, particularly for issues related to the in-repo, not-yet-released ADT code. On Mon, May 30, 2011 at 1:42 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Since I know Xavier reads this forum. Tested with all the latest and greatest: - Open a layout - Save as a different name - Edit the new layout's XML - Switch to the graphical viewer - The graphical viewer is still showing the old layout from before Save as - To get the new layout to display, you need to close the file and reopen 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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: UI Framework Bug?
Don't re-inflate each time. Implement this correctly, where you re-use the convertView if it is given. Just make sure you have the states of the views set up correctly before you return. On Thu, May 12, 2011 at 8:14 AM, authorwjf wfran...@softlayer.com wrote: Yahel's post got me to thinking. I modified the getView method of my data adapter to look like this: @Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = vi.inflate(R.layout.list_view_row, null); TextView label = (TextView) v.findViewById(R.id.label); ImageView spinner = (ImageView) v.findViewById(R.id.spinner); MyContainer item = (MyContainer) items.get(position); label.setText(item.getText()); spinner.setVisibility(View.INVISIBLE); if (item.isLoading()) { label.setText(***+item.getText()+***); spinner = (ImageView)v.findViewById(R.id.spinner); spinner.setVisibility(View.VISIBLE); Animation spinnerAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate); spinner.startAnimation(spinnerAnimation); } return v; } And the problem seems resolved! Great news for me. Though I wonder if any of you can comment as to the performance hit / impact I might expect to take reloading the view from the layout every single time the adapter refreshes? I'm not experiencing any issues with the demo program, but the lists in my actual application can get rather long and include several lines of text for each row. -- 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 -- 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. -- 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: UI Framework Bug?
Not reusing views will most likely cause a noticeable performance impact for things like scrolling through the list, since now every time a new item in the list is shown a while new view hierarchy needs to be built for it. Always always recycle views. On Thu, May 12, 2011 at 9:15 AM, Yahel kaye...@gmail.com wrote: Your solution seems to simple not reuse the views. I don't think you'll hit a performance issue speed-wise but you may want to check memory-wise as I believe this is the main reason behind this design. Especially if you have one bitmap per row, a long list of row could trigger Bitmap exceeds VM budget memory exceptions. 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 -- 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. -- 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: UI Framework Bug?
If there is something that is showing incorrectly, then there is something you changed in the view hierarchy that you are not resetting when you update the recycled view in getView(). On Thu, May 12, 2011 at 6:44 PM, authorwjf wfran...@softlayer.com wrote: I am curious what you mean by make sure you have the states of the views set up correctly. In my original implementation, I was using the convertView in the manner I thought was correct. i.e. View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.list_view_row, null); } Assuming this is what you meant, I don't get what view states I was failing to set up that resulted in my seemingly random spinner appearing in the list. I had a text view and an image view for each row, and in each case, I set the text view and image view to the correct value for what I wanted to display. TextView label = (TextView) v.findViewById(R.id.label); ImageView spinner = (ImageView) v.findViewById(R.id.spinner); MyContainer item = (MyContainer) items.get(position); if (item.isLoading()) { label.setText(***+item.getText()+***); spinner = (ImageView)v.findViewById(R.id.spinner); spinner.setVisibility(View.VISIBLE); Animation spinnerAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate); spinner.startAnimation(spinnerAnimation); } else { label.setText(item.getText()); spinner.setVisibility(View.INVISIBLE); } return v; The row in my list adversely affected, was never the one where I saw this code being invoked. What is it I should have done to my view v before returning? Thanks in advance for your response. While I am not seeing any issue yet re-inflating each time, I'd also like to do this the way the framework intended if I can. -- 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 -- 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. -- 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: UI Framework Bug?
It probably means you need to clear the animation when there is none. However: There is already a built-in class, ProgressBar, that can show the standard progress wheel', and it works well with setVisbiblity, leaving no artifacts. Perhaps you could just use that? An added benefit is that you'll get vendor-specific customizations automatically. -- Kostya 13.05.2011 0:43, authorwjf пишет: Yet the view that gets affected, is not the one being passed into the function. Meaning I get the callback to update say row 3, and row 3 updates correctly, but the image in row 7 might change as well. Not the text in row 7 though, and the only code that updated the image view first updates the text view. And its not always row 7, it might be some other row or rows or none. Commenting out these 2 lines: Animation spinnerAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate); spinner.startAnimation(spinnerAnimation); corrects the weird fragment image appearing on a random list view row, yet, I also obviously lose my animation. I believe there has to be something hanging around or getting reused by the framework to optimize the image resource utilization but it doesn't appear to be working correctly. This image does a good job of showing the behavior I'm experiencing. http://tinypic.com/view.php?pic=2s1agsps=7 -- Kostya Vasilyev -- 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
Re: [android-developers] Menu/Action Bar bug(?) in Honeycomb
You probably don't want to mix the action bar with activity groups. Fragments are the New Way, and they were designed to work together. Activity groups are deprecated (especially now that the fragment static library is available). On Tue, Mar 8, 2011 at 7:01 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I have a TabActivity with two child Activities (don't ask me why...). I would have expected that the child activities' option menu items to be exposed on the Action Bar. But that doesn't happen and the Action Bar remains empty as the TabActivity itself has no option menu. -- 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 -- 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. -- 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: ListView adapter bug?; notify changed does nothing.
Generally it is a better idea to use views as your tabs instead of activities... On Thu, Feb 24, 2011 at 4:14 PM, Dan king...@gmail.com wrote: Update, the ListView in question is in activity A which is inside tab activity C. Tab activity C inherits from tab activity B. Removing the inheritance of tab activity C from B fixed the problem. C was calling TabActivity.getTabHost().clearAllTabs() to replace the parents tabs in onCreate(). Also, moving the tab construction to a separate method did not fix the problem. So it looks like I will have to keep to a single level of inheritance for activities. :( -Dan On Feb 24, 10:25 am, Dan king...@gmail.com wrote: I don't know how soon I'll be able to do that but something that is a few steps easier is for Google and AOSP to release a tag of the Java code used in the simulators. On Feb 23, 8:59 pm, fernando fernandoler...@gmail.com wrote: i can't see what could be wrong, except if the notifyDataSetChanged is overridden in your adapter, then somewhere in your adapter you need to call super.notifyDataSetChanged. If that's not true that would be really useful to step into the frameworks code to undestand what's wrong. You'll need a linux machine/box or mac, get the android open source code setup the building environment, compile the sdk, run the compiled emulator and debug on it. For the debugging environment, use Eclipse and ADT, create a plain Java project, link the frameworks/base/core/java directory after you get the open source code (contains the listview source code). (You'll be installing your apk into the compiled emulator ). Then, link this project to your application's project and debug your application. Then press F5 to step into the list :-) http://android.git.kernel.org/ - on the top of the page, shows how to get the git repositoryhttp:// source.android.com/source/download.html -instructions to setup the environment and compile the sdkhttp:// source.android.com/source/git-repo.html - git basic instructions. you can use the sun virtual box to host linux if you have a windows computer Besides the time spent to download the tools (linux, python, java, etc, virtual box, etc) the open source code and compilation (which you can let it doing), it should take less than 2 hours of work to do all of it. I hope you can find what's going on as quick as possible. Then tell us what happened (I'm curious) thanks - Fernando On Feb 23, 6:20 pm, Dan king...@gmail.com wrote: I have been working on a similar issue to this. The application is uses a ListActivity from a Library Project. This Library Project can also be configured to be its own application (refactoring is in progress). The ListActivity works well when its project is used as an application. However the ListView is always empty when it is used from a library project. The only difference is the data to be displayed. I have tried different Adapters, with Maps and Cursors and using setAdapter(), none of these have worked. I am working on API level 7. My attempts at a test application has not resulted in a replication of this bug. I am banging my head against the wall here. It would help to be able to debug into the framework to see what I am doing wrong. -Dan On Jan 25, 10:33 pm, Brill Pappin br...@pappin.ca wrote: I should mention this is on a Nexus One with aOS 2.2.2 in case that matters. Yes, I looked all over that code and even down into AsbListView. It actually registers an internal instance member with the adapter, and the notify call does seem to make it to the observer as far as I can see, but there doesn't seem to be any code that connected the observer and the ListView. I was digging down that far in the first place because I was sure (three times over, I rewrote it from scratch three times using different examples and tutorials besides my first attempt from memory) that I had correctly implemented the Adapter and set it on the ListView. The list view simply never called the adapter after the notify method was called. I know that because I used the basic print- to-log when called technique of tracing the calls. The Adapter would get properly called when first set on the ListView but after that no amount of data change and notify calls would cause it to re-read the adapter, which is what I expect it to do if I notify it that my data has changed. I the end I simply created a new adapter and reset it on the ListView, which seems to be working, however that's broken IMO. I think the next step should be that I write up a quick demo app that attempts replicate the problem. If it doesn't do anything except demonstrate what I'm seeing, then it should allow others to test as
Re: [android-developers] Re: Significant Fragment bug? onInflate() not called at the right time on a restart
Yes it probably should say that. :) On Sun, Feb 20, 2011 at 6:28 PM, davemac davemac...@gmail.com wrote: Will the documentation update also say that onInflate() could be called before onAttach() when the activity layout is being inflated for the first time, and after onCreateView() when the activity layout is being inflated after a configuration change? Or more generally that onInflate() could be called anywhere between the creation of the fragment and onActivityCreated() ? - dave On Feb 19, 5:43 pm, Dianne Hackborn hack...@android.com wrote: This working as I expect it to. What happens is when an activity is being restored from its state, all of the previously known fragments must first be created so that any attempt to check for one will succeed, instead of reporting that it doesn't exist, allowing the app to create a new one, which now conflicts with the one that will be later restored from the saved state. I don't have any update documentation to share with you right now. I am at home, on a weekend, answering questions in my spare time. I'll update the documentation when I have a chance at work, and that will be in whatever the next SDK release is. For now, just cross out the part about using it to set arguments. Also I would suggest not going around the back of things to directly change the argument bundle. If only Java had a concept of const. :p On Sat, Feb 19, 2011 at 1:34 PM, davemac davemac...@gmail.com wrote: I also noticed that while you can't call setArguments() after the fragment has been attached to an activity, you can get the arguments bundle and add or modify its contents. This means in theory I could update the arguments bundle in onInflate() if the bundle already exists on the fragment, even if onInflate() occurs after onAttach() and onCreateView() on the restart. But it also means that if I accessed the arguments bundle in any previous step of a fragment's restoration, I could get different behavior the next time, for example when that fragment is restored because of the back stack. And of course all of that would be bad. So is there a good reason why onInflate() does not get called prior to onAttach() on a restart? Also, could you please share the updated documentation with us sooner rather than later? - dave On Feb 19, 4:20 pm, davemac davemac...@gmail.com wrote: The behavior still looks odd to me. On an activity restart, when setContentView() is called in the activity's onCreate(), you'll most likely be inflating a new activity layout if you've done a rotation. But because it's a configuration change, the existing fragments are saved and restored behind the scenes (well, sort of). The onInflate() method does get called on the fragment that had been originally instantiated from a fragment tag in the old layout for the activity, but it fires only after onCreateView() has already happened on that fragment. So either the onInflate() doesn't need to fire at all because it's too late to do anything, or it's firing too late. Which tells me it's not just a documentation change. - dave On Feb 19, 4:00 pm, Dianne Hackborn hack...@android.com wrote: Thanks, I'll update the documentation. On Sat, Feb 19, 2011 at 12:46 PM, davemac davemac...@gmail.com wrote: I was just going by what the documentation says. This is from onInflate(): Start Android documentation... Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity. This will be called immediately after the fragment is created from a tag in a layout file. Note this is before the fragment's onAttach(Activity) has been called; all you should do here is parse the attributes and save them away. A convenient thing to do is simply copy them into a Bundle that is given to setArguments(Bundle). This is called every time the fragment is inflated, even if it is being inflated into a new instance with saved state. Because a fragment's arguments are retained across instances, it may make no sense to re-parse the attributes into new arguments. You may want to first check getArguments() and only parse the attributes if it returns null, the assumption being that if it is non-null those are the same arguments from the first time the fragment was inflated. (That said, you may want to have layouts change for different configurations such as landscape and portrait, which can have different attributes. If so, you will need to re-parse the attributes each time this is called to generate new arguments.) Stop Android documentation... The AttributeSet passed to onInflate() will contain the attributes from the fragment tag in the newest layout
Re: [android-developers] Re: Significant Fragment bug? onInflate() not called at the right time on a restart
Thanks, I'll update the documentation. On Sat, Feb 19, 2011 at 12:46 PM, davemac davemac...@gmail.com wrote: I was just going by what the documentation says. This is from onInflate(): Start Android documentation... Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity. This will be called immediately after the fragment is created from a tag in a layout file. Note this is before the fragment's onAttach(Activity) has been called; all you should do here is parse the attributes and save them away. A convenient thing to do is simply copy them into a Bundle that is given to setArguments(Bundle). This is called every time the fragment is inflated, even if it is being inflated into a new instance with saved state. Because a fragment's arguments are retained across instances, it may make no sense to re-parse the attributes into new arguments. You may want to first check getArguments() and only parse the attributes if it returns null, the assumption being that if it is non-null those are the same arguments from the first time the fragment was inflated. (That said, you may want to have layouts change for different configurations such as landscape and portrait, which can have different attributes. If so, you will need to re-parse the attributes each time this is called to generate new arguments.) Stop Android documentation... The AttributeSet passed to onInflate() will contain the attributes from the fragment tag in the newest layout file, i.e., the one for the configuration I'm now in. These attributes could have changed with an orientation change, and are meaningful to my fragment that I'm building, but they will not be available to my fragment at all until it's too late. As it stands now, I have no way to re-parse the attributes to generate new arguments. - dave On Feb 19, 3:16 pm, Dianne Hackborn hack...@android.com wrote: Oh and it really doesn't make sense to set the arguments from the inflate attributes. I mean, the arguments are the ones coming from the content view hierarchy. You don't need to save them away, that just duplicates them elsewhere, and potentially leads to ambiguous situation such as if you have different arguments for different layouts, in which case should the last restored arguments be used or the ones from the new layout? On Sat, Feb 19, 2011 at 12:14 PM, Dianne Hackborn hack...@android.com wrote: Well basically onInflate() is called when it needs to be, which is when the content view of the activity is being inflated. If that isn't working for you... you will need to do something else. There is no other point at which this can be called, the on and only point it can happen is during inflation of the activity's view hierarchy. On Sat, Feb 19, 2011 at 11:53 AM, davemac davemac...@gmail.com wrote: I created a bug report for this a couple of days ago, but it doesn't seem to have received any attention: http://code.google.com/p/android/issues/detail?id=14796 To reproduce the problem, add the following callback override to the TitlesFragment class in FragmentLayout.java under the ApiDemos project in samples for Honeycomb Preview: @Override public void onInflate(AttributeSet attrs, Bundle savedInstanceState) { Bundle args = new Bundle(); for(int i=0; iattrs.getAttributeCount(); i++) { Log.v(14796, + attrs.getAttributeName(i) + = + attrs.getAttributeValue(i)); args.putString(attrs.getAttributeName(i), attrs.getAttributeValue(i)); } this.setArguments(args); super.onInflate(attrs, savedInstanceState); } This is doing what the the documentation says you should do. That is, take attributes passed in and save them in the arguments bundle on the fragment instance. However, if you launch this activity then rotate the screen, the activity crashes with an IllegalStateException. And it does that because onInflate() gets called way too late when Android is rebuilding the activity and its fragments. If the layout for the other orientation is different that the previous layout, you'll have no way to use any of the attributes in onCreateView() for the fragment, because onInflate() isn't being called until later. I haven't come up with a workaround either. The fragment can't even see the activity until onAttach(), and you can't set the arguments bundle once onAttach() has been called. The sample activities so far haven't tried to utilize this feature, so perhaps it won't affect most people. But for those who need or want it, it doesn't seem to work. -- You received this message because you are subscribed to the Google Groups
Re: [android-developers] Re: Significant Fragment bug? onInflate() not called at the right time on a restart
This working as I expect it to. What happens is when an activity is being restored from its state, all of the previously known fragments must first be created so that any attempt to check for one will succeed, instead of reporting that it doesn't exist, allowing the app to create a new one, which now conflicts with the one that will be later restored from the saved state. I don't have any update documentation to share with you right now. I am at home, on a weekend, answering questions in my spare time. I'll update the documentation when I have a chance at work, and that will be in whatever the next SDK release is. For now, just cross out the part about using it to set arguments. Also I would suggest not going around the back of things to directly change the argument bundle. If only Java had a concept of const. :p On Sat, Feb 19, 2011 at 1:34 PM, davemac davemac...@gmail.com wrote: I also noticed that while you can't call setArguments() after the fragment has been attached to an activity, you can get the arguments bundle and add or modify its contents. This means in theory I could update the arguments bundle in onInflate() if the bundle already exists on the fragment, even if onInflate() occurs after onAttach() and onCreateView() on the restart. But it also means that if I accessed the arguments bundle in any previous step of a fragment's restoration, I could get different behavior the next time, for example when that fragment is restored because of the back stack. And of course all of that would be bad. So is there a good reason why onInflate() does not get called prior to onAttach() on a restart? Also, could you please share the updated documentation with us sooner rather than later? - dave On Feb 19, 4:20 pm, davemac davemac...@gmail.com wrote: The behavior still looks odd to me. On an activity restart, when setContentView() is called in the activity's onCreate(), you'll most likely be inflating a new activity layout if you've done a rotation. But because it's a configuration change, the existing fragments are saved and restored behind the scenes (well, sort of). The onInflate() method does get called on the fragment that had been originally instantiated from a fragment tag in the old layout for the activity, but it fires only after onCreateView() has already happened on that fragment. So either the onInflate() doesn't need to fire at all because it's too late to do anything, or it's firing too late. Which tells me it's not just a documentation change. - dave On Feb 19, 4:00 pm, Dianne Hackborn hack...@android.com wrote: Thanks, I'll update the documentation. On Sat, Feb 19, 2011 at 12:46 PM, davemac davemac...@gmail.com wrote: I was just going by what the documentation says. This is from onInflate(): Start Android documentation... Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity. This will be called immediately after the fragment is created from a tag in a layout file. Note this is before the fragment's onAttach(Activity) has been called; all you should do here is parse the attributes and save them away. A convenient thing to do is simply copy them into a Bundle that is given to setArguments(Bundle). This is called every time the fragment is inflated, even if it is being inflated into a new instance with saved state. Because a fragment's arguments are retained across instances, it may make no sense to re-parse the attributes into new arguments. You may want to first check getArguments() and only parse the attributes if it returns null, the assumption being that if it is non-null those are the same arguments from the first time the fragment was inflated. (That said, you may want to have layouts change for different configurations such as landscape and portrait, which can have different attributes. If so, you will need to re-parse the attributes each time this is called to generate new arguments.) Stop Android documentation... The AttributeSet passed to onInflate() will contain the attributes from the fragment tag in the newest layout file, i.e., the one for the configuration I'm now in. These attributes could have changed with an orientation change, and are meaningful to my fragment that I'm building, but they will not be available to my fragment at all until it's too late. As it stands now, I have no way to re-parse the attributes to generate new arguments. - dave On Feb 19, 3:16 pm, Dianne Hackborn hack...@android.com wrote: Oh and it really doesn't make sense to set the arguments from the inflate attributes. I mean, the arguments are the ones coming from the content view hierarchy. You don't need to save them away, that just duplicates them elsewhere, and potentially leads to ambiguous
Re: [android-developers] Re: Significant Fragment bug? onInflate() not called at the right time on a restart
sorry that this is off topic but since it was brought up... i second that the Android team is nothing short of AMAZING! y'all have provided the means for the little guy like myself to flourish and create applications using some of the best, most complete and user friendly documentation i've ever seen! quite frankly y'all have made programming for Android fun! try using RIM docs for BlackBerry... unless they've changed it in the last year... it is rough. anyway...@again, thank you thank you thank you!!! On Feb 19, 2011 7:27 PM, davemac davemac...@gmail.com wrote: -- 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: Question about bug reports
To send a silent report (i.e. something the user isn't aware of) you can use the details here: http://code.google.com/p/acra/wiki/ACRA3HowTo#Can_I_send_reports_for_caught_exceptions_?_or_for_unexpected_app http://code.google.com/p/acra/wiki/ACRA3HowTo#Can_I_send_reports_for_caught_exceptions_?_or_for_unexpected_appSo in code when you catch an exception you want to log, you simply put in: ErrorReporter.getInstance().handleException(caughtException); If you don't have an exception thrown but you still want to log something then I think there is a variant of that method you can call which will accept a string instead. I don't have java opened so can't confirm the exact method. -- 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: Question about bug reports
May I ask, what's the one line of code to send a report? On Feb 3, 2011 2:01 PM, String sterling.ud...@googlemail.com wrote: On Tuesday, February 1, 2011 11:10:00 PM UTC, Thomas wrote: About your log debug option, it is recommended to disable it just before releasing (http://developer.android.com/guide/publishing/ preparing.html http://developer.android.com/guide/publishing/preparing.html). Yes, whoever posted log.d() gets stripped at runtime was wrong. It's up to you to do so. If you doubt this, install the Evernote client and run it with ADB attached to your device. You'll see a bunch of logging active, including D-level. Note also that under Menu Settings they have an item for Send log; presumably the logging they leave enabled in production is to make these sent logs more useful. String -- 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] Re: Question about bug reports
On 3 February 2011 23:01, String sterling.ud...@googlemail.com wrote: Yes, whoever posted log.d() gets stripped at runtime was wrong. Really? http://developer.android.com/reference/android/util/Log.html It's up to you to do so. Never investigated too deeply, but from I rememeber I saw no Log.d entries on production devices I've checked our app on. It may though be possible some devices behave differently -- 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] URL query string bug in SMS messages
Don't put query strings in SMS messages. If you wish to submit a patch to Linkify to address this -- as I am guessing that is where the problem lies -- visit http://source.android.com. On Wed, Feb 2, 2011 at 4:51 AM, Jan Westin jan.wes...@gmail.com wrote: Hi, Has anyone else stumbled upon a similar issue as seen in the following screen shot : http://twitpic.com/3vpnzx The problem is when a user sends a URL containing a query string, the query string is not interpreted as part of the URL. I've seen this happen to both my HTC Desire running 2.2 and on Samsung galaxy S phones. Does anyone know of a workaround or a fix for this? //Jan -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- 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: ListView adapter bug?; notify changed does nothing.
Oh well, that is just the Settings app code. You'll get it if you pull the source code. Without it, trying to build Android will fail. On Wed, Jan 26, 2011 at 5:28 AM, Brill Pappin br...@pappin.ca wrote: Yes, I do get a listing when I go to the root. On Jan 26, 2:27 am, Dianne Hackborn hack...@android.com wrote: Can you at least get to the root of the repository from the open source project? http://source.android.com/source/index.html http://source.android.com/source/index.htmlWhich goes to here: http://android.git.kernel.org/ I am just accessing this from my home machine, this is the world-accessible repository. On Tue, Jan 25, 2011 at 10:49 PM, Zsolt Vasvari zvasv...@gmail.com wrote: 404 No Such Project On Jan 26, 2:40 pm, Dianne Hackborn hack...@android.com wrote: No, that link is to the public open-source repository. On Tue, Jan 25, 2011 at 10:33 PM, Brill Pappin br...@pappin.ca wrote: I should mention this is on a Nexus One with aOS 2.2.2 in case that matters. Yes, I looked all over that code and even down into AsbListView. It actually registers an internal instance member with the adapter, and the notify call does seem to make it to the observer as far as I can see, but there doesn't seem to be any code that connected the observer and the ListView. I was digging down that far in the first place because I was sure (three times over, I rewrote it from scratch three times using different examples and tutorials besides my first attempt from memory) that I had correctly implemented the Adapter and set it on the ListView. The list view simply never called the adapter after the notify method was called. I know that because I used the basic print- to-log when called technique of tracing the calls. The Adapter would get properly called when first set on the ListView but after that no amount of data change and notify calls would cause it to re-read the adapter, which is what I expect it to do if I notify it that my data has changed. I the end I simply created a new adapter and reset it on the ListView, which seems to be working, however that's broken IMO. I think the next step should be that I write up a quick demo app that attempts replicate the problem. If it doesn't do anything except demonstrate what I'm seeing, then it should allow others to test as well. I'll see if I can make time tomorrow for that. BTW - That link seems to not be visible to me :) must be on your internal network. - Brill Pappin On Jan 26, 12:35 am, Dianne Hackborn hack...@android.com wrote: AsbListView and ListView call registerDataSetObserver() on the adapter. BaseAdapter.notifyDataSetChanged() does the notification to whoever is registered with it. Here is working code, the Running Services UI in settings, that implements a BaseAdapter and uses notifyDataSetChanged() to tell the list view when its contents change: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;. .. On Tue, Jan 25, 2011 at 8:37 PM, Brill Pappin br...@pappin.ca wrote: I just searched the forums, and apparently this is a common problem. ListView with a custom adapter based on BaseAdapter. Its backed by a List object. The problem is that updating the data and calling notifyDataSetChanged(); does nothing. I have modified the adapter so that ever method that is called in it prints itself to the console. my adapter has a method that does the update of the contents and attempts to notify: public void updateData(ListEvent data) { this.data.clear(); this.data.addAll(data); notifyDataSetChanged(); } The problem is that after notifyDataSetChanged() is called, the list never calls any other methods, not even getCount(). My data has changed, and i've notified ListView that it has, yet it still refuses to update. After some investigation in the OS source, I don't see where the observer in the list actually tells the list to update. It seems the only way to get the list to update its elements is to re-set the adapter on it with the new element set. Now I've seen many threads in the group saying that they user was doing something wrong... but I don't see how the notify is going to update the list period (change or no change). So, I think i'm dealing with a bug here. Can someone actually find the code that does the update in the ListVIew when adapters notifyDataSetChanged() is called? - Brill Pappin -- You received this message because you are
Re: [android-developers] Re: ListView adapter bug?; notify changed does nothing.
No, that link is to the public open-source repository. On Tue, Jan 25, 2011 at 10:33 PM, Brill Pappin br...@pappin.ca wrote: I should mention this is on a Nexus One with aOS 2.2.2 in case that matters. Yes, I looked all over that code and even down into AsbListView. It actually registers an internal instance member with the adapter, and the notify call does seem to make it to the observer as far as I can see, but there doesn't seem to be any code that connected the observer and the ListView. I was digging down that far in the first place because I was sure (three times over, I rewrote it from scratch three times using different examples and tutorials besides my first attempt from memory) that I had correctly implemented the Adapter and set it on the ListView. The list view simply never called the adapter after the notify method was called. I know that because I used the basic print- to-log when called technique of tracing the calls. The Adapter would get properly called when first set on the ListView but after that no amount of data change and notify calls would cause it to re-read the adapter, which is what I expect it to do if I notify it that my data has changed. I the end I simply created a new adapter and reset it on the ListView, which seems to be working, however that's broken IMO. I think the next step should be that I write up a quick demo app that attempts replicate the problem. If it doesn't do anything except demonstrate what I'm seeing, then it should allow others to test as well. I'll see if I can make time tomorrow for that. BTW - That link seems to not be visible to me :) must be on your internal network. - Brill Pappin On Jan 26, 12:35 am, Dianne Hackborn hack...@android.com wrote: AsbListView and ListView call registerDataSetObserver() on the adapter. BaseAdapter.notifyDataSetChanged() does the notification to whoever is registered with it. Here is working code, the Running Services UI in settings, that implements a BaseAdapter and uses notifyDataSetChanged() to tell the list view when its contents change: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;... On Tue, Jan 25, 2011 at 8:37 PM, Brill Pappin br...@pappin.ca wrote: I just searched the forums, and apparently this is a common problem. ListView with a custom adapter based on BaseAdapter. Its backed by a List object. The problem is that updating the data and calling notifyDataSetChanged(); does nothing. I have modified the adapter so that ever method that is called in it prints itself to the console. my adapter has a method that does the update of the contents and attempts to notify: public void updateData(ListEvent data) { this.data.clear(); this.data.addAll(data); notifyDataSetChanged(); } The problem is that after notifyDataSetChanged() is called, the list never calls any other methods, not even getCount(). My data has changed, and i've notified ListView that it has, yet it still refuses to update. After some investigation in the OS source, I don't see where the observer in the list actually tells the list to update. It seems the only way to get the list to update its elements is to re-set the adapter on it with the new element set. Now I've seen many threads in the group saying that they user was doing something wrong... but I don't see how the notify is going to update the list period (change or no change). So, I think i'm dealing with a bug here. Can someone actually find the code that does the update in the ListVIew when adapters notifyDataSetChanged() is called? - Brill Pappin -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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. -- 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 --
Re: [android-developers] Re: ListView adapter bug?; notify changed does nothing.
Can you at least get to the root of the repository from the open source project? http://source.android.com/source/index.html http://source.android.com/source/index.htmlWhich goes to here: http://android.git.kernel.org/ I am just accessing this from my home machine, this is the world-accessible repository. On Tue, Jan 25, 2011 at 10:49 PM, Zsolt Vasvari zvasv...@gmail.com wrote: 404 No Such Project On Jan 26, 2:40 pm, Dianne Hackborn hack...@android.com wrote: No, that link is to the public open-source repository. On Tue, Jan 25, 2011 at 10:33 PM, Brill Pappin br...@pappin.ca wrote: I should mention this is on a Nexus One with aOS 2.2.2 in case that matters. Yes, I looked all over that code and even down into AsbListView. It actually registers an internal instance member with the adapter, and the notify call does seem to make it to the observer as far as I can see, but there doesn't seem to be any code that connected the observer and the ListView. I was digging down that far in the first place because I was sure (three times over, I rewrote it from scratch three times using different examples and tutorials besides my first attempt from memory) that I had correctly implemented the Adapter and set it on the ListView. The list view simply never called the adapter after the notify method was called. I know that because I used the basic print- to-log when called technique of tracing the calls. The Adapter would get properly called when first set on the ListView but after that no amount of data change and notify calls would cause it to re-read the adapter, which is what I expect it to do if I notify it that my data has changed. I the end I simply created a new adapter and reset it on the ListView, which seems to be working, however that's broken IMO. I think the next step should be that I write up a quick demo app that attempts replicate the problem. If it doesn't do anything except demonstrate what I'm seeing, then it should allow others to test as well. I'll see if I can make time tomorrow for that. BTW - That link seems to not be visible to me :) must be on your internal network. - Brill Pappin On Jan 26, 12:35 am, Dianne Hackborn hack...@android.com wrote: AsbListView and ListView call registerDataSetObserver() on the adapter. BaseAdapter.notifyDataSetChanged() does the notification to whoever is registered with it. Here is working code, the Running Services UI in settings, that implements a BaseAdapter and uses notifyDataSetChanged() to tell the list view when its contents change: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;... On Tue, Jan 25, 2011 at 8:37 PM, Brill Pappin br...@pappin.ca wrote: I just searched the forums, and apparently this is a common problem. ListView with a custom adapter based on BaseAdapter. Its backed by a List object. The problem is that updating the data and calling notifyDataSetChanged(); does nothing. I have modified the adapter so that ever method that is called in it prints itself to the console. my adapter has a method that does the update of the contents and attempts to notify: public void updateData(ListEvent data) { this.data.clear(); this.data.addAll(data); notifyDataSetChanged(); } The problem is that after notifyDataSetChanged() is called, the list never calls any other methods, not even getCount(). My data has changed, and i've notified ListView that it has, yet it still refuses to update. After some investigation in the OS source, I don't see where the observer in the list actually tells the list to update. It seems the only way to get the list to update its elements is to re-set the adapter on it with the new element set. Now I've seen many threads in the group saying that they user was doing something wrong... but I don't see how the notify is going to update the list period (change or no change). So, I think i'm dealing with a bug here. Can someone actually find the code that does the update in the ListVIew when adapters notifyDataSetChanged() is called? - Brill Pappin -- 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.com android-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android
Re: [android-developers] [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]
On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com wrote: Also, it appears this is a bug that is declined by the Android team. Use less memory in your app was the original solution suggested by Romain Guy. http://code.google.com/p/android/issues/detail?id=8488 The issue you list here would appear to have nothing to do with your problem, considering that your error (trying to use a recycled bitmap) appears nowhere in that issue. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]
On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com wrote: In a nutshell, I have/am trying to create reusable UI components in XML. I created a dead simple project that only fires an activity to show the UI. Your dead simple project will not run on any version of Android, due to a typo in your manifest. Also, on the Android 2.3 emulator, your dead simple project crashes immediately with a bitmap size exceeds VM budget. Your problem can be solved by removing your recycle() call and putting your background PNG into the appropriate resource sets (drawable-ldpi, drawable-mdpi, drawable-hdpi). This has a side benefit of allowing your application to run on Android 2.3. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]
This error message is usually not related to the GC. This message is logged when recycle() is called twice on the same bitmap. Considering you are doing your own bitmap management and calling recycle yourself in BaseForm I would suspect a bug in your code. On Fri, Jan 7, 2011 at 9:44 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com wrote: Also, it appears this is a bug that is declined by the Android team. Use less memory in your app was the original solution suggested by Romain Guy. http://code.google.com/p/android/issues/detail?id=8488 The issue you list here would appear to have nothing to do with your problem, considering that your error (trying to use a recycled bitmap) appears nowhere in that issue. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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] Is this a bug? Is this a forum to file bugs?
On 5 November 2010 10:29, Rene Grothmann renegrothm...@gmail.com wrote: Answering your subject's question. No. This is the right place to file bugs against the framework: http://code.google.com/p/android/issues/list But I believe it's still perfectly fine to discuss the finding here with others, before filling the bug report -- 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] Android Market update bug?
On Mon, Oct 11, 2010 at 12:34 PM, Ken H hunt1...@gmail.com wrote: Anyone seen this? http://market.android.com/support/bin/search.py?ctx=en%3Asearchboxquery=%22installing...%22 - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] Re: Arithmetic error (BUG)
Yes, that's how it works in the wonderful world of computers. Floating point math is inexact, because numbers are represented in binary base, and those fractional numbers that look nice and round in decimal often don't have nice round representations in binary. So rounding is inherent, at least in the conversion between decimal (used for input/output) and binary (used internally) bases. I suspect your sample program uses too much precision for outputting the result, or maybe even standard Android Java runtime does. But this has nothing to do with the math itself. Oh, and the space probe crashed because its controlling software used both metric and imperial units, and someone forgot to add conversion. A good reason for the US to go metric. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.09.2010 17:48 пользователь Churky chu...@gmail.com написал: I was like to make a small correction as I posted the 2 numbers in correctly. My test values where 102 * 0.0254 which yields 2.5908, while i get a value of 2.59079998 Sorry for the incorrect information during the first post, as i was still busy confirming this problem with multiple people on different devices. On Sep 4, 2:43 am, Indicator Veritatis mej1...@yahoo.com wrote: As Kostya already commented, this is rounding error. The error is well within the acceptable ran... -- 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: Arithmetic error (BUG)
Arithmetic error? Bug? Well, sort of, but no. Sort of, because at first sight it looks wrong. At least from a purely mathematical perspective and because we kind of think computers are purely methematical. But no, because this is not even a computer issue. Take for example the problem of dividing 1 by 3. The decimal result is 0.3... The elipsis (...) indicating that there's an infinite number of repeating digits. If you add the result three times, you get 0.9... Funny, isn't it, shouldn't the answer be 1? An engineer or physicist would recognize your problem as converting inches to meters, because of the 0.0254. However, they know how to deal with precision. So the computation would NOT be: 102 +/- 0 * 0.0254 +/- 0 (exact) = 2.59079998 +/- 0 (INACCURATE answer) it would be 102 +/- 0.01 * 0.0254 +/- 0 (exact) = 2.59079998 +/- 0.01 (ACCURATE answer) Notice that the conversion factor, 0.0254 is exact, but the value in inches is not. In this case I've chosen a precision of +/- 0.01 inches. -- 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: Arithmetic error (BUG)
Admittedly, my example of precision calculation is overly simplified. In a real case, one would use % precision instead of absolute precision. -- 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: Internet Connection Bug Or Error ??
On Sat, Aug 21, 2010 at 1:33 AM, tarek attia tarek.m.at...@gmail.comwrote: On Sat, Aug 21, 2010 at 1:43 AM, Miguel Morales therevolti...@gmail.comwrote: Did you not read my reply? Try pinging an ip that's always up like 4.2.2.2 or similar. So you'll need a few levels of checks, first the normal check you're doing now. And then an internet reachability test to test if you can reach the internet. Thank you very much :) .I did it as you suggested.This is what worked for me :- try { address = InetAddress.getByName(www.google.com); * checkConnection = address.isReachable(6);* this method always returns false in android due to Linux privileges and something like this.So you can use HTTP timeout instead to check the Internet connection. } catch (UnknownHostException e) { guiHandler.post(noConnectionAlert); } catch (IOException e) { guiHandler.post(noConnectionAlert); } This isn't a bug in android, or some sort of error. This is a common functionality in all software. If you're connected to your router, but your router isn't connected to the internet. All the software will think it's connected to the internet and try to connect forever. (At least for software that doesn't run the check I've told you) On Fri, Aug 20, 2010 at 3:38 PM, tarek attia tarek.m.at...@gmail.com wrote: On Sat, Aug 21, 2010 at 12:43 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. Sorry for this,but I have been with this error long time . You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. What if this server is down at this time!!! I want to show the reason of the disability either the no internet connection or the server is down ?? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- tarek -- 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 -- http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9 -- 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 -- tarek -- tarek -- 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: Internet Connection Bug Or Error ??
Besides, network connectivity can become unavailable at any time, like in the middle of your download. So checking to see if it's available at some point in time is no substitute for error handling in networking code. -- Kostya 21.08.2010 1:43, Mark Murphy пишет: On Fri, Aug 20, 2010 at 4:50 PM, tarek attiatarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. -- 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
Re: [android-developers] Re: Internet Connection Bug Or Error ??
On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] Re: Internet Connection Bug Or Error ??
This is a problem for all kinds of software. Including PC software. It is not something unique to Android. The only solution I can think of is try to ping or reach an ip that is always up. On Fri, Aug 20, 2010 at 2:43 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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 -- http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9 -- 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: Internet Connection Bug Or Error ??
On Sat, Aug 21, 2010 at 1:25 AM, DanH danhi...@ieee.org wrote: First you have to define connected to the internet. You might be connected to the local router, eg, but it might not have a route out. You might even have a connection to a large network (eg, a university), but not be able to get past some firewall to the rest of the world. I mean by Connected to the internet to have an internet Gateway .I want to ensure that I'm connected to the internet not just a network without an internet gateway On Aug 20, 2:33 pm, tarek attia tarek.m.at...@gmail.com wrote: Hi all, In my application I must use the internet connection ,so I check it first before I open an URL connection using this :- public boolean IsConnectedToNetwork(ConnectivityManager conManager) { NetworkInfo allNetworkInfo = conManager.getActiveNetworkInfo(); NetworkInfo currNetworkInfo; boolean anythingConnected = false; for (int i = 0; i allNetworkInfo.length; i++) { currNetworkInfo = allNetworkInfo[i]; if (currNetworkInfo.getState() == NetworkInfo.State.CONNECTED) { anythingConnected=true; } } return anythingConnected; } However this code runs well when I connected to either the operator internet Or to a Wi-fi network . But when I'm connected to the operator but without credit and no internet the mobile also sees it as there's internet,or even connected to a Wi-fi network but without internet gateway it also sees as if it's connected to the internet Any Idea how can ensure that I'm connected to the internet ?? -- tarek -- 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 -- tarek -- 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: Internet Connection Bug Or Error ??
On Sat, Aug 21, 2010 at 12:43 AM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. Sorry for this,but I have been with this error long time . You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. What if this server is down at this time!!! I want to show the reason of the disability either the no internet connection or the server is down ?? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- tarek -- 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: Internet Connection Bug Or Error ??
On Fri, Aug 20, 2010 at 6:38 PM, tarek attia tarek.m.at...@gmail.com wrote: What if this server is down at this time!!! Then you cannot communicate to it. I want to show the reason of the disability either the no internet connection or the server is down ?? Then try a second server. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] Re: Internet Connection Bug Or Error ??
Did you not read my reply? Try pinging an ip that's always up like 4.2.2.2 or similar. So you'll need a few levels of checks, first the normal check you're doing now. And then an internet reachability test to test if you can reach the internet. This isn't a bug in android, or some sort of error. This is a common functionality in all software. If you're connected to your router, but your router isn't connected to the internet. All the software will think it's connected to the internet and try to connect forever. (At least for software that doesn't run the check I've told you) On Fri, Aug 20, 2010 at 3:38 PM, tarek attia tarek.m.at...@gmail.com wrote: On Sat, Aug 21, 2010 at 12:43 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. Sorry for this,but I have been with this error long time . You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. What if this server is down at this time!!! I want to show the reason of the disability either the no internet connection or the server is down ?? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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 -- tarek -- 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 -- http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9 -- 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: Internet Connection Bug Or Error ??
On Sat, Aug 21, 2010 at 1:43 AM, Miguel Morales therevolti...@gmail.comwrote: Did you not read my reply? Try pinging an ip that's always up like 4.2.2.2 or similar. So you'll need a few levels of checks, first the normal check you're doing now. And then an internet reachability test to test if you can reach the internet. Thank you very much :) .I did it as you suggested.This is what worked for me :- try { address = InetAddress.getByName(www.google.com); checkConnection = address.isReachable(6); } catch (UnknownHostException e) { guiHandler.post(noConnectionAlert); } catch (IOException e) { guiHandler.post(noConnectionAlert); } This isn't a bug in android, or some sort of error. This is a common functionality in all software. If you're connected to your router, but your router isn't connected to the internet. All the software will think it's connected to the internet and try to connect forever. (At least for software that doesn't run the check I've told you) On Fri, Aug 20, 2010 at 3:38 PM, tarek attia tarek.m.at...@gmail.com wrote: On Sat, Aug 21, 2010 at 12:43 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. Sorry for this,but I have been with this error long time . You can try requestRouteToHost(), but I've seen some reports to suggest that it does not work very well. The best option is for you to simply try some operation on whatever server you are trying to reach. For example, download a small graphic from the Web site if you are trying to access that site's Web service. What if this server is down at this time!!! I want to show the reason of the disability either the no internet connection or the server is down ?? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- tarek -- 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 -- http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9 -- 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 -- tarek -- 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] nasty phone freeze bug in Android 2.1-update1 showing up in multiple cases on Nexus One and Droid
Robert Green wrote: I mentioned this earlier but no one seemed to know anything about this. [...] W/SharedBufferStack(29487): waitForCondition(LockCondition) timed out (identity=1310, status=0). CPU may be pegged. trying again. [...] I've also seen this happen once before to RenderScript, so perhaps it is OpenGL-related? I feel like there is a bug down there in the depths of Android This sounds lot like what I've experienced and reported here: http://code.google.com/p/android/issues/detail?id=6478 I just got 2.1-update1 on my Milestone this morning (UK model), so I've not seen it there yet, but considering fadden's comment#4 to the bug I wouldn't bet on it being fixed... Speaking of bugs: Even the 2.1-update1 on Milestone refuses to add a Google account (Gmail or Apps) - Nexus One works fine though. Anyone else experience this? The error message is: Can't establish a reliable data connection to the server. (even when entering complete garbage). Best / Jonas -- 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] Is this a bug in TextView?
This is indeed a bad copy and paste error. On Mon, Mar 8, 2010 at 12:04 PM, Brion Emde brione2...@gmail.com wrote: Geez, I know it's hard to believe, but stuff like this sticks out like a thumb to me as a Copy Paste error. From the source I've been looking at for TextView (please correct me if I'm in the wrong place) at: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/TextView.java;h=f55ca3fecfd93a3d95c1022bbe0694cf85b41919;hb=HEAD This is in the setCompoundDrawables() function, after we've determined that we indeed have a Drawable to set: 1371 if (dr == null) { 1371 mDrawables = dr = new Drawables(); 1372 } 1373 -This is okay 1374 if (dr.mDrawableLeft != left dr.mDrawableLeft != null) { 1375 dr.mDrawableLeft.setCallback(null); 1376 } 1377 dr.mDrawableLeft = left; -But, look at the comparison here. I think it should be if(dr.mDrawableTop != top so on 1378 if (dr.mDrawableTop != left dr.mDrawableTop != null) { 1379 dr.mDrawableTop.setCallback(null); 1380 } 1381 dr.mDrawableTop = top; - Same thing here: it should be if(dr.mDrawableRight != right so on 1382 if (dr.mDrawableRight != left dr.mDrawableRight != null) { 1383 dr.mDrawableRight.setCallback(null); 1384 } 1385 dr.mDrawableRight = right; --- Same here: the left should be bottom 1386 if (dr.mDrawableBottom != left dr.mDrawableBottom ! = null) { 1387 dr.mDrawableBottom.setCallback(null); 1388 } 1389 dr.mDrawableBottom = bottom; Please let me know if I'm off base here, like out in the weeds on some dead code branch. That would be very helpful to me. -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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] Is this a bug in TextView?
FYI, I just fixed the bug in FroYo. On Mon, Mar 8, 2010 at 12:04 PM, Brion Emde brione2...@gmail.com wrote: Geez, I know it's hard to believe, but stuff like this sticks out like a thumb to me as a Copy Paste error. From the source I've been looking at for TextView (please correct me if I'm in the wrong place) at: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/TextView.java;h=f55ca3fecfd93a3d95c1022bbe0694cf85b41919;hb=HEAD This is in the setCompoundDrawables() function, after we've determined that we indeed have a Drawable to set: 1371 if (dr == null) { 1371 mDrawables = dr = new Drawables(); 1372 } 1373 -This is okay 1374 if (dr.mDrawableLeft != left dr.mDrawableLeft != null) { 1375 dr.mDrawableLeft.setCallback(null); 1376 } 1377 dr.mDrawableLeft = left; -But, look at the comparison here. I think it should be if(dr.mDrawableTop != top so on 1378 if (dr.mDrawableTop != left dr.mDrawableTop != null) { 1379 dr.mDrawableTop.setCallback(null); 1380 } 1381 dr.mDrawableTop = top; - Same thing here: it should be if(dr.mDrawableRight != right so on 1382 if (dr.mDrawableRight != left dr.mDrawableRight != null) { 1383 dr.mDrawableRight.setCallback(null); 1384 } 1385 dr.mDrawableRight = right; --- Same here: the left should be bottom 1386 if (dr.mDrawableBottom != left dr.mDrawableBottom ! = null) { 1387 dr.mDrawableBottom.setCallback(null); 1388 } 1389 dr.mDrawableBottom = bottom; Please let me know if I'm off base here, like out in the weeds on some dead code branch. That would be very helpful to me. -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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] Is This Another Bug In TextView?
This is not a bug, a PaintDrawable ignores its bounds. You want a ColorDrawable instead. On Mon, Mar 8, 2010 at 7:23 PM, Brion Emde brione2...@gmail.com wrote: I posted earlier with a less clear title. Unless someone can show me differently, I think I've found another bug in TextView. res/values/colors.xml: ?xml version=1.0 encoding=utf-8? resources drawable name=red_drawable#FF/drawable /resources res/layout/main.xml: ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/textview android:layout_width=fill_parent android:layout_height=wrap_content android:text=There should be a red strip at the bottom of this view, not a red background / src/eyebrowssoftware/showcompounddrawablesproblem/ShowIt.java: package com.eyebrowssoftware.showcompounddrawablesproblem; import android.app.Activity; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.widget.TextView; public class ShowIt extends Activity { �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Drawable paintDrawable = getResources().getDrawable(R.drawable.red_drawable); TextView tv = (TextView) findViewById(R.id.textview); // setBounds must be called before setCompoundDrawable(), but it does not matter. // this should be a 5 pixel high rectangle the width of the text. paintDrawable.setBounds(0, 0, tv.getWidth(), 5); // no matter what you set the bounds to, it becomes the background of the textview, not underline, // which is also there // this should put the 5 pixel high rectangle below the text, which it does, but it also sets the background tv.setCompoundDrawables(null, null, null, paintDrawable); // this padding seems irrelevant tv.setCompoundDrawablePadding(2); } } And here is how it appears, which I think is highly wrong: http://www.vonemdeheim.com/picture_library/CompoundDrawablesBug.jpg Please point out where I made a mistake. Thanks for your attention. -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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: [TransitionDrawable ImageView] Bug fix on android 2.1 ?
The fix was related to ListView's recycling of views, you won't be able to easily work around the bug without modifying the framework. On Tue, Feb 2, 2010 at 3:49 AM, Worgle lewor...@gmail.com wrote: Hi Romain, Thanks for taking the time to answer this yourself. You're probably right : the fix was probably made on ListView rather that on TransitionDrawable. The reason I need to know where the fix was is that I have to maintain backward compatibility with Android 1.5, thus I would be happy to find a workaround for this little bug. I looked at the diffs (since Android 2.1 source code was pushed on public git repository today !) but I wasn't able to find the fix yet. I'll keep looking for it. PS : Désolé pour mon anglais, et au passage merci pour ce sympatique framework. :) On Feb 1, 7:37 pm, Romain Guy romain...@android.com wrote: Hi, Why exactly do you need to know what the fix was? I don't remember doing anything to fix TransitionDrawable so it's probably one of the numerous fixes that went into ListView itself that's responsible for the new correct behavior. On Mon, Feb 1, 2010 at 8:39 AM, Worgle lewor...@gmail.com wrote: Hello, It seams to me that a bug was fixed between android 2.0.1 and 2.1 about TransitionDrawable (or maybe ImageView). When using TransitionDrawable in a ListView (with convert view mechanism) in android 2.0.1 and below, I can't see the Transition if I scroll rapidly to the end of the list, and then go back to the middle (even through I'm calling startTransition). Note that my TransitionDrawable is set as the image of an ImageView. (Tested on emulators from 1.6 to 2.1, and on real devices : G2 with 1.5, G2 with 1.6 and Nexuos One with 2.1) But with android 2.1, the bug magically disappeared ! I'm quite happy but I still want backward compatibility... So is there anyone on the android team a bit less busy than the others who could run a diff on TransitionDrawable and ImageView between 2.01 and 2.1 and tell us what's going on ? :) Of course the change could have occured on LayerDrawable or other parent's classes as well... Thanks, Fabien PS : here's part of my code Drawable drawableOld = this.getDrawable(); Drawable drawableNew = new BitmapDrawable (bitmap); Drawable[] layers = {drawableOld, drawableNew}; TransitionDrawable transitionDrawable = new TransitionDrawable(layers); transitionDrawable.setCrossFadeEnabled(true); setImageDrawable(transitionDrawable); transitionDrawable.startTransition (TRANSITION_DURATION); -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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] A log collector - Bug collector per android developers
English Translation, per Google Translate: Hello guys .. In my free time thanks to an acute asthmatic bronchitis are Afini managed a project which I'm sure will interest you. Basically I created a library that allows you to track bugs your applications online. Let me explain .. The library, once imported into your projects android, begin to track every online crash reporting as much information as possible. In any * new * bug the web service will send you an e-mail alerting which was found a new bug to which the interface was not knowledge and give you the opportunity to have information about: - Stack dell'eccezzione - The stack that caused the exception (if available) - The versions of android where the exception occurred, - Phone models where the crash occurred - The version of your application Everything is grouped by exception and packages so that you can see what are the exceptions that crashing your applications. There is also a nice chart that allows you to understand the temporal how many times your application has crashed for that reason all divided by days:) In short, I created a nice tool, I hope .. On the website there also the chance to see the operation of the interface graphics with real data simply by using a demo account. Forgot: here is the link: http://alogcollector.andreabaccega.com/ Let me know:) - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking 2010/1/6 vekexasia vekexa...@gmail.com Ciao ragazzi.. Nel mio tempo libero grazie ad una bronchite acuta asmatica son riuscito afinire un progetto che son sicuro vi interesserà. In pratica ho creato una libreria che permette di tracciare i bugs delle vostre applicazioni online. Mi spiego meglio.. La libreria, una volta importata nei vostri progetti android, comincerà a tracciare ogni crash dell'applicazione online riportando quante più informazioni possibili. Ad ogni *nuovo* bug il servizio web vi manderà una e-mail avvisandovi che è stato trovato un nuovo bug del quale l'interfaccia non era a conoscenza e vi darà la possibilità di avere informazioni riguardo: - Lo stack dell'eccezzione - Lo stack che ha causato l'eccezione (se disponibile) - Le versioni di android dove l'eccezione è avvenuta, - I modelli di telefono dove il crash è avvenuto - La versione della vostra applicazione Il tutto viene raggruppato per eccezione e package in modo che possiate vedere quali sono le eccezioni che mandano in crash le vostre applicazioni. Inoltre è presente un bel grafico temporale che vi permette di capire quante volte la vostra applicazione è crashata per quel motivo tutto diviso per giorni :) Insomma ho creato un bel tool, almeno spero.. Sul sito internet c'è anche la possibilità di vedere il funzionamento dell'interfaccia grafica con dati veri semplicemente usando un account di demo. Dimenticavo: ecco il link : http://alogcollector.andreabaccega.com/ Fatemi sapere :) -- 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] A log collector - Bug collector per android developers
Oh, apparently already posted an English version ... weird. Don't mind me... - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Wed, Jan 6, 2010 at 2:48 PM, TreKing treking...@gmail.com wrote: English Translation, per Google Translate: Hello guys .. In my free time thanks to an acute asthmatic bronchitis are Afini managed a project which I'm sure will interest you. Basically I created a library that allows you to track bugs your applications online. Let me explain .. The library, once imported into your projects android, begin to track every online crash reporting as much information as possible. In any * new * bug the web service will send you an e-mail alerting which was found a new bug to which the interface was not knowledge and give you the opportunity to have information about: - Stack dell'eccezzione - The stack that caused the exception (if available) - The versions of android where the exception occurred, - Phone models where the crash occurred - The version of your application Everything is grouped by exception and packages so that you can see what are the exceptions that crashing your applications. There is also a nice chart that allows you to understand the temporal how many times your application has crashed for that reason all divided by days:) In short, I created a nice tool, I hope .. On the website there also the chance to see the operation of the interface graphics with real data simply by using a demo account. Forgot: here is the link: http://alogcollector.andreabaccega.com/ Let me know:) - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking 2010/1/6 vekexasia vekexa...@gmail.com Ciao ragazzi.. Nel mio tempo libero grazie ad una bronchite acuta asmatica son riuscito afinire un progetto che son sicuro vi interesserà. In pratica ho creato una libreria che permette di tracciare i bugs delle vostre applicazioni online. Mi spiego meglio.. La libreria, una volta importata nei vostri progetti android, comincerà a tracciare ogni crash dell'applicazione online riportando quante più informazioni possibili. Ad ogni *nuovo* bug il servizio web vi manderà una e-mail avvisandovi che è stato trovato un nuovo bug del quale l'interfaccia non era a conoscenza e vi darà la possibilità di avere informazioni riguardo: - Lo stack dell'eccezzione - Lo stack che ha causato l'eccezione (se disponibile) - Le versioni di android dove l'eccezione è avvenuta, - I modelli di telefono dove il crash è avvenuto - La versione della vostra applicazione Il tutto viene raggruppato per eccezione e package in modo che possiate vedere quali sono le eccezioni che mandano in crash le vostre applicazioni. Inoltre è presente un bel grafico temporale che vi permette di capire quante volte la vostra applicazione è crashata per quel motivo tutto diviso per giorni :) Insomma ho creato un bel tool, almeno spero.. Sul sito internet c'è anche la possibilità di vedere il funzionamento dell'interfaccia grafica con dati veri semplicemente usando un account di demo. Dimenticavo: ecco il link : http://alogcollector.andreabaccega.com/ Fatemi sapere :) -- 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] is this a bug?
Andrei wrote: This image is for Droid which has Android 2.01 on it Is the Default picture for contact suppose to be upside down? http://sites.google.com/site/gmlvsk/tmp/device.png?attredirects=0 I believe the orientation of the lil' green guy is randomly chosen or something. On that same screen I have seen him in a few different orientations. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- 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] is this a bug?
The image is indeed picked at random amongst a few variations. On Sat, Dec 26, 2009 at 12:32 PM, Mark Murphy mmur...@commonsware.com wrote: Andrei wrote: This image is for Droid which has Android 2.01 on it Is the Default picture for contact suppose to be upside down? http://sites.google.com/site/gmlvsk/tmp/device.png?attredirects=0 I believe the orientation of the lil' green guy is randomly chosen or something. On that same screen I have seen him in a few different orientations. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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: Copy protection bug statuses
When a bug is marked as FutureRelease it usually means it will be fixed in the next release at the time the bug is closed. http://code.google.com/p/android/issues/detail?id=2263 was marked as FutureRelease @ Mar 21, 2009 so it should be fixed in Android 1.5 - that was the next version after this date (first SDK released on 13 April 2009). http://code.google.com/p/android/issues/detail?id=2047 was marked as FutureRelease @ Apr 20, 2009 so it should be fixed in Android 1.6 - that was the next version after this date (released on 15 September 2009). Tauno On Thu, Nov 12, 2009 at 10:28 PM, Matt Hall matt.h...@gmail.com wrote: So can I take that to mean that that the bug exists in all current releases including 2.0? I could really use some concrete info on this particular issue as it affects most of our apps and the enlarged bundle size is becoming a real problem on Droid. Thanks very much, Matt On Nov 12, 3:22 pm, Romain Guy romain...@google.com wrote: When a bug is marked as FutureRelease it usually means it will be fixed in the next release at the time the bug is closed. Anyhow, it means the bug has been fixed and will eventually reach users phones :) On Thu, Nov 12, 2009 at 9:07 AM, Neiman Buffard neimanbuff...@gmail.com wrote: ok for starters im pretty sure im not doin this right but i wanted to throw an idea at anyone who would take the time to read/listen for upgrades to come if it cant make the cut for the next one. I would like to see this done in an upgrade instead of an app only because i feel that this is somthin everyone would enjoy. BIG PICTURES i feel that When ur favorite contacts/friends call and u have a customized ring tone and possibly an assigned contact photo would it be askin to much to utilize the 3.2-inch TFT-LCD flat touch-sensitive screen with 320 x 480 (HVGA) resolution for that photo. Very simple yes i know however we are limited to that small picture with out even being givin the option as to weather you' like it that small or not. just a thought i've had for some time now that i wanted to share thanks for listening follow android but more specificly G1 users On Thu, Nov 12, 2009 at 12:02 PM, Matt Hall matt.h...@gmail.com wrote: Can anyone from Google comment on the status of the following copy protection related bugs: http://code.google.com/p/android/issues/detail?id=2047 http://code.google.com/p/android/issues/detail?id=2263 They're marked fixed in a future release, but I don't know what release (if any) that means. I'd love to revert to no copy protection on our games for a number of pressing reasons, but these bugs bit us pretty bad last time I tried. Any info much appreciated, thanks. Matt -- 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 -- Romain Guy Android framework engineer romain...@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 -- 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