[android-developers] Re: List of Available Consultants –Scepter Technologies. (HOTLIST).
***URGENT NEED US IT Bench Sales * Company Name : ConglomerateIT LLC Job Location : Madhapur, Hyderabad. Experience : 1 - 9 years Shift Timings : 6:30 PM to 3.30 AM IST No of Position : 10 Salary Package : 2 - 10 Lakhs Incentives: 20% Hike Each Quarter if 3 Closures are met in the Quarter apart from 12500 Incentives for 1st Closure and % recurring on 2nd Closure in the same Month if any.. For applications and additional information Contact HR: 040 - 4951 Email: care...@conglomerateit.com ***URGENT NEED US IT Bench Sales * On Thursday, February 9, 2017 at 6:54:08 AM UTC-6, Technical Consultants wrote: > > Dear Business Partner, > > Greetings from Scepter Technologies, Hope you are doing great. > > This is Peter from Scepter Technologies Inc. I am really glad to > introduce my list of available consultants for your various Corp-Corp > projects. > > Please add *pe...@scepter-tech.com* to your distribution > list & share your Corp-Corp open positions on daily basis. > > > > *Name* > > *Title/Position* > > *Relocation* > > Suresh > > AWS Engineer > > OPEN > > Sanyo > > DevOps > > OPEN > > Shasidhar > > SAP BO > > OPEN > > Sudheer > > ETL Developer > > OPEN > > Shylesh > > ETL Developer > > OPEN > > Sai Eaga > > .NET Developer > > OPEN > > Pawan > > JAVA Developer > > East Coast > > Deepthi > > Application Packager > > OPEN > > Bala Abilash > > SCCM Packaging > > OPEN > > Anoop > > VMWare > > OPEN > > Dheeraj > > DevOps > > OPEN > > Sai > > Citrix Engineer > > OPEN > > Avinash > > Network Engineer > > OPEN > > Dileep > > SCCM Packaging > > OPEN > > Swathi > > UI Developer > > DC/VA/MD > > Ramkumar > > Application Packaging > > OPEN > > Mani > > Application Packaging > > OPEN > > Chandraleela > > JAVA Developer > > OPEN > > Leela > > Application Packaging > > OPEN > > Sai Sudha > > Salesforce Developer > > OPEN > > Hari > > Application Packaging > > OPEN > > Vamsi > > Salesforce Developer > > OPEN > > Siddardha > > Salesforce Developer > > OPEN > > Sumana > > JAVA/UI Developer > > OPEN > > Apurva > > DW/BI > > OPEN > > Vikas > > UI Developer > > OPEN > > Dominic > > Application Packaging > > CA > > Avinash > > Servicenow > > OPEN > > Kavya > > UI Developer > > OPEN > > > > *Regards,* > > *Peter* > > ** > > pe...@scepter-tech.com > > *Scepter Technologies, Inc.* > > 9256 Bendix Road, Suite 104 > > Columbia, MD 21045 > > www.scepter-tech.com > > CONFIDENTIALITY NOTICE: The information in this email may be confidential > and/or privileged. This email is intended to be reviewed by only the > individual or organization named above. If you are not the intended > recipient or an authorized representative of the intended recipient, you > are hereby notified that any review, dissemination or copying of this email > and its attachments, if any, or the information contained herein is > prohibited. If you have received this email in error, please immediately > notify the sender by return email and delete this email from your system. > -- 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. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/48f34819-77c0-46a9-a0a6-5109b3ecd154%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: List of Available consultants for new projects..
- *Posts about job openings or from recruiters are considered spam.* This list gets too many, and it drowns out the actual conversations. Making these types of posts will get your account banned without warning. On Friday, March 18, 2016 at 12:48:21 AM UTC+11, sam isolvers wrote: > > Hello Partner, > > Please find below of my consultants available for new projects. > > Please share the requirements to s...@isolvers.com if you > come up across any matched positions. > > I Look forward to work with you. > > S No > > Name > > Technology > > Experience > > Current Location > > Relocation > > 1 > > Usha > > QA > > 7+ > > WA > > Open > > 2 > > Rakul > > Sr Java UI > > 10+ > > MO > > Open > > 3 > > Pradeep > > IOS > > 7+ > > MO > > Open > > 4 > > Prathyusha > > .Net > > 7+ > > WA > > Open > > 5 > > Harsha > > Oracle DBA > > 10+ > > FL > > Open > > 6 > > Janani > > SQL BI > > 7+ > > NY > > Open > > 7 > > Bharagav > > Java > > 6+ > > IL > > Open > > 8 > > Swetha > > Java > > 6+ > > MD > > DC,MD,VA > > 9 > > Aditya > > Java > > 7+ > > FL > > Open > > 10 > > Amulya > > OBIEE > > 8+ > > CA > > Only Bay Area > > 11 > > Harsha > > CQ5 > > 7+ > > NJ > > Open > > 12 > > Nishitha > > Pega > > 6+ > > CT > > OPEN > > 13 > > Ravi > > QA Lead > > 14+ > > UT > > Open > > 14 > > Shilpitha > ... -- 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. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/b9667917-76dc-4207-bfc1-c12ebcaff859%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: list of available consultants for new projects....
- *Posts about job openings or from recruiters are considered spam.* This list gets too many, and it drowns out the actual conversations. Making these types of posts will get your account banned without warning. On Friday, March 18, 2016 at 12:48:21 AM UTC+11, sam isolvers wrote: > > Hello Partner, > > Please find below of my consultants available for new projects. > > Please share the requirements to s...@isolvers.com if you > come up across any matched positions. > > I Look forward to work with you. > > S No > > Name > > Technology > > Experience > > Current Location > > Relocation > > 1 > > Usha > > QA > > 7+ > > WA > > Open > > 2 > > Rakul > > Sr Java UI > > 10+ > > MO > > Open > > 3 > > Pradeep > > IOS > > 7+ > > MO > > Open > > 4 > > Prathyusha > > .Net > > 7+ > > WA > > Open > > 5 > > Harsha > > Oracle DBA > > 10+ > > FL > > Open > > 6 > > Janani > > SQL BI > > 7+ > > NY > > Open > > 7 > > Bharagav > > Java > > 6+ > > IL > > Open > > 8 > > Swetha > > Java > > 6+ > > MD > > DC,MD,VA > > 9 > > Aditya > > Java > > 7+ > > FL > > Open > > 10 > > Amulya > > OBIEE > > 8+ > > CA > > Only Bay Area > > 11 > > Harsha > > CQ5 > > 7+ > > NJ > > Open > > 12 > > Nishitha > > Pega > > 6+ > > CT > > OPEN > > 13 > > Ravi > > QA Lead > > 14+ > > UT > > Open > > 14 > > Shilpitha > ... -- 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. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1e987f68-1c00-4b5d-9cdd-4583abc5269d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: list adapter for complex dynamic layouts
Hi , OrderDate :Today Order1 Item 1 Item2 Order 2 Item1 OrderDate : Yesterday order 1 Item1 OrderDate : SomeDay Order 1 order 2 Order 3 Explanation: Many orders with their order numbers. Single day can have multile orders. Each order can have many items. If the order date is same day , Order Date is displayed only once. Please let me know Adapter class implementations. Thanks and regards, Nagaraj On Wednesday, April 30, 2008 4:18:42 AM UTC+9, kingkung wrote: I want to display an array of layouts... each layout has anywhere from 1-3 textviews, depending on how much content is filled in. So the display would basically look like this: 1) textview A textview B textview C --- 2) textview A textview B -- . . . -- n) textview A textview C Is there a simple way to do this through a listAdapter, like ArrayAdapter, etc.? The way I see it, an ArrayAdapter is only able to fill in ALL of the textview A's first, and then all of the textview B's, and then all of the textview C's. But there are clearly some entries which don't have all three text views, and hence the array would leave an empty space for that entry. I'm not positive how to make it so it does the above. Hope this question makes sense... any tips would be helpful, thanks! James -- 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: List of views to change in layout
You can do like this , 1. Use the list view instead of FrameLayout 2. add one list item as Framelayout. 3. Change data set and notify the list adapter On Friday, 17 August 2012 13:50:28 UTC-7, Budd wrote: Hi, I got a question about how to change to view dymaically. I have a empty FrameLayout in my activity. I want to do is every 10 seconds 1) Remove all the view in the layout 2) create new videoview or webview (depend on what kind of content in the array) 3) Add it to the layout Any suggestion how i should do it to avoid memory leak or etc? Thank you. -- 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: List View View Replicated when scrolling down and movie the stroller towards to up.
Try to take a look here. https://groups.google.com/forum/?fromgroups#!starred/android-developers/NZ_pCPs0evM%5B1-25%5D HTH Sergio Il giorno lunedì 13 agosto 2012 15:47:23 UTC+2, Gourab Singha ha scritto: List View View Replicated when scrolling down and movie the stroller towards to up. How i Solve this -- 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: List of Available Wifi Devices
Thankyou so much . Yeah i got it very clearly On Sat, Aug 11, 2012 at 3:08 AM, bob b...@coolfone.comze.com wrote: startScan () returns immediately. The availability of the results is made known later by means of an asynchronous event sent on completion of the scan. So, you either need to wait 10 seconds or so after startScan or wait till you get the event that the scan has completed. IOW, you are calling wifi.getScanResults() before it has time to find anything. On Friday, August 10, 2012 3:53:39 AM UTC-5, Meena Rengarajan wrote: Here , i wanna display list of Available Wifi devices .. This is my code please anyone help me , i do not understand what mistake is here ? Please anybody help me here , i wanna display list of Available Wifi devices, i am very new to this Technology .. wifi = (WifiManager) getSystemService(Context.WIFI_**SERVICE); if (wifi.isWifiEnabled() == false) { Toast.makeText(**getApplicationContext(), wifi is disabled..making it enabled, Toast.LENGTH_LONG).show(); wifi.setWifiEnabled(true); } String[] str1 = null; ArrayAdapterStringadapter=**new ArrayAdapterString(this,** android.R.layout.simple_list_**item_1,android.R.id.text1,**str1); lv.setAdapter(adapter); //lv.setAdapter(this.adapter)**; WifiInfo info = wifi.getConnectionInfo(); textStatus.append(\n\nWiFi Status: + info.toString()); // wifiConfig=new WifiConfiguration(); // wifiConfig.status=**WifiConfiguration.Status.**ENABLED; boolean b=wifi.isWifiEnabled(); if(b){ wifi.setWifiEnabled(false); Toast.makeText(**getApplicationContext(), Yes, Toast.LENGTH_SHORT).show(); } else{ wifi.setWifiEnabled(true); Toast.makeText(**getApplicationContext(), No, Toast.LENGTH_SHORT).show(); } wifi.startScan(); ListScanResult results = wifi.getScanResults(); for (ScanResult result : results) { Toast.makeText(this, result.SSID + + result.level,Toast.LENGTH_**SHORT).show(); ListWifiConfiguration configs = wifi.getConfiguredNetworks(); for (WifiConfiguration config : configs) { textStatus.append(\n\n + config.toString()); } if (receiver == null) //receiver= new WiFiScanReceiver(this); registerReceiver(receiver, new IntentFilter( WifiManager.SCAN_RESULTS_**AVAILABLE_ACTION)); Log.d(TAG, onCreate()); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: List of Available Wifi Devices
startScan () returns immediately. The availability of the results is made known later by means of an asynchronous event sent on completion of the scan. So, you either need to wait 10 seconds or so after startScan or wait till you get the event that the scan has completed. IOW, you are calling wifi.getScanResults() before it has time to find anything. On Friday, August 10, 2012 3:53:39 AM UTC-5, Meena Rengarajan wrote: Here , i wanna display list of Available Wifi devices .. This is my code please anyone help me , i do not understand what mistake is here ? Please anybody help me here , i wanna display list of Available Wifi devices, i am very new to this Technology .. wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); if (wifi.isWifiEnabled() == false) { Toast.makeText(getApplicationContext(), wifi is disabled..making it enabled, Toast.LENGTH_LONG).show(); wifi.setWifiEnabled(true); } String[] str1 = null; ArrayAdapterStringadapter=new ArrayAdapterString(this,android.R.layout.simple_list_item_1,android.R.id.text1,str1); lv.setAdapter(adapter); //lv.setAdapter(this.adapter); WifiInfo info = wifi.getConnectionInfo(); textStatus.append(\n\nWiFi Status: + info.toString()); // wifiConfig=new WifiConfiguration(); // wifiConfig.status=WifiConfiguration.Status.ENABLED; boolean b=wifi.isWifiEnabled(); if(b){ wifi.setWifiEnabled(false); Toast.makeText(getApplicationContext(), Yes, Toast.LENGTH_SHORT).show(); } else{ wifi.setWifiEnabled(true); Toast.makeText(getApplicationContext(), No, Toast.LENGTH_SHORT).show(); } wifi.startScan(); ListScanResult results = wifi.getScanResults(); for (ScanResult result : results) { Toast.makeText(this, result.SSID + + result.level,Toast.LENGTH_SHORT).show(); ListWifiConfiguration configs = wifi.getConfiguredNetworks(); for (WifiConfiguration config : configs) { textStatus.append(\n\n + config.toString()); } if (receiver == null) //receiver= new WiFiScanReceiver(this); registerReceiver(receiver, new IntentFilter( WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); Log.d(TAG, onCreate()); } } -- 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: List of Phone/Manufacturer/OS specific issues with Android.
W dniu środa, 25 lipca 2012 23:22:41 UTC+2 użytkownik Matt Terry napisał: While 16:9 is a common aspect ratio for TVs, displays, and monitors...it's not a common ratio, or dimensions, for Android's screen qualifiers... Yes it is. All high end motorola phones has 16:9 ratio (854x480 - Droid line, qHD Atrix an RAZR line), almost all high end Sony Xperia phones (X10, Play, Arc, Arc S, and Xperia NXT line) has aspect 16:9 (854x480). All new hide and medium range phones tends to have 1280x720 or qHD resolution. This phone isn't quite an xlarge screen, but it's bigger than most large screens. The ratio isn't off enough to be considered a long screen, either. Physical resolution doesn't defined size class, logical (or density independent) resolution does, so saying that qHD screen isn't quite xlarge is meaningless, and what's more important 16:9 is of course long screen (its longer than common 800x480 with 16:10 aspect) -- Bart -- 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: List of Phone/Manufacturer/OS specific issues with Android.
Device: HTC Inredible S with 2.3, and maybe others. Issue: SQLite databases are opened in WAL mode. Impact: If the process is killed while the database is still open, the WAL file is not deleted, and next time is appended to (rather than truncated). This causes the file to grow larger and larger taking up more and more internal storage space. Now, before Mark Murphy hits me on the head with a shovel for not closing my databases -- this affects all databases, e.g. those used by WebView (for cache index and history) that an app has no control over. Workaround: Check the logging mode, set it to truncate if the current mode is found to be WAL. Check the existence of WebView-managed databases, if found, open and close to truncate the WAL. Do it in Application{subclaass}.onCreate. Fixed in the 4.* update on the Incredible S, but may affect other devices. It's probably a tempting performance tweak for manufacturers. -- K -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* Samsung Infuse on ATT does not clear preferences when the phone is uninstalled, or when the user clicks clear data in the application settings menu. *Impact:* You will want to be careful making updates to your application if you are using SharedPreferences to store data. If you change a preference (from an int, to a String, for example), you will not be able to access that preference anymore, and you application will crash when it does try to access it. *Workaround:* The best way to work around this is to always create a _new_ preference, instead of changing an existing preference. This will ensure that you are not trying to access dirty data when you release an updated application. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* LG phones have an extremely aggressive PowerManager that puts the phone into a deep sleep. *Impact:* You may notice that the notification pane doesn't get populated on some of your users' phones. Well, the PowerManager can be so aggressive on some of the LG phones (most notably, the LG Revolution) that the handoff from the AlarmManager, to your application, and finally to the NotificationManager, gets interrupted. The phone will fall back asleep - even if you are using RTC_WAKEUP with your AlarmManager pending intents. *Workaround:* There are many good posts about how to use WakeLocks (WakefulService by Commonsware is a great start), but the most important thing to make certain you are doing, is to populate your AlarmManager's pending intent with a BroadcastReceiver, instead of a Service or any other Activity. BroadcastReceivers are significantly less work for Android to spin up, and gives your application a fighting chance to acquire a WakeLock and start running like normal. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* Samsung Sidekick does not properly implement the ACTION_SEND intent for text messaging. *Impact:* Your users will likely not be able to send/share anything via MMS/SMS from your application. *Workaround:* Unknown at this time. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* HTC Sense phones do not properly implement the ACTION_SEND intent. *Impact:* If you don't take this into consideration, your users will likely not be able to share anything via MMS/SMS from your application. *Workaround:* Anytime you plan on using the ACTION_SEND intent, be certain that you also populate the chooser with the HTC_ACTION_SEND as well. This is really easy to do, simply use the below code snippet to handle it. final Intent chooser = Intent.createChooser(messageIntent, pickerTitle); chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] { htcMessageIntent }); -- 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: List of Phone/Manufacturer/OS specific issues with Android.
Thanks for clarifying, Mark! I agree that it's not specific to the device; however, it is definitely more frequent (as you point out) due to the device. My goal here is to help others find out what their problem might be, by sharing what I've learned in my experience. And this is something that I learned explicitly due to this device, and did not learn from using/testing with any of the other 12 devices that I've been using/testing with. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
On Wed, Jul 25, 2012 at 1:56 PM, Matt Terry macte...@gmail.com wrote: There are many good posts about how to use WakeLocks (WakefulService by Commonsware is a great start), but the most important thing to make certain you are doing, is to populate your AlarmManager's pending intent with a BroadcastReceiver, instead of a Service or any other Activity. BroadcastReceivers are significantly less work for Android to spin up, and gives your application a fighting chance to acquire a WakeLock and start running like normal. This is not specific to this device. Attempting to use a _WAKEUP alarm with anything *other* than a BroadcastReceiver is not guaranteed to work. That's why the WakefulIntentService has you use a BroadcastReceiver as an intermediary. If the Notification that you are trying to display can be populated without any I/O on your part, just raise the Notification from onReceive() and hope the OS does its own WakeLock for dispatching the Notification. If the Notification does require I/O (e.g., database query), use WakefulIntentService or something along those lines to maintain a WakeLock long enough for you to do your work. It's entirely possible that this device has things tuned that the problem occurs more frequently than on other devices, of course. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* Carrier specific builds (MotoBlur for Verizon, for example) do not have support for multiple locales. The en_US locale is the default locale, and certain settings are not supported in other locales. For example, the decimal separator does not switch to a , from a . when switching to a locale like de_DE where the comma is the default decimal separator. *Impact:* Very low impact, but it may cause confusion. *Workaround:* No good workaround at this time. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* The Motorola Droid X2 has an odd screen resolution. It does not fit in well with the default screen characteristics defined by Android. The resolution is 960 x 540, which gives you a 5.3:3 aspect ratio. *Impact:* If you have pixel perfect UIs, you will struggle with making it look good on the Droid X2. This phone isn't quite an xlarge screen, but it's bigger than most large screens. The ratio isn't off enough to be considered a long screen, either. *Workaround:* Be sure to use flexible layouts. Consider defining a window background on your UIs such that any extra screen that is displayed at the bottom/top of your pixel-perfect UI is intentional, and not just the theme's default. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* Samsung Galaxy Spica (and variants): The GPS Location Manager does not respond to the standard listener registration *Impact:* Your app will be unable to acquire a GPS fix on these devices when you use the standard recommended code.. *Workaround:* Use an alternative way to register the location listener. mLocationListener = this; new Thread() { @Override public void run() { Looper.prepare(); locationThreadLooper = Looper.myLooper(); lm.addGpsStatusListener(onGpsStatusChange); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mLocationListener, locationThreadLooper); Looper.loop(); } }.start(); -- 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: List of Phone/Manufacturer/OS specific issues with Android.
960x540 is 16::9 and is quite common - from my very limited notes: - Motorola Droid X - Motorola Droid X2 - HTC One S - HTC Sensation - Samsung Galaxy S III - Samsung Google Galaxy Nexus All 16::9, there are more but I don't have notes on them On Wednesday, July 25, 2012 7:25:22 PM UTC+1, Matt Terry wrote: *Issue:* The Motorola Droid X2 has an odd screen resolution. It does not fit in well with the default screen characteristics defined by Android. The resolution is 960 x 540, which gives you a 5.3:3 aspect ratio. *Impact:* If you have pixel perfect UIs, you will struggle with making it look good on the Droid X2. This phone isn't quite an xlarge screen, but it's bigger than most large screens. The ratio isn't off enough to be considered a long screen, either. *Workaround:* Be sure to use flexible layouts. Consider defining a window background on your UIs such that any extra screen that is displayed at the bottom/top of your pixel-perfect UI is intentional, and not just the theme's default. -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* HTC Sense UI overrode the android.R.layout.simple_list_item_1 view. Specifically, the layout_height is no longer wrap_content. *Impact:* If you rely on the simple_list_item_1 view for any of your adapters, any items that span the text/images/etc. onto multiple lines will get cut off. Sometimes, it looks like you simply don't have anything displaying, so it creates confusion for your users. *Workaround:* Create a simple TextView and name it something similar like list_item. The attributes of the default android.R.layout.simple_list_item_1 are as follows... TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/text1 android:layout_width=match_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceLarge android:gravity=center_vertical android:paddingLeft=6dip / -- 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: List of Phone/Manufacturer/OS specific issues with Android.
A Wiki seems like a better place than a mailing list for this, no? Larry On Wed, Jul 25, 2012 at 3:14 PM, Matt Terry macte...@gmail.com wrote: Issue: HTC Sense UI overrode the android.R.layout.simple_list_item_1 view. Specifically, the layout_height is no longer wrap_content. Impact: If you rely on the simple_list_item_1 view for any of your adapters, any items that span the text/images/etc. onto multiple lines will get cut off. Sometimes, it looks like you simply don't have anything displaying, so it creates confusion for your users. Workaround: Create a simple TextView and name it something similar like list_item. The attributes of the default android.R.layout.simple_list_item_1 are as follows... TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/text1 android:layout_width=match_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceLarge android:gravity=center_vertical android:paddingLeft=6dip / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: List of Phone/Manufacturer/OS specific issues with Android.
While 16:9 is a common aspect ratio for TVs, displays, and monitors...it's not a common ratio, or dimensions, for Android's screen qualifiers... http://developer.android.com/guide/practices/screens_support.html#qualifiers So the best you can do is create custom layouts for those combinations. A better alternative would be to create layouts/UIs that are responsive and look great anytime; however, sometimes our clients have very prescriptive designs that they would like to see implemented, regardless of impact on multiple devices. With your additions of devices, and clarification on the ratio, it makes it even more of an issue because pixel-perfect UI's will work less and less, especially since the S3 and Galaxy Nexus are such popular phones! On Wednesday, July 25, 2012 5:12:24 PM UTC-4, RichardC wrote: 960x540 is 16::9 and is quite common - from my very limited notes: - Motorola Droid X - Motorola Droid X2 - HTC One S - HTC Sensation - Samsung Galaxy S III - Samsung Google Galaxy Nexus All 16::9, there are more but I don't have notes on 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: List of Phone/Manufacturer/OS specific issues with Android.
I apologize, Larry, I didn't mean to spam your email. If you know of an Android specific (or high density of Android Developers) Wiki, then I would be happy to start a page in there. Thanks! On Wednesday, July 25, 2012 5:18:05 PM UTC-4, Larry Meadors wrote: A Wiki seems like a better place than a mailing list for this, no? Larry -- 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: List of Phone/Manufacturer/OS specific issues with Android.
*Issue:* Parrot Asteroid: Android version is crippled and AudioPlayer cannot play sounds shorter than 1 second *Impact:* You will not be able to use sounds that are shorter than 1 second *Workaround: *Extend your app sounds so they are at least 1 second long -- 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: List of Phone/Manufacturer/OS specific issues with Android.
On Wednesday, July 25, 2012 5:18:05 PM UTC-4, Larry Meadors wrote: A Wiki seems like a better place than a mailing list for this, no? Larry On the contrary, I think this is an ideal place for the information to be published, its really important that people realise that you cannot rely on your apps always working correctly on the huge range of devices out there. It is Android's unfortunate dirty little secret, and the more people realise this, perhaps the more pressure will be brought onto the manufacturers to implement the OS in a consistent way. Duplicating the information in a wiki is a great idea, but since we are discussing specific SDK issues with specific devices IMO it is entirely within the remit of this group to publish such issues as they are found. James -- 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: List in appwidget going blank suddenly, Error in updateMetaData
By looking at the ICS-code, this error suggests you have a nullpointerexception somewhere in your RemoteViewsFactory. Am Samstag, 9. Juli 2011 16:58:24 UTC+2 schrieb Padma: This issue is mainly coming up when the RemoteViewsService is killed automatically by android. And when we change the orientation from portrait to landscape or vice versa, the RemoteViewsService is getting created, the RemoteVIewsFactory is getting instantiated. However the getViewsAt is not getting called. And in the logs, I am seeing the error: Error in updateMetaData: null Could anyone please help me with this issue. On Jul 7, 5:55 pm, Padma jangala.pa...@gmail.com wrote: Hi, I have created an appwidget with a listview on Honeycomb 3.1. I am using the RemoteViewsService and RemoteViewsFactory. However sometimes I see that the listview suddenly becomes empty. The logs dont have anything specific to my application. However I see the following in the logs: E/RemoteViewsAdapter( 873): Error inupdateMetaData: null Did anyone see a similar issue previously? If so, could you please suggest a solution to this. Regards, Padma. -- 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: List in appwidget going blank suddenly
Hi, did you resolve the issue or get help on the cause? I am facing the same problem. Arne Am Freitag, 8. Juli 2011 00:55:42 UTC+2 schrieb Padma: Hi, I have created an appwidget with a listview on Honeycomb 3.1. I am using the RemoteViewsService and RemoteViewsFactory. However sometimes I see that the listview suddenly becomes empty. The logs dont have anything specific to my application. However I see the following in the logs: E/RemoteViewsAdapter( 873): Error in updateMetaData: null Did anyone see a similar issue previously? If so, could you please suggest a solution to this. Regards, Padma. -- 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: List with expandable
there s a class called ExpandableListView used to do what you want, still i think you ll have to use a simple activity and declare it as a part of the layout to be displayed http://developer.android.com/reference/android/widget/ExpandableListView.html Le dimanche 4 mars 2012 17:54:51 UTC+1, Jagadeesh a écrit : Hi i have done with listactvity in my application ,now i need expand when clicks and for each item and again click on expandble list items should be back in same screen. can you please guide me any one about this /// package com.android.samplelisy; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; public class samplelist extends ListActivity { String[] values = new String[] { Application, product, Sabicproduct }; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); // Use your own layout ArrayAdapterString adapter = new ArrayAdapterString(this, R.layout.main, R.id.label, values); setListAdapter(adapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { String item = (String) getListAdapter().getItem(position); switch (position) { case 0: l.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView? av, View v, int pos, long id) { // onListItemClick(v,pos,id); } private void onListItemClick(View v, int pos, long id) { // TODO Auto-generated method stub } }); break; case 1: break; } } } -- 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: List View with Check box multiselection
On 11 Sty, 07:52, Mukesh Srivastav mukicha...@gmail.com wrote: Hi Chander, cut lots of stuff That's it. as i said, i have done this earlier, it requries the whole process. it doesnt. it's as simple as: --- package some.test.package; import android.app.ListActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ListView; public class Test extends ListActivity implements OnItemClickListener { private final static String TAG = Test.class.getSimpleName(); private ListView listView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, GENRES)); listView = getListView(); listView.setItemsCanFocus(false); listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); listView.setOnItemClickListener(this); } private static final String[] GENRES = new String[] { Action, Adventure, Animation, Children, Comedy, }; public void onItemClick(AdapterView? parent, View view, int position, long id) { for (int i = 0; i listView.getCount(); i++) { Log.d(TAG, onItemClick + listView.getItemAtPosition(i) + + listView.isItemChecked(i)); } } } --- pskink -- 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: list actvity is scrolling
Don't use a ListActivity. You only have a small and fixed amount of elements (8). Use a regular Activity with a layout that has a vertical LinearLayout or a TableLayout as the top element. These two don't scroll. -- 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: list actvity is scrolling
The first step to get assitance in this group would be to articulate your questions. Reading your questions for the last some months, I've never understood what exactly you are trying to do. If expressing a coding question in plain English is difficult (and most of the times it is), copy paste the most relevant parts of your code and rewrite your question by referring to the code you pasted. Otherwise, you are trying to get assistance in vain. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 On Dec 4, 5:54 am, jaggu mjagadeeshb...@gmail.com wrote: yes list is scrolling but my list contains image text image like this and even my list content have only 8 elements its shouldnt be scroll even in my layout i haven't given scrollview also is there any procedure can any one suggest me for this -- 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: list actvity is scrolling
Scrolling is an integral feature of list activity. is there a specific reason why your list should not scroll? maybe we can suggest an alternative approach. On Dec 3, 5:03 am, jaggu mjagadeeshb...@gmail.com wrote: Hi i used list actvity in my code but the list is scrolling . in my list shouldnt be scroll can any one tell how -- 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: list actvity is scrolling
yes list is scrolling but my list contains image text image like this and even my list content have only 8 elements its shouldnt be scroll even in my layout i haven't given scrollview also is there any procedure can any one suggest me for this On Sat, Dec 3, 2011 at 9:16 PM, Spiral123 cumis...@gmail.com wrote: Scrolling is an integral feature of list activity. is there a specific reason why your list should not scroll? maybe we can suggest an alternative approach. On Dec 3, 5:03 am, jaggu mjagadeeshb...@gmail.com wrote: Hi i used list actvity in my code but the list is scrolling . in my list shouldnt be scroll can any one tell how -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: List View Focus Problem!
This might be helpful: http://developer.android.com/reference/android/view/View.html#setOnFocusChangeListener%28android.view.View.OnFocusChangeListener%29 You can create one or implement it on your activity and link as many views to it as you want. You should receive an event for focus gained and lost. Steven Studio LFP http://www.studio-lfp.com On Sunday, October 16, 2011 11:27:16 PM UTC-5, abi wrote: Hi, I have a list view and a bottom bar in a layout. I can't focus the bottom bar after focusing the list view. How to find focus lost from list view. At that time I need to focus that bottom bar. Please Suggest... Regards, Abi -- 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: List with seperators, checkboxes...
Ok, thats what I wanted... It works perfect... One last question: When I store/set for example a boolean value to my sharedprefences object checkbox1... Ist this value stored until I deinstall this app? On 12 Okt., 17:44, TreKing treking...@gmail.com wrote: On Wed, Oct 12, 2011 at 10:37 AM, BearTi mlrti...@googlemail.com wrote: Whith which adapter or listview can I do this? That is a PreferenceScreen. - 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: List with seperators, checkboxes...
On Fri, Oct 14, 2011 at 2:39 AM, BearTi mlrti...@googlemail.com wrote: One last question: When I store/set for example a boolean value to my sharedprefences object checkbox1... Ist this value stored until I deinstall this app? Yes. - 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
[android-developers] Re: List with seperators, checkboxes...
Thanks. I found this exmaple: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html What I want is something like this: http://androidpartaker.files.wordpress.com/2010/07/android_preferences_1.jpg Whith which adapter or listview can I do this? On 11 Okt., 17:22, Studio LFP studio@gmail.com wrote: Your description is a bit vague, but maybe check out the ExpandableListView here: http://developer.android.com/reference/android/widget/ExpandableListV... It's a ListView with expandable sections. To get checkboxes, you'll need to create a layout or extend a view to make it like you want. Steven Studio LFPhttp://www.studio-lfp.com On Tuesday, October 11, 2011 4:03:09 AM UTC-5, BearTi wrote: Hi, I´ve problems to built a list for my app. This list should have seperators, drop down menus and checkboxes. I´ve read many tutorials, but I can´t find a good one that solves my problem. (for expample which adapter I have to choose and so on) Do you have a good axample for my or some tipps? 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: List with seperators, checkboxes...
On Wed, Oct 12, 2011 at 10:37 AM, BearTi mlrti...@googlemail.com wrote: Whith which adapter or listview can I do this? That is a PreferenceScreen. - 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
[android-developers] Re: List with seperators, checkboxes...
Ah, okay... :) Thanks! On 12 Okt., 17:44, TreKing treking...@gmail.com wrote: On Wed, Oct 12, 2011 at 10:37 AM, BearTi mlrti...@googlemail.com wrote: Whith which adapter or listview can I do this? That is a PreferenceScreen. - 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
[android-developers] Re: List with seperators, checkboxes...
Your description is a bit vague, but maybe check out the ExpandableListView here: http://developer.android.com/reference/android/widget/ExpandableListView.html It's a ListView with expandable sections. To get checkboxes, you'll need to create a layout or extend a view to make it like you want. Steven Studio LFP http://www.studio-lfp.com On Tuesday, October 11, 2011 4:03:09 AM UTC-5, BearTi wrote: Hi, I´ve problems to built a list for my app. This list should have seperators, drop down menus and checkboxes. I´ve read many tutorials, but I can´t find a good one that solves my problem. (for expample which adapter I have to choose and so on) Do you have a good axample for my or some tipps? 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
[android-developers] Re: List Data
You can merge above two mechanism, you can store the total date in server, but parted significant data store in local using SQLite, you can update dynamically the local list date table from server using some strategy. On 8月25日, 下午5时44分, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Hi I have a 200 different list (each list might have 200 items) size of the each list will be 100 KB that need to be loaded into ListView. But I'll use only one list at a time. I would like to know which is the best mechanism to deal with the data 1. Download the list data every time from server (as a JSON) and load also I can use caching to remember data for some time or 2. Persist in local memory as a file all 200 different lists. Can someone suggests what approach I should take? -- - Prakash. -- 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: List Data
You can save parted data in local, if the list you want to load isn't in local, then you can download the list data from server. On Aug 25, 5:44 pm, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Hi I have a 200 different list (each list might have 200 items) size of the each list will be 100 KB that need to be loaded into ListView. But I'll use only one list at a time. I would like to know which is the best mechanism to deal with the data 1. Download the list data every time from server (as a JSON) and load also I can use caching to remember data for some time or 2. Persist in local memory as a file all 200 different lists. Can someone suggests what approach I should take? -- - Prakash. -- 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: List Data
this depends entirely on your user expectations. Are they willing to wait while the list is fetched? Can you predict which list they will look at first, next etc? (In that case you could do prefetching) Are these users on a mobile data plan? How often does the data change on the server? -- 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: List View based on Database Cursor Not Showing Full Screen and Scrolling
I thought maybe a picture of what is happening may help. As you can see on the attached image the second entry on the list is only showing the first line. I masked out the lat long and address information on the first entry I have been looking every where to find a solution and cannot. Someone out there has to have some ideas. :-) 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=enattachment: listview_display_problem.JPG
[android-developers] Re: List View based on Database Cursor Not Showing Full Screen and Scrolling
OK, I figured out what is causing the problem but I cannot figure out what the solution is. My problem is being caused by the ScrollView tag in the layout that creates the Tabs. Since ListViews already have scrolling it is messing things up. Once I remove the ScrollView tag from the tab layout the ListView scrolls like normal, however, now the other three tabs do not have scrolling. I tried putting ScrollView in the layouts I use for those tabs but I get an error that forces me to close the app. Anyone know how can I control the scrolling separately for each tab? 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
[android-developers] Re: List View based on Database Cursor Not Showing Full Screen and Scrolling
OK, as usually after I post I end up finding the answer myself. :-) This nugget got me close Your vertical scroll view can only have one child, which means you need to envelop your gallery view and the linear view chart with another linerLayout which then should be enveloped with a scrollView. For me that translated into doing the following in each of the NON ListView tab layouts ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center_horizontal android:padding=1px ScrollView android:id=@+id/ScrollViewAppInfo android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=left android:padding=1px TextView android:id=@+id/AppInfoDisplay android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=center_horizontal android:text=App Info / /LinearLayout /ScrollView /LinearLayout -- 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: List out all the available widget ui components name dynamically.
Look at this thread. http://stackoverflow.com/questions/1456930/read-all-classes-from-java-package-in-classpath On Aug 3, 2:32 pm, kums kums1...@gmail.com wrote: Hi All, I want to display, what are the available components in a list view dynamically from the package android.widget for android device. That means i want to list out all the class names available in android.widget package at runtime. Is there any API available to read all the android.widget at run time? Otherwise how can i achieve this? Please help me on this. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: List View and Simple Cursor Adapter
The getView() is called everytime the listview is populating data, what is meant by this, getView() is called everytime when there is need views to be recycled. Let's say if you have 20 elements in your listview, the maximum items visible is 8, the first time you view the listview, getView() is called 8 times, if you scroll down by x items, then the getView() will be called x more times. It is normal seeing getView() called multiple times. On Jul 16, 9:57 am, juliagrig iouliag...@gmail.com wrote: Hi all, I have a listview in my app and a SimpleCursor Adapter in a different class. In getView method I tried to set properties fom the text view of each list item. It works fine, but I have a log.i(,) message in the end of the getView() method and I see that this method run 3 times. So , I see in the logat 07-16 07:48:58.401: INFO/(341): GetView done 07-16 07:48:58.421: INFO/(341): GetView done 07-16 07:48:58.541: INFO/(341): GetView done Why is this happening? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: List View and Simple Cursor Adapter
Ok Thanks for the explanation, but when I start the app , for example I have 1 list item,(with 2 textviews, a button and an imageview in the list_item.xml) I see that the getView() is called 3 times. ...? Thank you! -- 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: List View and Simple Cursor Adapter
It's called as many times as ListView sees fit. FWIW, I've also seen getView called more times than the number of visible list items (about 2X the number). Don't worry about it - just make sure your getView does the right thing, based on the item's position. Also don't assume a one to one mapping between items and their views. Specifically, don't try to create some kind of secondary data structure back-mapping the items to their respective views. -- Kostya 16.07.2011 22:29, ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ пишет: Ok Thanks for the explanation, but when I start the app , for example I have 1 list item,(with 2 textviews, a button and an imageview in the list_item.xml) I see that the getView() is called 3 times. ...? Thank you! -- 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 -- Kostya Vasilyev -- 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: List with checkboxes problem
Hello, you need to add android:focusable=false to your CheckBox. Regards, Rno -- 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: List in appwidget going blank suddenly, Error in updateMetaData
This issue is mainly coming up when the RemoteViewsService is killed automatically by android. And when we change the orientation from portrait to landscape or vice versa, the RemoteViewsService is getting created, the RemoteVIewsFactory is getting instantiated. However the getViewsAt is not getting called. And in the logs, I am seeing the error: Error in updateMetaData: null Could anyone please help me with this issue. On Jul 7, 5:55 pm, Padma jangala.pa...@gmail.com wrote: Hi, I have created an appwidget with a listview on Honeycomb 3.1. I am using the RemoteViewsService and RemoteViewsFactory. However sometimes I see that the listview suddenly becomes empty. The logs dont have anything specific to my application. However I see the following in the logs: E/RemoteViewsAdapter( 873): Error inupdateMetaData: null Did anyone see a similar issue previously? If so, could you please suggest a solution to this. Regards, Padma. -- 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: list view with alpha transparency effect
Hello, Try: setBackgroundColor(Color.argb(125, 0, 0, 255)); the 1st set of digits (125) is the translucency. Hope this helps, Fred On 18/06/2011, Greg Donald gdon...@gmail.com wrote: On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald gdon...@gmail.com wrote: I have a list view using a layout that has a background color of #8000. When I scroll the list, the list item background color change to a solid color, in this case black. Seems it's ignoring the alpha transparency value on scroll. Is there a way to make it not do that? Tried this in getView() in my list adapter: RelativeLayout outer = (RelativeLayout) findViewById( R.id.outer ); int color = Color.argb( 80, 0, 0, 0 ); outer.setBackgroundColor( color ); Still turns black on scroll :( -- Greg Donald destiney.com | gregdonald.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 -- 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: list view with alpha transparency effect
On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald gdon...@gmail.com wrote: I have a list view using a layout that has a background color of #8000. When I scroll the list, the list item background color change to a solid color, in this case black. Seems it's ignoring the alpha transparency value on scroll. Is there a way to make it not do that? Tried this in getView() in my list adapter: RelativeLayout outer = (RelativeLayout) findViewById( R.id.outer ); int color = Color.argb( 80, 0, 0, 0 ); outer.setBackgroundColor( color ); Still turns black on scroll :( -- Greg Donald destiney.com | gregdonald.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
[android-developers] Re: List issues with Android devices here
All HTC, as far as I can tell - do not implement UDP multi-cast properly. Join command does not get issued. (edited 2/14/11 to remove Dell Streak 7 sending configuration changes to an app that does not support those changes, when the Streak goes to sleep. Apparently, this is normal Android operation.) -- 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: List issues with Android devices here
All HTC, as far as I can tell - do not implement UDP multi-cast properly. Join command does not get issued. Dell Steak 7 - When the device goes to sleep, orientation is forced to landscape even when your activity is set to only portrait mode. This causes your app to get the onDestroy() and onCreate() that result from the change configuration. Overriding the onConfigurationChanged() method does not work in this case. -- 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: List adapter listview
The SQLite query has a sort field. That's the way to go. On Jan 11, 7:01 pm, fourhend...@gmail.com fourhend...@gmail.com wrote: Is it possible to order the results of a listadapter from a database? Or do I need to change the sql query to somehow sort 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
Re: [android-developers] Re: List adapter listview
Ok On Jan 11, 2011 8:02 PM, Bret Foreman bret.fore...@gmail.com wrote: The SQLite query has a sort field. That's the way to go. On Jan 11, 7:01 pm, fourhend...@gmail.com fourhend...@gmail.com wrote: Is it possible to order the results of a listadapter from a database? Or do I need to change the sql query to somehow sort 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.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
[android-developers] Re: List - row not hi-lighting
Use a ColorStateList as your background. This is what the default implementation does as I recall. You could hunt around and find the state list for ListView and use that for a starting point. http://developer.android.com/guide/topics/resources/color-list-resource.html or more generally a StateListDrawable http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList On Dec 28, 3:48 pm, dashman erjdri...@gmail.com wrote: I've got an ExpandableListActivity. If I change the background color of a row programatically - when the user selects the row - it's not hi-lighted - i.e. no visual feedback. if i don't set the background color - the default yellow hi-light appears. how can i fix this. -- 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: List - row not hi-lighting
StateListDrawable is the Android way to do it, but if you really want to set it programmatically, you'll need to call invalidate() on the view to force it to refresh. Jonathan On Dec 28, 4:19 pm, jotobjects jotobje...@gmail.com wrote: Use a ColorStateList as your background. This is what the default implementation does as I recall. You could hunt around and find the state list for ListView and use that for a starting point. http://developer.android.com/guide/topics/resources/color-list-resour... or more generally a StateListDrawable http://developer.android.com/guide/topics/resources/drawable-resource... On Dec 28, 3:48 pm, dashman erjdri...@gmail.com wrote: I've got an ExpandableListActivity. If I change the background color of a row programatically - when the user selects the row - it's not hi-lighted - i.e. no visual feedback. if i don't set the background color - the default yellow hi-light appears. how can i fix this. -- 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: List of phone names?
Comprehensive: http://en.wikipedia.org/wiki/List_of_Android_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
[android-developers] Re: List of phone names?
This may be what you are looking for: http://www.google.com/phone/#manufacturer=allcategory=allcarrier=allcountry=usreset_filters=1 Or this if that gets mangled: http://tinyurl.com/2evgcrr On Dec 17, 9:24 am, BobG bobgard...@aol.com wrote: Anyone ever seen a list of the HTC phone name followed by the Tmobile, Sprint, Verizon and ??? name? That and the screen res of each one would be Real Useful. -- 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: List of all Android Phones: Found !
I just found this:http://www.google.com/phone/#manufacturer=allcategory=allcarrier=al... Good find, but from a developer point of view the missing model numbers are a deal breaker since I can't differentiate between them in code otherwise. Pent -- 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: List of task killers
On Oct 7, 5:37 pm, Dianne Hackborn hack...@android.com wrote: On Thu, Oct 7, 2010 at 11:15 AM, Nathan critter...@crittermap.com wrote: I'm straying a bit, but what problems do you generally get from task killers? These answers apply to pre-2.2; as of 2.2 task killers can't do anything destructive. Will they close a program when not visible? This is the one I've seen. Yes, but the platform will do that as well. (And this is the only thing that task killers can do as of 2.2) The platform will do this, yes, but if I'm not mistaken it has a hierarchy to follow. Let's say your activity starts a service. It's a well behaved service that places a foreground notification. A user leaves the activity to check the notification. The activity is paused and *boom*, the task killer kills the process because the activity is not visible. The notification will never be updated because the service is dead. This is what I believe a task killer will do. Can they do this in 2.2? Nathan -- 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: List of task killers
On Mon, Oct 11, 2010 at 3:35 PM, Nathan critter...@crittermap.com wrote: Will they close a program when not visible? This is the one I've seen. Yes, but the platform will do that as well. (And this is the only thing that task killers can do as of 2.2) The platform will do this, yes, but if I'm not mistaken it has a hierarchy to follow. Sure. Let's say your activity starts a service. It's a well behaved service that places a foreground notification. A user leaves the activity to check the notification. The activity is paused and *boom*, the task killer kills the process because the activity is not visible. The notification will never be updated because the service is dead. (a) If you are talking about a notification done with startForeground(), then this tells the system the process is important to the user, so it will try hard to kill it and will not let others kill it. (b) Otherwise, this is a service running in the background, and it is not a problem to kill it if memory is extremely tight. Thus the system could kill it as soon as you leave the app, and likewise task killers are allowed to kill it as soon as it is such a candidate. -- 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
[android-developers] Re: List of task killers
I'm straying a bit, but what problems do you generally get from task killers? I only know of one confirmed problem with a taskkiller, but based on their destructive nature, I suspect there are a lot more. Will they close a program when not visible? This is the one I've seen. The home screen button behaving. Will they kill a service before it's done, leaving an orphaned progress notification, saying 0% forever? Will they corrupt SQLiteDatabase files in the process of killing things? Will they kill a BroadcastReceiver before it is done? What's been the usual signs? Thanks, Nathan -- 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: List of task killers
On 7 October 2010 20:15, Nathan critter...@crittermap.com wrote: I'm straying a bit, but what problems do you generally get from task killers? The major proble is most people does not need any as they got no bloody idea about android application lifecycle. They believe all tasks they got listed are running tasks. Majority of users do not know what they do by installing task killer and what are the options they configure if they do. They blindly follow silly belief task killes (pardon, The Task Killers) are remedy to any problems apps or OS or whatever may have. They auto-kill services and can probably do other problematic things. What's been the usual signs? If your user reports something odd, you may try the blind shot: tried disabling your task killer yet? -- 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: List of task killers
Unfortunately, poor application implementation by some developers has made Task Killers a necessity. I would hazard that between 10-20% of the apps that I have downloaded contiue to consume CPU cycles in the background for hours after I have stopped using the app. There are a bunch of apps on my phone (some of them embedded in the system by a carrier) that needs to be smacked on a regular basis. Ones installed by my don't stay resident for very long - uninstalled. BUt I hate getting my battery drained by an app that I though I had stopped hours before. On Oct 8, 7:10 am, { Devdroid } webnet.andr...@gmail.com wrote: On 7 October 2010 20:15, Nathan critter...@crittermap.com wrote: I'm straying a bit, but what problems do you generally get from task killers? The major proble is most people does not need any as they got no bloody idea about android application lifecycle. They believe all tasks they got listed are running tasks. Majority of users do not know what they do by installing task killer and what are the options they configure if they do. They blindly follow silly belief task killes (pardon, The Task Killers) are remedy to any problems apps or OS or whatever may have. They auto-kill services and can probably do other problematic things. What's been the usual signs? If your user reports something odd, you may try the blind shot: tried disabling your task killer yet? -- 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: List of task killers
On Oct 7, 2:10 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 7 October 2010 20:15, Nathan critter...@crittermap.com wrote: I'm straying a bit, but what problems do you generally get from task killers? The major proble is most people does not need any as they got no bloody idea about android application lifecycle. They believe all tasks they got listed are running tasks. Majority of users do not know what they do by installing task killer and what are the options they configure if they do. They blindly follow silly belief task killes (pardon, The Task Killers) are remedy to any problems apps or OS or whatever may have. They auto-kill services and can probably do other problematic things. What's been the usual signs? If your user reports something odd, you may try the blind shot: tried disabling your task killer yet? Makes sense. I'll send out a general newsletter with a provocative title like Tasks Killers are Evil. And add messages like the one Tommy suggested. Nathan -- 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: List of task killers
The biggest problem I've run into is that task killers wipe any future alarms you may have set. So a well-behaved app which is not actually running now, but is set to do something in the future (often at the user's behest), will no longer function thanks to the frackin' task killer. But do you think it's the task killer's dev who gets support emails and 1* Market comments? String On Oct 7, 7:15 pm, Nathan critter...@crittermap.com wrote: I'm straying a bit, but what problems do you generally get from task killers? I only know of one confirmed problem with a taskkiller, but based on their destructive nature, I suspect there are a lot more. Will they close a program when not visible? This is the one I've seen. The home screen button behaving. Will they kill a service before it's done, leaving an orphaned progress notification, saying 0% forever? Will they corrupt SQLiteDatabase files in the process of killing things? Will they kill a BroadcastReceiver before it is done? What's been the usual signs? Thanks, Nathan -- 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: List of task killers
On Thu, Oct 7, 2010 at 11:15 AM, Nathan critter...@crittermap.com wrote: I'm straying a bit, but what problems do you generally get from task killers? These answers apply to pre-2.2; as of 2.2 task killers can't do anything destructive. Will they close a program when not visible? This is the one I've seen. Yes, but the platform will do that as well. (And this is the only thing that task killers can do as of 2.2) Will they kill a service before it's done, leaving an orphaned progress notification, saying 0% forever? Yes. Will they corrupt SQLiteDatabase files in the process of killing things? No. Will they kill a BroadcastReceiver before it is done? Yes. They will also: - Remove any notifications you have posted. - Unregister any alarms you have scheduled. - Remove any location manager monitoring you have registered. - Revert to the default wallpaper if you are the current live wallpaper. - Revert to the default IME if you are the current IME. - Stop any sync that you have in progress. And most likely some other things I don't remember right now. -- 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
[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
so sorry for late reply, the one that you post is the old one, james.. and, yeah, the problem is still not solved yet, my only solution is to create new view all the time: public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); convertView.setTag(viewHolder); viewHolder.myView.setText(objects[position]); return convertView; } On Sep 8, 3:20 am, jamesc jame...@gmail.com wrote: Hi Sorry, I think I misunderstand you last post. Which of the two methods is the 'old' one (with the 'random order' problem) and which is the 'new' one (where the problem has gone away)? I would assume that the new/correct version is this one?: public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } viewHolder.myView.setText(objects[position]); // -- THIS IS THE NEW LINE return convertView; } On Sep 8, 4:18 am, rious.delie rious.de...@gmail.com wrote: Okay, great, you are right, james.. there is something wrong on the getView implementation, still not sure why, but my problem is solved by, something like this: @Override publicViewgetView(int position,ViewconvertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } viewHolder.myView.setText(objects[position]); return convertView; } changed to: @Override publicViewgetView(int position,ViewconvertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); viewHolder.myView.setText(objects[position]); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } return convertView; } On Sep 7, 2:03 pm, jamesc jame...@gmail.com wrote: Hi 1) I'm still not sure why you're doing the measuring yourself (as I'd use a layout xml file to declare thelistitem'sView, and then inflate it/set the values in the adapter's getView() call. 2) I'm guessing that since you are using an adapter and theview holder, that there's an issue with how your getView() method is implemented (or perhaps another implementation of an adapter method). That is, as you know theviewholder allows object reuse; that doesn't mean to say that the object that you're re-using has the correct values in it. It's only there to avoid the expensive inflation/ construction; after that point you're expected to set the values in that object (for thelistitem) as per the data in the array/list/ structure that is backing the adapter. On Sep 7, 3:55 am, rious.delie rious.de...@gmail.com wrote: thank you, 1) yes, it is anitemon alistview, i populate some numbers of it on alistview. 2) i need to set the height of theviewon runtime, because the height of theviewis the variable of width (height = f(width)), it is just as simple as the TextView, which can determine how many lines needed to show the text based on a function of display width, each font width, and the text to be displayed. Yes, i have implemented an adapter (an extends of ArrayAdapter) and have used ViewHolder (static class ViewHolder()), my point is, why bitmap1changesorderrandomlywhilebitmap2 stays where it should be, something like this: alistview= view1 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am
[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
Hi Sorry, I think I misunderstand you last post. Which of the two methods is the 'old' one (with the 'random order' problem) and which is the 'new' one (where the problem has gone away)? I would assume that the new/correct version is this one?: public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } viewHolder.myView.setText(objects[position]); // -- THIS IS THE NEW LINE return convertView; } On Sep 8, 4:18 am, rious.delie rious.de...@gmail.com wrote: Okay, great, you are right, james.. there is something wrong on the getView implementation, still not sure why, but my problem is solved by, something like this: @Override publicViewgetView(int position,ViewconvertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } viewHolder.myView.setText(objects[position]); return convertView; } changed to: @Override publicViewgetView(int position,ViewconvertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); viewHolder.myView.setText(objects[position]); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } return convertView; } On Sep 7, 2:03 pm, jamesc jame...@gmail.com wrote: Hi 1) I'm still not sure why you're doing the measuring yourself (as I'd use a layout xml file to declare thelistitem'sView, and then inflate it/set the values in the adapter's getView() call. 2) I'm guessing that since you are using an adapter and theview holder, that there's an issue with how your getView() method is implemented (or perhaps another implementation of an adapter method). That is, as you know theviewholder allows object reuse; that doesn't mean to say that the object that you're re-using has the correct values in it. It's only there to avoid the expensive inflation/ construction; after that point you're expected to set the values in that object (for thelistitem) as per the data in the array/list/ structure that is backing the adapter. On Sep 7, 3:55 am, rious.delie rious.de...@gmail.com wrote: thank you, 1) yes, it is anitemon alistview, i populate some numbers of it on alistview. 2) i need to set the height of theviewon runtime, because the height of theviewis the variable of width (height = f(width)), it is just as simple as the TextView, which can determine how many lines needed to show the text based on a function of display width, each font width, and the text to be displayed. Yes, i have implemented an adapter (an extends of ArrayAdapter) and have used ViewHolder (static class ViewHolder()), my point is, why bitmap1changesorderrandomlywhilebitmap2 stays where it should be, something like this: alistview= view1 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view5 i scroll fastly, then theorderof bitmap1changes: view1 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view5 moreover, theorderrandomchangesappearwhilei scroll
Re: [android-developers] Re: List of Android Devices with specifications to use in Emulator
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/8/10 07:49 , Marcus Wolschon wrote: Thanks. That should be quite useful. There's a more efficient way to gather these data. For instance, look at http://droidparade.noser.com/droidparade/droidparade.html They're collecting the data from people willing to run their diagnostic app. It's a very good approach since there's no manual copy of data and thus no errors, and they're collecting a large number of attributes for each model. You have to click on a model to have the details and data aren't ready to consume as in a spreadsheet, but it would not be difficult to write a small HTML scraper to automatically extract the data. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyHQ98ACgkQeDweFqgUGxcGrQCfYUPgqlrLsusvwPB9mDP2FAII trsAn3AfGHdR7brZ5/o7nRULVGDp5pqd =vbdq -END PGP SIGNATURE- -- 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: List of Android Devices with specifications to use in Emulator
On 8 September 2010 09:05, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: There's a more efficient way to gather these data. For instance, look at http://droidparade.noser.com/droidparade/droidparade.html They're collecting the data from people willing to run their diagnostic app. It's a very good approach since there's no manual copy of data and thus no errors, and they're collecting a large number of attributes for each model. You have to click on a model to have the details and data aren't ready to consume as in a spreadsheet, but it would not be difficult to write a small HTML scraper to automatically extract the data. - -- Fabrizio Giudici - Java Architect, Project Manager =vbdq -END PGP SIGNATURE- -- 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 Very awesome. I had searched for a site like that but I didn't find anything. thanks Andrew -- 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: List of Android Devices with specifications to use in Emulator
That's brillient. Would be great to mine this data by resolution. Ie See all the resoluitons used, and the devices that use them. And even better if there was enough data to get meaningful stats on numbers of each device used. On Sep 8, 6:05 pm, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/8/10 07:49 , Marcus Wolschon wrote: Thanks. That should be quite useful. There's a more efficient way to gather these data. For instance, look athttp://droidparade.noser.com/droidparade/droidparade.html They're collecting the data from people willing to run their diagnostic app. It's a very good approach since there's no manual copy of data and thus no errors, and they're collecting a large number of attributes for each model. You have to click on a model to have the details and data aren't ready to consume as in a spreadsheet, but it would not be difficult to write a small HTML scraper to automatically extract the data. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici -www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkyHQ98ACgkQeDweFqgUGxcGrQCfYUPgqlrLsusvwPB9mDP2FAII trsAn3AfGHdR7brZ5/o7nRULVGDp5pqd =vbdq -END PGP SIGNATURE- -- 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: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
Hi 1) I'm still not sure why you're doing the measuring yourself (as I'd use a layout xml file to declare the list item's View, and then inflate it/set the values in the adapter's getView() call. 2) I'm guessing that since you are using an adapter and the view holder, that there's an issue with how your getView() method is implemented (or perhaps another implementation of an adapter method). That is, as you know the view holder allows object reuse; that doesn't mean to say that the object that you're re-using has the correct values in it. It's only there to avoid the expensive inflation/ construction; after that point you're expected to set the values in that object (for the list item) as per the data in the array/list/ structure that is backing the adapter. On Sep 7, 3:55 am, rious.delie rious.de...@gmail.com wrote: thank you, 1) yes, it is anitemon alistview, i populate some numbers of it on alistview. 2) i need to set the height of theviewon runtime, because the height of theviewis the variable of width (height = f(width)), it is just as simple as the TextView, which can determine how many lines needed to show the text based on a function of display width, each font width, and the text to be displayed. Yes, i have implemented an adapter (an extends of ArrayAdapter) and have used ViewHolder (static class ViewHolder()), my point is, why bitmap1changesorderrandomlywhilebitmap2 stays where it should be, something like this: alistview= view1 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view5 i scroll fastly, then theorderof bitmap1changes: view1 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view5 moreover, theorderrandomchangesappearwhilei scroll thelistview fastly, if i gently scroll it slowly the problem is not occured, it seems that the problem is not on the code, (is it a bug on android platform?) On Sep 6, 2:17 pm, jamesc jame...@gmail.com wrote: OK. I've had a quick look. 1) I take it that yourView(MyView) is theitemin theListView? 2) Why are you doing the measuring (and implementing onDraw())? I would have thought that you should be using a layout to declare the ListViewitemand then backing that with a BaseAdapter implementation (where you should look at using the viewholder pattern to allow re- use of inflated objects. On Sep 6, 5:15 am, rious.delie rious.de...@gmail.com wrote: somebody please... -- 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: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
Okay, great, you are right, james.. there is something wrong on the getView implementation, still not sure why, but my problem is solved by, something like this: @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } viewHolder.myView.setText(objects[position]); return convertView; } changed to: @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item, null); viewHolder = new ViewHolder(); viewHolder.myView = (MyView) convertView.findViewById(R.id.myview); viewHolder.myView.setText(objects[position]); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } return convertView; } On Sep 7, 2:03 pm, jamesc jame...@gmail.com wrote: Hi 1) I'm still not sure why you're doing the measuring yourself (as I'd use a layout xml file to declare the list item's View, and then inflate it/set the values in the adapter's getView() call. 2) I'm guessing that since you are using an adapter and the view holder, that there's an issue with how your getView() method is implemented (or perhaps another implementation of an adapter method). That is, as you know the view holder allows object reuse; that doesn't mean to say that the object that you're re-using has the correct values in it. It's only there to avoid the expensive inflation/ construction; after that point you're expected to set the values in that object (for the list item) as per the data in the array/list/ structure that is backing the adapter. On Sep 7, 3:55 am, rious.delie rious.de...@gmail.com wrote: thank you, 1) yes, it is anitemon alistview, i populate some numbers of it on alistview. 2) i need to set the height of theviewon runtime, because the height of theviewis the variable of width (height = f(width)), it is just as simple as the TextView, which can determine how many lines needed to show the text based on a function of display width, each font width, and the text to be displayed. Yes, i have implemented an adapter (an extends of ArrayAdapter) and have used ViewHolder (static class ViewHolder()), my point is, why bitmap1changesorderrandomlywhilebitmap2 stays where it should be, something like this: alistview= view1 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view5 i scroll fastly, then theorderof bitmap1changes: view1 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view5 moreover, theorderrandomchangesappearwhilei scroll thelistview fastly, if i gently scroll it slowly the problem is not occured, it seems that the problem is not on the code, (is it a bug on android platform?) On Sep 6, 2:17 pm, jamesc jame...@gmail.com wrote: OK. I've had a quick look. 1) I take it that yourView(MyView) is theitemin theListView? 2) Why are you doing the measuring (and implementing onDraw())? I would have thought that you should be using a layout to declare the ListViewitemand then backing that with a BaseAdapter implementation (where you should look at using the viewholder pattern to allow re- use of inflated objects. On Sep 6, 5:15 am, rious.delie rious.de...@gmail.com wrote: somebody please... -- 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
[android-developers] Re: List of Android Devices with specifications to use in Emulator
Thanks. That should be quite useful. On 7 Sep., 21:50, Andrew Brampton bramp...@gmail.com wrote: Hi, I'm going to try something here, and hopefully it'll work. I've written a few apps and occasionally I'll have someone email me saying it doesn't work correctly on their phone. As I don't have access to their phone I try and recreate their device in the emulator by using the same Android version, screen size, and whatever else I think is important. Until now I've been keeping a list of all the different specifications of the devices, as I couldn't find a good list online. So I figure today I'd put what little research I've done into a spreadsheet and share it with the Android community. What I also hope is that people will start to add devices that I'm missing. So please take a look at this spreadsheet and fill free to edit it (in a sensible way). If there is another column of data you would like to add then feel free and hopefully any blanks will be filled in. https://spreadsheets.google.com/ccc?key=0AlXAdnQtmZFZdHBBcnBmNlkwU0Jx... Thanks Andrew P.S Of course in a perfect world we shouldn't need such as list as our apps should just work on any Android device, but I've noticed a few minor quirks which have annoyed me in the past. -- 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: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
OK. I've had a quick look. 1) I take it that your View (MyView) is the item in the ListView? 2) Why are you doing the measuring (and implementing onDraw())? I would have thought that you should be using a layout to declare the ListView item and then backing that with a BaseAdapter implementation (where you should look at using the view holder pattern to allow re- use of inflated objects. On Sep 6, 5:15 am, rious.delie rious.de...@gmail.com wrote: somebody please... -- 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: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
thank you, 1) yes, it is an item on a listview, i populate some numbers of it on a listview. 2) i need to set the height of the view on runtime, because the height of the view is the variable of width (height = f(width)), it is just as simple as the TextView, which can determine how many lines needed to show the text based on a function of display width, each font width, and the text to be displayed. Yes, i have implemented an adapter (an extends of ArrayAdapter) and have used ViewHolder (static class ViewHolder()), my point is, why bitmap1 changes order randomly while bitmap2 stays where it should be, something like this: a list view = view1 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view5 i scroll fastly, then the order of bitmap1 changes: view1 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view5 moreover, the order random changes appear while i scroll the listview fastly, if i gently scroll it slowly the problem is not occured, it seems that the problem is not on the code, (is it a bug on android platform?) On Sep 6, 2:17 pm, jamesc jame...@gmail.com wrote: OK. I've had a quick look. 1) I take it that your View (MyView) is the item in the ListView? 2) Why are you doing the measuring (and implementing onDraw())? I would have thought that you should be using a layout to declare the ListView item and then backing that with a BaseAdapter implementation (where you should look at using the view holder pattern to allow re- use of inflated objects. On Sep 6, 5:15 am, rious.delie rious.de...@gmail.com wrote: somebody please... -- 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: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
i think i have to try using scrollview instead of listview.. On Sep 7, 9:55 am, rious.delie rious.de...@gmail.com wrote: thank you, 1) yes, it is an item on a listview, i populate some numbers of it on a listview. 2) i need to set the height of the view on runtime, because the height of the view is the variable of width (height = f(width)), it is just as simple as the TextView, which can determine how many lines needed to show the text based on a function of display width, each font width, and the text to be displayed. Yes, i have implemented an adapter (an extends of ArrayAdapter) and have used ViewHolder (static class ViewHolder()), my point is, why bitmap1 changes order randomly while bitmap2 stays where it should be, something like this: a list view = view1 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view5 i scroll fastly, then the order of bitmap1 changes: view1 = bitmap1 = hai i am bitmap1 in view4 bitmap2 = hai i am bitmap2 in view1 view2 = bitmap1 = hai i am bitmap1 in view5 bitmap2 = hai i am bitmap2 in view2 view3 = bitmap1 = hai i am bitmap1 in view2 bitmap2 = hai i am bitmap2 in view3 view4 = bitmap1 = hai i am bitmap1 in view1 bitmap2 = hai i am bitmap2 in view4 view5 = bitmap1 = hai i am bitmap1 in view3 bitmap2 = hai i am bitmap2 in view5 moreover, the order random changes appear while i scroll the listview fastly, if i gently scroll it slowly the problem is not occured, it seems that the problem is not on the code, (is it a bug on android platform?) On Sep 6, 2:17 pm, jamesc jame...@gmail.com wrote: OK. I've had a quick look. 1) I take it that your View (MyView) is the item in the ListView? 2) Why are you doing the measuring (and implementing onDraw())? I would have thought that you should be using a layout to declare the ListView item and then backing that with a BaseAdapter implementation (where you should look at using the view holder pattern to allow re- use of inflated objects. On Sep 6, 5:15 am, rious.delie rious.de...@gmail.com wrote: somebody please... -- 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: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView
somebody please... -- 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: List of bugs on the issue which should be marked as resolved
Thanks very much Gaz! We'll take a look at these ASAP. - Dan On Wed, Aug 4, 2010 at 4:17 PM, Gaz Davidson garethdavid...@gmail.comwrote: There's tons of bugs on the tracker which have already been fixed in 2.2 or earlier, but have not been marked as resolved in the 2.2 release. As FroYo has just been delivered to a load of new handsets it would be a nice PR exercise if someone with permission could close some of the more popular ones off. It's guaranteed to bring a smile to several thousand people's faces, and it's not much work as I've made a list of the most obvious ones: Animated GIF support: http://code.google.com/p/android/issues/detail?id=3422 (2.2) Nexus One touchscreen bug: http://code.google.com/p/android/issues/detail?id=6296 (works for me now) WiFi in Airplane mode: http://code.google.com/p/android/issues/detail?id=1065 (works in 2.2) Sort contacts by surname: http://code.google.com/p/android/issues/detail?id=5142 (2.2) Unable to edit nickname field in contacts: http://code.google.com/p/android/issues/detail?id=3265 Resending message due to network failure: http://code.google.com/p/android/issues/detail?id=3934 SMS from short number bug: http://code.google.com/p/android/issues/detail?id=6526 MediaScanner deletes jpeg and gif files: http://code.google.com/p/android/issues/detail?id=3692 Dictionary erroneously adding words: http://code.google.com/p/android/issues/detail?id=6688 and 7794 Extending the contacts database: http://code.google.com/p/android/issues/detail?id=86 (from what I understand this has been part of the API since 2.0, facebook has profile page links anyway) Ear speaker not reactivated following headphone disconnect during incoming call: http://code.google.com/p/android/issues/detail?id=5674 (was fixed in 2.1) Video recorder dims camera in low light rather than brightening it: http://code.google.com/p/android/issues/detail?id=5386 (fixed in 2.1?) Can't get the phone number of an incoming call: http://code.google.com/p/android/issues/detail?id=53 (possible since API level 4) Press the dots instead of join the dots: http://code.google.com/p/android/issues/detail?id=3146 (greasy smudge security concerns were addressed in 2.2) HTML canvas drawimage broke: http://code.google.com/p/android/issues/detail?id=5141 (fixed in 2.2) MediaScanner corrupts UTF8 ID3 tags: http://code.google.com/p/android/issues/detail?id=2688 (fixed in May 2009) Nexus One flash as torch: http://code.google.com/p/android/issues/detail?id=6284 (fixed in 2.2) Streaming OGG files over HTTP: http://code.google.com/p/android/issues/detail?id=734 (fixed in 2.2) -- 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: List of bugs on the issue which should be marked as resolved
The Nexus One touch bug is NOT fixed. It still happens and so is the touch screen freezing until the phone is turned off and back again. On Aug 5, 7:17 am, Gaz Davidson garethdavid...@gmail.com wrote: There's tons of bugs on the tracker which have already been fixed in 2.2 or earlier, but have not been marked as resolved in the 2.2 release. As FroYo has just been delivered to a load of new handsets it would be a nice PR exercise if someone with permission could close some of the more popular ones off. It's guaranteed to bring a smile to several thousand people's faces, and it's not much work as I've made a list of the most obvious ones: Animated GIF support:http://code.google.com/p/android/issues/detail?id=3422 (2.2) Nexus One touchscreen bug:http://code.google.com/p/android/issues/detail?id=6296 (works for me now) WiFi in Airplane mode:http://code.google.com/p/android/issues/detail?id=1065 (works in 2.2) Sort contacts by surname:http://code.google.com/p/android/issues/detail?id=5142 (2.2) Unable to edit nickname field in contacts:http://code.google.com/p/android/issues/detail?id=3265 Resending message due to network failure:http://code.google.com/p/android/issues/detail?id=3934 SMS from short number bug:http://code.google.com/p/android/issues/detail?id=6526 MediaScanner deletes jpeg and gif files:http://code.google.com/p/android/issues/detail?id=3692 Dictionary erroneously adding words:http://code.google.com/p/android/issues/detail?id=6688 and 7794 Extending the contacts database:http://code.google.com/p/android/issues/detail?id=86 (from what I understand this has been part of the API since 2.0, facebook has profile page links anyway) Ear speaker not reactivated following headphone disconnect during incoming call:http://code.google.com/p/android/issues/detail?id=5674 (was fixed in 2.1) Video recorder dims camera in low light rather than brightening it:http://code.google.com/p/android/issues/detail?id=5386(fixed in 2.1?) Can't get the phone number of an incoming call:http://code.google.com/p/android/issues/detail?id=53(possible since API level 4) Press the dots instead of join the dots:http://code.google.com/p/android/issues/detail?id=3146 (greasy smudge security concerns were addressed in 2.2) HTML canvas drawimage broke:http://code.google.com/p/android/issues/detail?id=5141 (fixed in 2.2) MediaScanner corrupts UTF8 ID3 tags:http://code.google.com/p/android/issues/detail?id=2688 (fixed in May 2009) Nexus One flash as torch:http://code.google.com/p/android/issues/detail?id=6284 (fixed in 2.2) Streaming OGG files over HTTP:http://code.google.com/p/android/issues/detail?id=734 (fixed in 2.2) -- 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: List of all instantiated Activities
Assume I have an app that, although 95% of the time it will be used by a single user, will occasionally be passed to a supervisor or somebody similar who will do a logout/login/do-some-activity/logout cycle before handing it back to the original employee using the device. On a logout, I'd like to kill/finish all the running activities (allowing them to do their cleanup), then essentially start fresh without having to litter all the activities with calls to specifically test to see if we've done a logout since the last time we were brought to the front of the user's attention. Alternatively, I could just kill the process (I'm assuming a System.exit() works), but that would have the undesirable effect of bringing the user back to the Home screen and forcing them to select the app, which from a UX perspective feels awkward and amateurish. There's also the diagnostician in me that wants to be able to find all open Activities and finish() them if we get a low-memory signal, but that's really a distant second to the above use case. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com -Original Message- From: android-developers@googlegroups.com [mailto:android- develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Wednesday, June 02, 2010 1:26 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: List of all instantiated Activities Let's step back a little bit. Ted, what is it you are trying to do? On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot guillaume.p...@gmail.com wrote: I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity types) instead of the standard ones. You could place your code in onCreate, if they inherit your class they can't miss it. Of course the developer still have to ensure it does not miss an inheritance change but it's easier than adding a snippet of code everywhere and more object friendly. On 2 juin, 08:35, Ted Neward ted.new...@gmail.com wrote: Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process? Yes, I could register each one into a static List someplace from the constructor of each Activity, but that requires developers to remember to put that code into every Activity constructor, which is going to eventually miss one or two (not to mention keep the Activity alive longer than it should be, though that could be fixed by holding WeakReferences instead of strong ones, but that still misses the point), and that's going to mean one or two escape the list. I'd prefer to have a way to see all of them from Android's/Dalvik's point of view. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.comhttp://www.tedneward.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- develop...@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- develop...@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: List of all instantiated Activities
You can implement this in your application by using following way: 1) You need a class that handle all the application (Say Handller) In Handller class you can create a method that create List and add list into it. For example Class Handller{ List list; //Some Housekeeping setActiveActivity(Activity activity){ if(list.equals(null)){ //create list } else{ list.add(activity) } } List getActivity(){ return list; } } 2) You need an Activity (say ActiveActivity) that extends Activity ex: public class ActiveActivity extends Activity { protected void onResume() { super.onResume(); Handller.setActiveActivity(this); //you need to take an instance of Handler Class. } } 3) Now you can add all your activity in list by extending ActiveActivity. ex. public class ActivityA extends ActiveActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(...); } 4) You can get All Activities by using Handler getActivity(). Regards, Rajiv On Thu, Jun 3, 2010 at 2:39 PM, Ted Neward ted.new...@gmail.com wrote: Assume I have an app that, although 95% of the time it will be used by a single user, will occasionally be passed to a supervisor or somebody similar who will do a logout/login/do-some-activity/logout cycle before handing it back to the original employee using the device. On a logout, I'd like to kill/finish all the running activities (allowing them to do their cleanup), then essentially start fresh without having to litter all the activities with calls to specifically test to see if we've done a logout since the last time we were brought to the front of the user's attention. Alternatively, I could just kill the process (I'm assuming a System.exit() works), but that would have the undesirable effect of bringing the user back to the Home screen and forcing them to select the app, which from a UX perspective feels awkward and amateurish. There's also the diagnostician in me that wants to be able to find all open Activities and finish() them if we get a low-memory signal, but that's really a distant second to the above use case. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com -Original Message- From: android-developers@googlegroups.com [mailto:android- develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Wednesday, June 02, 2010 1:26 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: List of all instantiated Activities Let's step back a little bit. Ted, what is it you are trying to do? On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot guillaume.p...@gmail.com wrote: I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity types) instead of the standard ones. You could place your code in onCreate, if they inherit your class they can't miss it. Of course the developer still have to ensure it does not miss an inheritance change but it's easier than adding a snippet of code everywhere and more object friendly. On 2 juin, 08:35, Ted Neward ted.new...@gmail.com wrote: Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process? Yes, I could register each one into a static List someplace from the constructor of each Activity, but that requires developers to remember to put that code into every Activity constructor, which is going to eventually miss one or two (not to mention keep the Activity alive longer than it should be, though that could be fixed by holding WeakReferences instead of strong ones, but that still misses the point), and that's going to mean one or two escape the list. I'd prefer to have a way to see all of them from Android's/Dalvik's point of view. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.comhttp://www.tedneward.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- develop...@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
RE: [android-developers] Re: List of all instantiated Activities
I could do what you're suggesting (which I already said I didn't want to do) much more simply from within a default constructor: public class RegisteredActivity extends Activity { public static ListActivity getAllActivities() { // make sure clients can't modify the contents return Collections.unmodifiableList(theList); } private static ListActivity theList = new ArrayListActivity(); public RegisteredActivity() { super(); theList.add(this); } } Since the common path here is to have Activities that don't explicitly provide a constructor, the default constructor synthesized by the compiler will call the parent's default constructor, thus making it trivial for people to use this-they just create an Activity that inherits from my RegisteredActivity instead of from Activity. But that would still require me to create subclasses of every Activity type that other developers might want to subclass, and it still requires developers to subclass my RegisteredActivity, which means that it's inevitable that somebody won't do that (by mistake), and lo, I've got an Activity out there that isn't caught up in my List. All of which I already mentioned in my first post-I don't want to do it this way. It's error-prone. I was hoping for an API call at the Android level that would return this list for me. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Rajiv Sent: Thursday, June 03, 2010 4:05 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: List of all instantiated Activities You can implement this in your application by using following way: 1) You need a class that handle all the application (Say Handller) In Handller class you can create a method that create List and add list into it. For example Class Handller{ List list; //Some Housekeeping setActiveActivity(Activity activity){ if(list.equals(null)){ //create list } else{ list.add(activity) } } List getActivity(){ return list; } } 2) You need an Activity (say ActiveActivity) that extends Activity ex: public class ActiveActivity extends Activity { protected void onResume() { super.onResume(); Handller.setActiveActivity(this); //you need to take an instance of Handler Class. } } 3) Now you can add all your activity in list by extending ActiveActivity. ex. public class ActivityA extends ActiveActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(...); } 4) You can get All Activities by using Handler getActivity(). Regards, Rajiv On Thu, Jun 3, 2010 at 2:39 PM, Ted Neward ted.new...@gmail.com wrote: Assume I have an app that, although 95% of the time it will be used by a single user, will occasionally be passed to a supervisor or somebody similar who will do a logout/login/do-some-activity/logout cycle before handing it back to the original employee using the device. On a logout, I'd like to kill/finish all the running activities (allowing them to do their cleanup), then essentially start fresh without having to litter all the activities with calls to specifically test to see if we've done a logout since the last time we were brought to the front of the user's attention. Alternatively, I could just kill the process (I'm assuming a System.exit() works), but that would have the undesirable effect of bringing the user back to the Home screen and forcing them to select the app, which from a UX perspective feels awkward and amateurish. There's also the diagnostician in me that wants to be able to find all open Activities and finish() them if we get a low-memory signal, but that's really a distant second to the above use case. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com http://www.tedneward.com/ -Original Message- From: android-developers@googlegroups.com [mailto:android- develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Wednesday, June 02, 2010 1:26 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: List of all instantiated Activities Let's step back a little bit. Ted, what is it you are trying to do? On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot guillaume.p...@gmail.com wrote: I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity types) instead of the standard ones. You could place your code in onCreate, if they inherit your class they can't miss it. Of course the developer still
[android-developers] Re: List of all instantiated Activities
I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity types) instead of the standard ones. You could place your code in onCreate, if they inherit your class they can't miss it. Of course the developer still have to ensure it does not miss an inheritance change but it's easier than adding a snippet of code everywhere and more object friendly. On 2 juin, 08:35, Ted Neward ted.new...@gmail.com wrote: Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process? Yes, I could register each one into a static List someplace from the constructor of each Activity, but that requires developers to remember to put that code into every Activity constructor, which is going to eventually miss one or two (not to mention keep the Activity alive longer than it should be, though that could be fixed by holding WeakReferences instead of strong ones, but that still misses the point), and that's going to mean one or two escape the list. I'd prefer to have a way to see all of them from Android's/Dalvik's point of view. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.comhttp://www.tedneward.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: List of all instantiated Activities
Let's step back a little bit. Ted, what is it you are trying to do? On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot guillaume.p...@gmail.com wrote: I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity types) instead of the standard ones. You could place your code in onCreate, if they inherit your class they can't miss it. Of course the developer still have to ensure it does not miss an inheritance change but it's easier than adding a snippet of code everywhere and more object friendly. On 2 juin, 08:35, Ted Neward ted.new...@gmail.com wrote: Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process? Yes, I could register each one into a static List someplace from the constructor of each Activity, but that requires developers to remember to put that code into every Activity constructor, which is going to eventually miss one or two (not to mention keep the Activity alive longer than it should be, though that could be fixed by holding WeakReferences instead of strong ones, but that still misses the point), and that's going to mean one or two escape the list. I'd prefer to have a way to see all of them from Android's/Dalvik's point of view. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.comhttp://www.tedneward.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 -- 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
[android-developers] Re: List of all instantiated Activities
On Jun 2, 4:35 am, Ted Neward ted.new...@gmail.com wrote: Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process? afaik, you can't do this you can however get total #Activities by calling Activity's static method getInstanceCount() pskink -- 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: List of all instantiated Activities
getInstanceCount() is there for debugging purpose and is not reliable. On Wed, Jun 2, 2010 at 2:14 AM, skink psk...@gmail.com wrote: On Jun 2, 4:35 am, Ted Neward ted.new...@gmail.com wrote: Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process? afaik, you can't do this you can however get total #Activities by calling Activity's static method getInstanceCount() pskink -- 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
[android-developers] Re: List of all instantiated Activities
On Jun 2, 7:16 am, Romain Guy romain...@android.com wrote: getInstanceCount() is there for debugging purpose and is not reliable. why is it not reliable? pskink -- 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: List of all instantiated Activities
Because it's implemented using finalize(). And in Froyo this will always return 0 btw. On Wed, Jun 2, 2010 at 2:25 AM, skink psk...@gmail.com wrote: On Jun 2, 7:16 am, Romain Guy romain...@android.com wrote: getInstanceCount() is there for debugging purpose and is not reliable. why is it not reliable? pskink -- 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
[android-developers] Re: List View Item Strange Behavior
I update the tag on the button after the else and it works. Thanks TreKing :) On Apr 9, 1:31 pm, Agus agus.sant...@gmail.com wrote: You are using convertView object which is a recycled view. On Thu, Apr 8, 2010 at 2:42 AM, Binesy ross.bi...@gmail.com wrote: Hi, I have been having some strange behavior when refreshing a listview from a button in a list item. Say you have a list of 4 items, indexes 0-3 and you click on item 4, and print the index. 3 is printed correctly, then i refresh the list. I click on item 4 again, but this time index 0 is printed, click again and we are back to 3. Why is this happening and how can I fix it? I have included some source below for you to have a look at how I have done this. Any help is much appreciated Binesy public class CrazyList extends Activity { private static final String TAG = CRAZY LIST; public class Item { public String name = null; public int counter = -1; public Item(String n) { name = n; counter = 0; } } private ArrayListItem names = null; private MyAdapter adapter = null; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); names = new ArrayListItem(); names.add(new Item(Ross)); names.add(new Item(Fred)); names.add(new Item(Bob)); names.add(new Item(Frank)); ListView list = (ListView)findViewById(R.id.ListView01); adapter = new MyAdapter(); list.setAdapter(adapter); } private void updateButtonText(int index) { names.get(index).counter++; adapter.notifyDataSetChanged(); } private class MyAdapter extends BaseAdapter { �...@override public int getCount() { return names.size(); } �...@override public Object getItem(int position) { return names.get(position); } �...@override public long getItemId(int position) { return position; } �...@override public View getView(int position, View convertView, ViewGroup parent) { Container c = null; if(convertView == null) { convertView = View.inflate(getApplicationContext(), R.layout.item, null); c = new Container(); c.text = (TextView) convertView.findViewById(R.id.TextView01); c.button = (Button) convertView.findViewById(R.id.Button01); c.button.setTag(position); c.button.setOnClickListener(new OnClickListener() { �...@override public void onClick(View v) { int number = (Integer)v.getTag(); Log.d(TAG, Button clicked is + number); updateButtonText(number); } }); convertView.setTag(c); } else c = (Container) convertView.getTag(); c.text.setText(names.get(position).name); c.button.setText(names.get(position).counter + ); return convertView; } public class Container { public TextView text = null; public Button button = null; } } } -- 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%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- 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: List View Item Strange Behavior
Ok thanks. I'll give that a try and see if it works On Apr 8, 6:57 pm, ~ TreKing treking...@gmail.com wrote: On Thu, Apr 8, 2010 at 4:42 AM, Binesy ross.bi...@gmail.com wrote: Why is this happening and how can I fix it? The ListView will re-use views it uses, as you see by the convertView. These are not guaranteed to be in the same order as you scroll the list and items are cycled, AFAIK. My guess is your items are being re-arranged and you're seeing the behavior you're seeing since you're not updating the tag on the button where you store in the index. I would recommend you completely update the view you're getting even if there is an existing convertView. In this case just do c.button.setTag(position) after the if / else clause instead of inside the if clause. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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 To unsubscribe, reply using remove me as the subject.
[android-developers] Re: List View Item Strange Behavior
Refresh the list how? adapter.notifyDataSetChanged(); You notify the adapter the data has changed and therefore should redraw itself. Also, what's the point of the Container class? AFAICT, it's completely redundant and unnecessary. Its so you can keep a reference to the views within the list item and so you don't have to call findViewById each time On Apr 8, 4:37 pm, ~ TreKing treking...@gmail.com wrote: On Thu, Apr 8, 2010 at 4:42 AM, Binesy ross.bi...@gmail.com wrote: 3 is printed correctly, then i refresh the list. Refresh the list how? Also, what's the point of the Container class? AFAICT, it's completely redundant and unnecessary. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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 To unsubscribe, reply using remove me as the subject.
[android-developers] Re: List fils on SD card
Some files, even if they are in the sdcard, are not accessible, for instance, try using adb shell to acces a file or directory which owner is not 'sdcard_rw'. If you list a directory content with 'ls -l' you can see that even in sdcard, some files belong to owners like 'app_xxx' which is the UID related to the application that created that file, each application in Android runs in its own Linux process and also has a unique user ID related. I may be wrong since I'm not an experienced android developer, but I know a litle about Linux and Unix, and I can tell you, this OSs won't let unauthorized users to access files or directories which they don't have permission to. To clarify all this topic of Androids security architecture I would recomend reading this section in developer.android.com: http://developer.android.com/guide/topics/security/security.html On Mar 2, 11:51 am, TreKing treking...@gmail.com wrote: On Tue, Mar 2, 2010 at 6:29 AM, Matias Alberto de la Vega delavega.mat...@gmail.com wrote: Keep in mind that by default some files are only visible and accesible to the applications that create them For local files, yes, but the OP said he's listing files on the SD card which is essentially free-for-all. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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: List fils on SD card
On Tue, Mar 2, 2010 at 6:29 AM, Matias Alberto de la Vega delavega.mat...@gmail.com wrote: Keep in mind that by default some files are only visible and accesible to the applications that create them For local files, yes, but the OP said he's listing files on the SD card which is essentially free-for-all. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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