[android-developers] Re: ListView focus behaving different when using minSdkVersion=3
I have the same problem. Did you ever find a solution? Cheers, Jason On Mar 16, 3:13 am, licorna wrote: > A few days ago I was trying to fix this issue: I have a header (three > ImageButton's) and a ListView. If I use the dpad, pressing DOWN to > focus the ListView, the ListView shows as selected the seventh or > eighth row, not the first one. > > What I need to do is that the first element of the ListView get the > focus (or selection) when I use the dpad, from another screen > component, but instead, the seventh or eighth is selected. > > I had minSdkVersion=3 in my manifest. When I changed it to > minSdkVersion=4 it worked as expected (first row selected). Don't know > why, but there is a difference between both. > > I'm posting it right here if someone else has the same problem as me. > The fring application has the very same problem in contact list. > > Salud, > Rodrigo -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView focus behaving different when using minSdkVersion=3
Looks like a bug in the Android framework. What is your targetSdk value? What actual SDK version are you running your code on? On Mar 15, 10:13 pm, licorna wrote: > A few days ago I was trying to fix this issue: I have a header (three > ImageButton's) and a ListView. If I use the dpad, pressing DOWN to > focus the ListView, the ListView shows as selected the seventh or > eighth row, not the first one. > > What I need to do is that the first element of the ListView get the > focus (or selection) when I use the dpad, from another screen > component, but instead, the seventh or eighth is selected. > > I had minSdkVersion=3 in my manifest. When I changed it to > minSdkVersion=4 it worked as expected (first row selected). Don't know > why, but there is a difference between both. > > I'm posting it right here if someone else has the same problem as me. > The fring application has the very same problem in contact list. > > Salud, > Rodrigo -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView focus behaving different when using minSdkVersion=3
Hi, Thanks for the response. Your questions were helpful. I changed the SDK version I was running my code on from 1.5 to 1.6 and implemented the below attributes in the manifest and everything works as it should (on 1.6+ devices). However Eclipse shows a warning that the minSdkVersion is lower than the targetSdkVersion version. Do you know if this can cause problems? Also, by building my app while running the code on the 1.6 SDK will it still be available to 1.5 devices in the market? Thanks in advance. Cheers, Jason On Apr 24, 6:48 pm, Streets Of Boston wrote: > Looks like a bug in the Android framework. > > What is your targetSdk value? > What actual SDK version are you running your code on? > > On Mar 15, 10:13 pm, licorna wrote: > > > > > > > A few days ago I was trying to fix this issue: I have a header (three > > ImageButton's) and a ListView. If I use the dpad, pressing DOWN to > > focus the ListView, the ListView shows as selected the seventh or > > eighth row, not the first one. > > > What I need to do is that the first element of the ListView get the > > focus (or selection) when I use the dpad, from another screen > > component, but instead, the seventh or eighth is selected. > > > I had minSdkVersion=3 in my manifest. When I changed it to > > minSdkVersion=4 it worked as expected (first row selected). Don't know > > why, but there is a difference between both. > > > I'm posting it right here if someone else has the same problem as me. > > The fring application has the very same problem in contact list. > > > Salud, > > Rodrigo > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView focus behaving different when using minSdkVersion=3
"However Eclipse shows a warning that the minSdkVersion is lower than the targetSdkVersion version. Do you know if this can cause problems?" Shouldn't have any problems with this. If the min < target, then you must take precautions yourself that you don't accidentally use APIs that are available only in 'target' and not in 'min'. That's the warning. "Also, by building my app while running the code on the 1.6 SDK will it still be available to 1.5 devices in the market?" Yes, as long as the minSdkVersion=3 (or lower). The minSdkVersion just tells the Android Market that your app can be installed on phones with this version or higher. The maxSdkVersion tells tells the Android Market that your app can be installed on phones with this version or lower. You probably won't use this setting. The targetSdkVersion instructs the run-time to run some forward or backward 'compatibility' code (where necessary) in case the customer's phone's version is not equal to the targetSdkVersion. Note: minSdkVersion <= targetSdkVersion <= maxSdkVersion On Apr 26, 12:23 pm, "jason.delport" wrote: > Hi, > > Thanks for the response. > > Your questions were helpful. I changed the SDK version I was running > my code on from 1.5 to 1.6 and implemented the below attributes in the > manifest and everything works as it should (on 1.6+ devices). > > > > However Eclipse shows a warning that the minSdkVersion is lower than > the targetSdkVersion version. Do you know if this can cause problems? > > Also, by building my app while running the code on the 1.6 SDK will it > still be available to 1.5 devices in the market? > > Thanks in advance. > > Cheers, > > Jason > > On Apr 24, 6:48 pm, Streets Of Boston wrote: > > > > > > > Looks like a bug in the Android framework. > > > What is your targetSdk value? > > What actual SDK version are you running your code on? > > > On Mar 15, 10:13 pm, licorna wrote: > > > > A few days ago I was trying to fix this issue: I have a header (three > > > ImageButton's) and a ListView. If I use the dpad, pressing DOWN to > > > focus the ListView, the ListView shows as selected the seventh or > > > eighth row, not the first one. > > > > What I need to do is that the first element of the ListView get the > > > focus (or selection) when I use the dpad, from another screen > > > component, but instead, the seventh or eighth is selected. > > > > I had minSdkVersion=3 in my manifest. When I changed it to > > > minSdkVersion=4 it worked as expected (first row selected). Don't know > > > why, but there is a difference between both. > > > > I'm posting it right here if someone else has the same problem as me. > > > The fring application has the very same problem in contact list. > > > > Salud, > > > Rodrigo > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView focus behaving different when using minSdkVersion=3
Thank you for taking the time out to respond to my question. Much appreciated. Cheers, Jason On Apr 26, 8:04 pm, Streets Of Boston wrote: > "However Eclipse shows a warning that the minSdkVersion is lower than > the targetSdkVersion version. Do you know if this can cause problems?" > Shouldn't have any problems with this. If the min < target, then you > must take precautions yourself that you don't accidentally use APIs > that are available only in 'target' and not in 'min'. That's the > warning. > > "Also, by building my app while running the code on the 1.6 SDK will > it still be available to 1.5 devices in the market?" > Yes, as long as the minSdkVersion=3 (or lower). > > The minSdkVersion just tells the Android Market that your app can be > installed on phones with this version or higher. > > The maxSdkVersion tells tells the Android Market that your app can be > installed on phones with this version or lower. You probably won't use > this setting. > > The targetSdkVersion instructs the run-time to run some forward or > backward 'compatibility' code (where necessary) in case the customer's > phone's version is not equal to the targetSdkVersion. > > Note: > minSdkVersion <= targetSdkVersion <= maxSdkVersion > > On Apr 26, 12:23 pm, "jason.delport" wrote: > > > > > > > Hi, > > > Thanks for the response. > > > Your questions were helpful. I changed the SDK version I was running > > my code on from 1.5 to 1.6 and implemented the below attributes in the > > manifest and everything works as it should (on 1.6+ devices). > > > > > > However Eclipse shows a warning that the minSdkVersion is lower than > > the targetSdkVersion version. Do you know if this can cause problems? > > > Also, by building my app while running the code on the 1.6 SDK will it > > still be available to 1.5 devices in the market? > > > Thanks in advance. > > > Cheers, > > > Jason > > > On Apr 24, 6:48 pm, Streets Of Boston wrote: > > > > Looks like a bug in the Android framework. > > > > What is your targetSdk value? > > > What actual SDK version are you running your code on? > > > > On Mar 15, 10:13 pm, licorna wrote: > > > > > A few days ago I was trying to fix this issue: I have a header (three > > > > ImageButton's) and a ListView. If I use the dpad, pressing DOWN to > > > > focus the ListView, the ListView shows as selected the seventh or > > > > eighth row, not the first one. > > > > > What I need to do is that the first element of the ListView get the > > > > focus (or selection) when I use the dpad, from another screen > > > > component, but instead, the seventh or eighth is selected. > > > > > I had minSdkVersion=3 in my manifest. When I changed it to > > > > minSdkVersion=4 it worked as expected (first row selected). Don't know > > > > why, but there is a difference between both. > > > > > I'm posting it right here if someone else has the same problem as me. > > > > The fring application has the very same problem in contact list. > > > > > Salud, > > > > Rodrigo > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group > > > athttp://groups.google.com/group/android-developers?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en-Hide quoted text - > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en