Re: [android-developers] Export Data from my app
*Copying your existing database seems like a simple solution.* Copying? just pick data row-row to a file? *I read about save to SD card, but I didn't underastand many things. For exaple did I need a key for the permission? Or just put a line of code in the manifest file?* sorry for my english :p -- Julia Grigoriadou Studying *Applied Informatics* at the University of Macedonia in Greece iouliag...@gmail.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: Date Query
you could convert you date like this: private Date ConvertToDate(String dateString){ SimpleDateFormat dateFormat = new SimpleDateFormat(-MM-dd HH:mm); Date convertedDate; try { Log.i(SocialFeedLatestBuzz, Date before convert = + dateString); convertedDate = dateFormat.parse(dateString); Log.i(SocialFeedLatestBuzz, convertedDate = + convertedDate); } catch (ParseException e) { Log.i(SocialFeedLatestBuzz, parse exceptrion ); e.printStackTrace(); return null; } return convertedDate; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Expandable List and GetChildCount
06-29 19:45:34.471: ERROR/AndroidRuntime(435): FATAL EXCEPTION: main 06-29 19:45:34.471: ERROR/AndroidRuntime(435): java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at java.util.ArrayList.get(ArrayList.java:311) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.SimpleExpandableListAdapter.getChildrenCount(SimpleExpandableListAdapter.java:255) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at com.desk.prosp.ExpandableAdapter.getGroupView(ExpandableAdapter.java:83) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.ExpandableListConnector.getView(ExpandableListConnector.java:445) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.AbsListView.obtainView(AbsListView.java:1418) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.ListView.makeAndAddView(ListView.java:1745) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.ListView.fillDown(ListView.java:670) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.ListView.fillFromTop(ListView.java:727) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.ListView.layoutChildren(ListView.java:1598) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.AbsListView.onLayout(AbsListView.java:1248) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.View.layout(View.java:7175) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.View.layout(View.java:7175) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.FrameLayout.onLayout(FrameLayout.java:338) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.View.layout(View.java:7175) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.View.layout(View.java:7175) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.widget.FrameLayout.onLayout(FrameLayout.java:338) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.View.layout(View.java:7175) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.ViewRoot.performTraversals(ViewRoot.java:1140) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.os.Handler.dispatchMessage(Handler.java:99) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.os.Looper.loop(Looper.java:123) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at android.app.ActivityThread.main(ActivityThread.java:3647) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at java.lang.reflect.Method.invokeNative(Native Method) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at java.lang.reflect.Method.invoke(Method.java:507) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 06-29 19:45:34.471: ERROR/AndroidRuntime(435): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Expandable List and GetChildCount
The groupPosition is wrong? But I don't know why is this happen. Because I have this code int the getGroupView() method in my adapter, so this is being called for each group. But the app crashes only if I have a group with no children. I can't understand. :p -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Expandable List and GetChildCount
View ind = v.findViewById( R.id.explist_indicator); ImageView indicator = (ImageView)ind; indicator is just a name of an image viewa and I change the visibility. The code works perfectly when I change the value of the getChilderCount(groupPosition) to something other than 0. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Expandable List and GetChildCount
Ok, I 'll see this again and then I 'll tell you my news/ :-) Thanks you very much! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Expandable List and Intents
/ExpList ( 336): onChildClick [Begin] I/ActivityManager( 61): Starting: Intent { cmp=aexp.explist/.NoteEdit } from p id 336 D/AndroidRuntime( 336): Shutting down VM W/dalvikvm( 336): threadid=1: thread exiting with uncaught exception (group=0x4 0015560) E/AndroidRuntime( 336): FATAL EXCEPTION: main E/AndroidRuntime( 336): java.lang.IndexOutOfBoundsException: Invalid index 5, s ize is 0 E/AndroidRuntime( 336):at java.util.ArrayList.throwIndexOutOfBoundsExce ption(ArrayList.java:257) E/AndroidRuntime( 336):at java.util.ArrayList.get(ArrayList.java:311) E/AndroidRuntime( 336):at android.widget.SimpleExpandableListAdapter.ge tChildrenCount(SimpleExpandableListAdapter.java:255) E/AndroidRuntime( 336):at android.widget.ExpandableListConnector.refres hExpGroupMetadataList(ExpandableListConnector.java:561) E/AndroidRuntime( 336):at android.widget.ExpandableListConnector.expand Group(ExpandableListConnector.java:682) E/AndroidRuntime( 336):at android.widget.ExpandableListView.handleItemC lick(ExpandableListView.java:567) E/AndroidRuntime( 336):at android.widget.ExpandableListView.performItem Click(ExpandableListView.java:527) E/AndroidRuntime( 336):at android.widget.AbsListView$PerformClick.run(A bsListView.java:1800) E/AndroidRuntime( 336):at android.os.Handler.handleCallback(Handler.jav a:587) E/AndroidRuntime( 336):at android.os.Handler.dispatchMessage(Handler.ja va:92) E/AndroidRuntime( 336):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 336):at android.app.ActivityThread.main(ActivityThrea d.java:3647) E/AndroidRuntime( 336):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 336):at java.lang.reflect.Method.invoke(Method.java:5 07) E/AndroidRuntime( 336):at com.android.internal.os.ZygoteInit$MethodAndA rgsCaller.run(ZygoteInit.java:839) E/AndroidRuntime( 336):at com.android.internal.os.ZygoteInit.main(Zygot eInit.java:597) E/AndroidRuntime( 336):at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 61): Activity pause timeout for HistoryRecord{405404a8 aexp .explist/.ExpList} I/Process ( 336): Sending signal. PID: 336 SIG: 9 I/ActivityManager( 61): Process aexp.explist (pid 336) has died. E/InputDispatcher( 61): channel '406ee3e8 aexp.explist/aexp.explist.ExpList (s erver)' ~ Consumer closed input channel or an error occurred. events=0x8 E/InputDispatcher( 61): channel '406ee3e8 aexp.explist/aexp.explist.ExpList (s erver)' ~ Channel is unrecoverably broken and will be disposed! I/WindowManager( 61): WIN DEATH: Window{406ee3e8 aexp.explist/aexp.explist.Exp List paused=false} W/InputManagerService( 61): Got RemoteException sending setActive(false) notif ication to pid 336 uid 10034 D/dalvikvm( 61): GC_CONCURRENT freed 899K, 46% free 4388K/8071K, external 2444 K/3469K, paused 23ms+31ms W/KeyCharacterMap( 128): No keyboard for id 0 W/KeyCharacterMap( 128): Using default keymap: /system/usr/keychars/qwerty.kcm. bin that is tha informations for log cat!! ?? so many errors!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Expandable List and Intents
ok, do you think it would br better to use a base expandable list adapter? my errors are in the arraylist which used in simple adapter? I an new to android and sorry for my english! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Expandable List and Intents
thanks a lot i completely undersatnd that you are telling to me. I 'll try to fix my code . Would you see how I create my data structure? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Expandable List and Intents
thank you so much! I 'll work on 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] Expandable List and Intents
force close when i click an group sorry i didn't expalin better -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Expandable List and Intents
I tried this but i had the same problem. 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] Expandable List and Intents
I ' ll try the debug..Thanks 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: how to add a second text view in group_row of expandable list?
Yes, you are both rigth. I 'll try to develop my questions to be easily understand. Emanuel Moecklinthanks for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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