[android-developers] Clear data does not remove getExternalStorageDirectory()
Clear data option from application settings does not remove data from sd card located in getExternalStorageDirectory() It does compute it size but does not clear! how to 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] Honeycomb Bitmap.createBitmap
Was it changed where Bitmap.createBitmap stores bitmap data (dalvik heap or Native heap)? Becuase I can successful create bitmap 2000x2000 on Android 2.2 and get OutOfMemoryException on 3.0? 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: Bud setAdapter of AbsListView
Now I have workaround like this private void setSafeAdapter(AbsListView view, BaseAdapter adapter){ if(view instanceof ListView){ ((ListView)view).setAdapter(adapter); }else{ view.setAdapter(adapter); } } On Fri, Mar 25, 2011 at 5:14 PM, pawpaw17 georgefraz...@yahoo.com wrote: Sergey, I'm having the same problem, and it just started after I upgraded to API 11. Notice this: -- void android.widget.AbsListView.setAdapter(ListAdapter adapter) public void setAdapter (ListAdapter adapter) Since: API Level 11 Sets the adapter that provides the data and the views to represent the data in this widget. Parameters adapter The adapter to use to create this view's content. - Note the API Level 11. Are you only seeing the crash on older phones? Why is this method limited to API 11 when it used to work fine with the older APIs ??? Can anyone shed light? I guess our only solution is to work around. Any ideas? This causes a regression from past behavior for me, so I think this is and Android bug. On Mar 22, 11:56 am, TreKing treking...@gmail.com wrote: Yeah, that doesn't help much. Guess you'd have to look at the source to see what it's doing at that point. ----- 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 -- Sergey A. Okhotny Skype:okhotny / G-Talk:okho...@gmail.com Phone:+380 (68) 322-0338 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Bud setAdapter of AbsListView
E/AndroidRuntime(14762): FATAL EXCEPTION: main E/AndroidRuntime(14762): java.lang.NoSuchMethodError: android.widget.AbsListView.setAdapter E/AndroidRuntime(14762):at com.reader.android.LocalStore.bindAdapters(LocalStore.java:534) E/AndroidRuntime(14762):at com.reader.android.LocalStore.ReloadCatalogBind(LocalStore.java:438) E/AndroidRuntime(14762):at com.reader.android.LocalStore.access$32(LocalStore.java:437) E/AndroidRuntime(14762):at com.reader.android.LocalStore$8.onPostExecute(LocalStore.java:420) E/AndroidRuntime(14762):at com.reader.android.LocalStore$8.onPostExecute(LocalStore.java:1) E/AndroidRuntime(14762):at android.os.AsyncTask.finish(AsyncTask.java:417) E/AndroidRuntime(14762):at android.os.AsyncTask.access$300(AsyncTask.java:127) E/AndroidRuntime(14762):at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) E/AndroidRuntime(14762):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(14762):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(14762):at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime(14762):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(14762):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(14762):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(14762):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) E/AndroidRuntime(14762):at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 1997): Force finishing activity com.reader.android/.Main On Fri, Mar 18, 2011 at 3:27 PM, TreKing treking...@gmail.com wrote: On Fri, Mar 18, 2011 at 3:56 AM, Sergey Okhotny okho...@gmail.com wrote: AbsListView mNewspapersView = (AbsListView)findViewById(R.id.localstore_newspapers); this fails mNewspapersView.setAdapter(new NewspapersListAdapter()); but if I do ((ListView)mNewspapersView).setAdapter(new NewspapersListAdapter()); this works ok And the callstack from the crash? - 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 -- Sergey A. Okhotny Skype:okhotny / G-Talk:okho...@gmail.com Phone:+380 (68) 322-0338 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Bud setAdapter of AbsListView
Layout: ListView android:id=@+id/localstore_newspapers android:layout_width=fill_parent android:layout_height=fill_parent / Java: private class NewspapersListAdapter extends BaseAdapter {} AbsListView mNewspapersView = (AbsListView)findViewById(R.id.localstore_newspapers); this fails mNewspapersView.setAdapter(new NewspapersListAdapter()); but if I do ((ListView)mNewspapersView).setAdapter(new NewspapersListAdapter()); this works ok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Bud setAdapter of AbsListView
I've two layouts for diferrent screen size. Small uses ListView, for large - GridView. Both have same id On activity I cast the to AbsListView. Then I set adapter using setAdapter(new myAdapter), myAdapter extends BaseAdapter. And if my AbsListView is GridView, everything is fine, but if it is ListView - then I got exception NoSuchMethodError! If I cast AbsListView to ListView - then it will work fine too. How to make it working without injecting cast?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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