[android-developers] Hardware requirement for 3.0 on Windows
Hi All, I am trying to run my application on android 3.0 emulator on windows machine having window 7 OS. It is very slow. Sometime application is not getting started. Is there any specific hardware requriement like RAM size for android 3.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
[android-developers] Help in integrating omniture in android app
Hi, I need help to get information regarding integration of Omniture in Android app. Is it possible to integrate omniture in Android app and collect analytics data. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem in facebook logout
Hi All, I am making an application to get my application authenitcated using facebook credentails. I am able to login but at the time of logout my credentails are not getting cleared. I am using following code snippet to do logout AsyncFacebookRunner asyncRunner = new AsyncFacebookRunner(facebook); asyncRunner.logout(ctx, new LogoutRequestListener()); It is invalidating session but when I am again trying to do login using facebook.authorize(ctx, PERMS, new DialogListener() It is not asking for the credentials. I had also tried facebook.logout but it is returning Invalid API key. There is no provision in logout function to send API key and I am using same facebook object using which I had logged in. ~Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DRM implementation
Hi All, My requirement is to publish my application from client site instead of Android market. So I need to implement DRM. Please suggest some solution for it. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: DRM implementation
Hi All, I have one more query on the implementation of DRM: 1. If a user has purchased one item and it get downloaded on their device, now if user changes his device? Can they again download it free of cost? 2. If after purchasing, user can do multiple download then how does it check for illegal download. One person can download app on different devices. On Oct 20, 11:22 am, Manish Garg mannishga...@gmail.com wrote: Hi All, My requirement is to publish my application from client site instead of Android market. So I need to implement DRM. Please suggest some solution for it. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ImageView not getting vertically centered
Hi All, I need to display one image on the screen who's size depends upon the image fetched from the server. It is getting horizontal center but not vertical center. When image size is large then it is displaying fine scroll bar is also coming but when image size is smaller the screen size then I am facing problem. ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent style=@style/theme_layout LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/imgLayout android:gravity=center ImageView android:id=@+id/documentImg android:layout_width=wrap_content android:layout_height=wrap_content /ImageView /LinearLayout /ScrollView Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ImageView not getting vertically centered
:( not working. I guess problem is coming because of scrollView but I can't remove it, as there is possiblity that image size could be larger than the screen size. On Aug 25, 4:22 pm, Drezden mmjohns...@gmail.com wrote: Can you try something like this using centerInParent? ImageView android:id=@+id/preview_image android:layout_width=wrap_content android:layout_width=wrap_content android:layout_centerInParent=true / On Aug 25, 1:39 pm, Manish Garg mannishga...@gmail.com wrote: Hi All, I need to display one image on the screen who's size depends upon the image fetched from the server. It is getting horizontal center but not vertical center. When image size is large then it is displaying fine scroll bar is also coming but when image size is smaller the screen size then I am facing problem. ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent style=@style/theme_layout LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/imgLayout android:gravity=center ImageView android:id=@+id/documentImg android:layout_width=wrap_content android:layout_height=wrap_content /ImageView /LinearLayout /ScrollView Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Difference between removeAllViewsInLayout() and removeAllViews()
Hi All, Whats difference in between removeAllViewsInLayout() and removeAllViews(). I am populating a linear layout dynamicaly. Depending upon response, I have to clear the past child views and create new views. Which function I should use. I have used removeAllViews() but views didn't get cleared. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Custom Simpleadapter not updating listview on notifyDataSetChanged
No, There wasn't any problem. I was calling the super class function in else case. I had updated wrong adapter in the list view :( On Aug 5, 9:30 am, Vance Turnewitsch betweenthehi...@gmail.com wrote: I think there is a problem with your getView method. If the convertView is not null type.equalsIgnorCase(...)==true, then your view is not updated at all: getView returns the view that was passed in. On Aug 5, 1:53 am, Manish Garg mannishga...@gmail.com wrote: Hi All, I am using following adapter class when I am calling notifyDataInvalidate and then notifyDataSetChanged, it is not updating listview. strangely I have two instance of this adapter, in one of them list is getting updated. public class CalendarEventAdapter extends SimpleAdapter { ListHashMapString, String mDataList; int mResource; Context mCtx; @SuppressWarnings(unchecked) public CalendarEventAdapter(Context context, List? extends MapString, ? data, int resource, String[] from, int[] to) { super(context, data, resource, from, to); mDataList = (ListHashMapString, String) data; mResource = resource; mCtx = context; } @Override public int getCount() { return super.getCount(); } @Override public void notifyDataSetChanged() { // TODO Auto-generated method stub super.notifyDataSetChanged(); } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = View.inflate(mCtx, mResource, null); } if (type.equalsIgnoreCase(Statement)) { return convertView; } else { return super.getView(position, convertView, parent); } } }- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Pre-defined length for password text
Hi, Is it possible to set the pre-defined length for the password fields? I am setting Input type of a text view as TextPassword but its length appear same as that of number of character in password. I want to display 8 '*' to the user -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom Simpleadapter not updating listview on notifyDataSetChanged
Hi All, I am using following adapter class when I am calling notifyDataInvalidate and then notifyDataSetChanged, it is not updating listview. strangely I have two instance of this adapter, in one of them list is getting updated. public class CalendarEventAdapter extends SimpleAdapter { ListHashMapString, String mDataList; int mResource; Context mCtx; @SuppressWarnings(unchecked) public CalendarEventAdapter(Context context, List? extends MapString, ? data, int resource, String[] from, int[] to) { super(context, data, resource, from, to); mDataList = (ListHashMapString, String) data; mResource = resource; mCtx = context; } @Override public int getCount() { return super.getCount(); } @Override public void notifyDataSetChanged() { // TODO Auto-generated method stub super.notifyDataSetChanged(); } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = View.inflate(mCtx, mResource, null); } if (type.equalsIgnoreCase(Statement)) { return convertView; } else { return super.getView(position, convertView, parent); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TextWatcher in inherited SimpleAdapter
Hi All, I have also tried to override getFilter() function and returning super.getFilter() but nothing is working. On Jul 10, 9:04 pm, Manish Garg mannishga...@gmail.com wrote: Hi All, In my code, I was using following code for textwatcher private TextWatcher filterTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count,int after) { } @Override public void onTextChanged(CharSequence s, int start, int before,int count){ if(adapter!=null) { adapter.getFilter().filter(s); } } @Override public void afterTextChanged(Editable s) { } }; It was working fine till the time I was using simpleAdapter but now I have to customize my adapter and have write one inherited class of simpleAdapter. TextWatcher has stopped working. If someone know the reason and solution then please let me know. Thanks Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TextWatcher is not giving result n inherited SimpleAdapter
Hi All, private class AddedSenderAdapter extends SimpleAdapter{ public AddedSenderAdapter(Context ctx, ListHashMapString, String data, int resource, String[] from, int[] to) { super(ctx, data, resource, from, to); ... ... } ... } For the reference I am attachhing my adapter code. Is there any problem with the inherited adapter? Or do I need to override some function. On Jul 11, 10:05 am, Manish Garg mannishga...@gmail.com wrote: Hi All, I have also tried to override getFilter() function and returning super.getFilter() but nothing is working. On Jul 10, 9:04 pm, Manish Garg mannishga...@gmail.com wrote: Hi All, In my code, I was using following code for textwatcher private TextWatcher filterTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count,int after) { } @Override public void onTextChanged(CharSequence s, int start, int before,int count){ if(adapter!=null) { adapter.getFilter().filter(s); } } @Override public void afterTextChanged(Editable s) { } }; It was working fine till the time I was using simpleAdapter but now I have to customize my adapter and have write one inherited class of simpleAdapter. TextWatcher has stopped working. If someone know the reason and solution then please let me know. Thanks Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TextWatcher in inherited SimpleAdapter
Hi All, In my code, I was using following code for textwatcher private TextWatcher filterTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count,int after) { } @Override public void onTextChanged(CharSequence s, int start, int before,int count){ if(adapter!=null) { adapter.getFilter().filter(s); } } @Override public void afterTextChanged(Editable s) { } }; It was working fine till the time I was using simpleAdapter but now I have to customize my adapter and have write one inherited class of simpleAdapter. TextWatcher has stopped working. If someone know the reason and solution then please let me know. Thanks Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView is no clickable
Thanks a lot Zsolt. It works. i have used android:focusable=false , I didnt get why you have also suggested android:clickable=false. We want to that check box shoud get checked/unchecked. Will making it unclickable not make it disable or user will not be able to check it. On Jun 28, 3:58 am, Zsolt Vasvari zvasv...@gmail.com wrote: Basic Java Tip #129: @Override is an annotation for the compiler -- it has no effect on how the code is executed. I am 100% sure it's because of those missing attributes. I've wrestled with the same problem before. On Jun 28, 3:38 pm, Ali Chousein ali.chous...@gmail.com wrote: Manish, A very basic question, but did you by change forget to put @Override before the declaration of setOnItemClickListener? -- Ali Chousein Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView is no clickable
Hi All, I have a simple list view in my application. I am implementing its setOnItemClickListener but it is not getting called: ListView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/sender_added android:layout_weight=1 android:cacheColorHint=# android:dividerHeight=1dip android:listSelector=@drawable/tab_regular android:divider=@drawable/listview_seperator /ListView I am inflating it with the following row: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=wrap_content android:layout_gravity=center_vertical android:padding=10dip ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/ImageView /ImageView TextView android:id=@+id/Name android:layout_width=wrap_content android:layout_height=wrap_content android:textColor=#00 android:textSize=12dip android:layout_toRightOf=@id/ImageView /TextView CheckBox android:id=@+id/checkBox android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:button=@layout/checkbox_state /CheckBox /RelativeLayout Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Handling radio button of the single choice List
Hi all, I want to get the handle of the Single choice list, so that I can select/unselect a particular item. My requirement is it that when I click on the radio button its state should get reverted. Currently when we click on radio button it get selected and it will be unselected only if we click on other items. I can customized this behaviour by using onListItemClickListener but my requirement is also to display detail of the list item when clicked on that particular row. So I can't implement onListItemClickListener to select/unselect radio button. So is there some way to get the handle of the radio button or view of the radio button so that I can implement onClickListener of the radio button. Or is there any other solution. Thanks, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Aligning tabs as center horizontal
Hi All, I want to align my tabs as center horizontal and want to use the side space to place other buttons. Is it possible. I want that tab content use complete space but tab title get aligned center horizontal. Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is it possible for TabActivity to have child TabActivity
Hi All, I want to implement nested tab activity but getting exception in some cases like at the time of calling dialog.show from the activity of the nested activity and during drawing grid view inside nested activity. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is it possible for TabActivity to have child TabActivity
Is there any other widget available to give the impression like nested tab activity. I was able to create nested tab activity but sometime it get crashed like showing dialog from the child activity of the nested tab activity On Jun 9, 5:22 pm, Dianne Hackborn hack...@android.com wrote: No it is not. There is only one level of nesting of activities. On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg mannishga...@gmail.com wrote: Hi All, I want to implement nested tab activity but getting exception in some cases like at the time of calling dialog.show from the activity of the nested activity and during drawing grid view inside nested activity. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible for TabActivity to have child TabActivity
Sorry I didn't get your point. You said that it is not possible to have more than one level. I had used tab widget only for displaying nested level but facing application crash at the time of displaying dialog from the child activity android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@43ed5c78 is not valid; is your activity running? On Jun 9, 7:39 pm, Dianne Hackborn hack...@android.com wrote: Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com wrote: Is there any other widget available to give the impression like nested tab activity. I was able to create nested tab activity but sometime it get crashed like showing dialog from the child activity of the nested tab activity On Jun 9, 5:22 pm, Dianne Hackborn hack...@android.com wrote: No it is not. There is only one level of nesting of activities. On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg mannishga...@gmail.com wrote: Hi All, I want to implement nested tab activity but getting exception in some cases like at the time of calling dialog.show from the activity of the nested activity and during drawing grid view inside nested activity. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible for TabActivity to have child TabActivity
ohh sorry, my mean to say was that one of the child tab is itself a tab activity On Jun 9, 8:20 pm, Dianne Hackborn hack...@android.com wrote: Don't nest activities. Directly use a tab widget to show your tabs, and manually control the content that is shown based on the tab. On Thu, Jun 9, 2011 at 4:53 PM, Manish Garg mannishga...@gmail.com wrote: Sorry I didn't get your point. You said that it is not possible to have more than one level. I had used tab widget only for displaying nested level but facing application crash at the time of displaying dialog from the child activity android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@43ed5c78 is not valid; is your activity running? On Jun 9, 7:39 pm, Dianne Hackborn hack...@android.com wrote: Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com wrote: Is there any other widget available to give the impression like nested tab activity. I was able to create nested tab activity but sometime it get crashed like showing dialog from the child activity of the nested tab activity On Jun 9, 5:22 pm, Dianne Hackborn hack...@android.com wrote: No it is not. There is only one level of nesting of activities. On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg mannishga...@gmail.com wrote: Hi All, I want to implement nested tab activity but getting exception in some cases like at the time of calling dialog.show from the activity of the nested activity and during drawing grid view inside nested activity. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible for TabActivity to have child TabActivity
: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1842) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewRoot.draw(ViewRoot.java:1407) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewRoot.performTraversals(ViewRoot.java:1163) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewRoot.handleMessage(ViewRoot.java:1727) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.os.Handler.dispatchM On Jun 9, 8:20 pm, Dianne Hackborn hack...@android.com wrote: Don't nest activities. Directly use a tab widget to show your tabs, and manually control the content that is shown based on the tab. On Thu, Jun 9, 2011 at 4:53 PM, Manish Garg mannishga...@gmail.com wrote: Sorry I didn't get your point. You said that it is not possible to have more than one level. I had used tab widget only for displaying nested level but facing application crash at the time of displaying dialog from the child activity android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@43ed5c78 is not valid; is your activity running? On Jun 9, 7:39 pm, Dianne Hackborn hack...@android.com wrote: Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com wrote: Is there any other widget available to give the impression like nested tab activity. I was able to create nested tab activity but sometime it get crashed like showing dialog from the child activity of the nested tab activity On Jun 9, 5:22 pm, Dianne Hackborn hack...@android.com wrote: No it is not. There is only one level of nesting of activities. On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg mannishga...@gmail.com wrote: Hi All, I want to implement nested tab activity but getting exception in some cases like at the time of calling dialog.show from the activity of the nested activity and during drawing grid view inside nested activity. Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne
[android-developers] How to return activity result from child tab activity to the calling activity
Hi All, In my application, from one screen, I am calling tab activity. I need to return result of the child activity to the called activity, but at the time of creation of child activity, I am unable to find a way so that child activity returns result. for example A--B here B is tab activity which has two child activity C and D. I have started B using startActivityForResult but D is not returning result to B or to A. Please help me to solve this issue. Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: how to center aligned multiline text
:-(. I dont think it will be good workaround. I need to make my application compatible to different form factor and in case of tablet it is coming in one line. So I can't put new line character. On Apr 22, 3:10 pm, Kostya Vasilyev kmans...@gmail.com wrote: Manish, As far as I can tell, when TextView breaks text into multiple lines, it always takes as much width from the parent view as it can. One possible workaround is to include explicit linesbreaks, \n, into the string. -- Kostya 22.04.2011 22:53, Manish Garg пишет: Hi All, In my application, I am displaying some text in textview on tabs. I have customized tabs view. because of the text length it is wrapping in two line which is fine with me. But this text is getting aligned with the left and no more in center of the tab view. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=@layout/mailbox_tab_bg_state android:gravity=center TextView android:id=@+id/tabTxt android:text=list view android:layout_width=wrap_content android:layout_height=wrap_content android:textColor=@layout/tab_text_color_selector /TextView /LinearLayout I tried to set text view's gravity property as center then text in two line get in center but it wasn't left aligned with respect to each other. I wish that lines should be in center of the tab view and left aligned with themselves. Thanks Regards, Manish Garg -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to center aligned multiline text
Hi All, In my application, I am displaying some text in textview on tabs. I have customized tabs view. because of the text length it is wrapping in two line which is fine with me. But this text is getting aligned with the left and no more in center of the tab view. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=@layout/mailbox_tab_bg_state android:gravity=center TextView android:id=@+id/tabTxt android:text=list view android:layout_width=wrap_content android:layout_height=wrap_content android:textColor=@layout/tab_text_color_selector /TextView /LinearLayout I tried to set text view's gravity property as center then text in two line get in center but it wasn't left aligned with respect to each other. I wish that lines should be in center of the tab view and left aligned with themselves. Thanks Regards, Manish Garg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Running application in Portrait mode on HoneyComb
Hi All, My system has 2GB ram but it becomes unresponsive when I run Table 3.0 emulator. Can someone suggest sd card size, ram and vm setting. On Apr 4, 3:46 pm, Manish Garg mannishga...@gmail.com wrote: Hi, Mh application runs in portrait mode. when i am trying to run application on honeycomb it is coming as up side down. Can some one help me on that. Is there some way to launch emulator directly in the portrait mode. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Running application on Dell Streak emulator
Hi All, I need to run my application on Dell streak, I am not able to find out any emulator to test it. My application is working good on 2.2 emulator but on Dell Streak, application is not occupying complete screen and some portion of the screen is appearing as black. I am not able to reproduce same thing on 2.2 emulator. If someone know any emualtor specific to Dell Streak or some other way to test application for Dell Streak, then please let me know. Thanks Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] java.lang.NoSuchMethodException + Jackson Parser
Hi All, I am using jackson parser to parse my response. I am getting java.lang.NoSuchMethodException exception. I am using ObjectMapper mapper = new ObjectMapper(); output = mapper.readValue(response, classType); code. I want to know where could be the problem, in the class type or some wrong function of the jackson parser has been used. When we face this issue? Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: java.lang.NoSuchMethodException + Jackson Parser
:42:55.562: ERROR/AndroidRuntime(542): at org.codehaus.jackson.map.deser.StdDeserializerProvider._resolveDeserializer(StdDeserializerProvider.java: 336) 04-06 16:42:55.562: ERROR/AndroidRuntime(542): at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerP Please help me to solve this issue. Am I using wrong library of the jackson. Doesn't ObjectMapper provide deserialization. I am also not very sure what deserialization is. When it comes. This code was working fine but after some change at the server side, I am getting this exception. On Apr 6, 10:21 am, Manish Garg mannishga...@gmail.com wrote: Hi All, I am using jackson parser to parse my response. I am getting java.lang.NoSuchMethodException exception. I am using ObjectMapper mapper = new ObjectMapper(); output = mapper.readValue(response, classType); code. I want to know where could be the problem, in the class type or some wrong function of the jackson parser has been used. When we face this issue? Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Deserialization issue in Jackson Parser + java.lang.NoSuchMethodException
16:42:55.562: ERROR/AndroidRuntime(542): at org.codehaus.jackson.map.deser.StdDeserializer.findDeserializer(StdDeserializer.java: 307) 04-06 16:42:55.562: ERROR/AndroidRuntime(542): at org.codehaus.jackson.map.deser.BeanDeserializer.resolve(BeanDeserializer.java: 247) 04-06 16:42:55.562: ERROR/AndroidRuntime(542): at org.codehaus.jackson.map.deser.StdDeserializerProvider._resolveDeserializer(StdDeserializerProvider.java: 336) 04-06 16:42:55.562: ERROR/AndroidRuntime(542): at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerP On Apr 6, 10:21 am, Manish Garg mannishga...@gmail.com wrote: Hi All, I am using jackson parser to parse my response. I am getting java.lang.NoSuchMethodException exception. I am using ObjectMapper mapper = new ObjectMapper(); output = mapper.readValue(response, classType); code. I want to know where could be the problem, in the class type or some wrong function of the jackson parser has been used. When we face this issue? Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Building application based on 2.2 for 3.0
Hi, I had created one application on 2.2. Now my requirement is to run same application on HonyComb but it is not getting build. Do i need to take care something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Running application in Portrait mode on HoneyComb
Hi, Mh application runs in portrait mode. when i am trying to run application on honeycomb it is coming as up side down. Can some one help me on that. Is there some way to launch emulator directly in the portrait mode. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Building application based on 2.2 for 3.0
Hi, I am trying to run my application in the honeycomb which can run only in portrait mode. 1. Strangely screen is rotating as upside down. My application, time, icons everything is upside down. 2. I am not able to find out back key on the emulator. On Apr 4, 1:53 pm, lbendlin l...@bendlin.us wrote: yes, you need to take care of telling us what you tried and where it failed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Under which category Motrola XOOM comes
Hi All, Following are the specification of the Motrola XOOM tablet 10.1-in.; WXGA (1280x 800 pixels; 150 pixels / inch), What does WXGA means is it extra large screen, will it pick images from xdpi folder. 150 pixels/inch: what i had seen is that even ldpi has 160 density then is it comes under ldpi. Sorry for my less knoweldge. Tablet: what need to be taken care of when we are making one application which runs on android phones as well as on tablet. (Both has call functionality) Regards, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Query related to WXGA
Hi, I have a requirement to support WXGA in my android application but I am not sure what WXGA stands for? From which drawable folder it will take images. Is there something specific which I should take care while supporting my application on WXGA. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Difference between Phone and Tablet
Hi, From development point of view, what is the difference in between Phone and tablet. Phone and tablet both has call functionality. Is size is the only thing which we need to take care. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Difference between Phone and Tablet
I have created an application for the 2.2 version, now it needs to be run on one of the tablet. Because of it I need to know what should i check in my application where it may fail. My target tabs, Dell Streak, Samsung galaxy and mortrol XOOM both have call functionality. On Mar 31, 6:16 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 31, 2011 at 6:11 PM, Manish Garg mannishga...@gmail.com wrote: From development point of view, what is the difference in between Phone and tablet. Phone and tablet both has call functionality. Not necessarily. In fact, most tablets will not have call functionality, I suspect. Is size is the only thing which we need to take care. Any device may have any number of capabilities, or not. Those your application requires are hopefully covered by manifest elements like uses-feature or uses-configuration. Thinking of things in terms of Phone and tablet is a waste of time. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reducing resource folder size from apk
Hi All, In my application, we are using lots of images to create UI because of which drawable folder size is quite big. Now to take care of different resoultion, we have three folders for ldpi, hdpi and mdpi (haven't xdpi), which again is increasing its size. I want to know is there any way that application firstly check the resolution of the device and only one folder get copied. Or is there any other suggestion to decrease the apk size. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Managing Out of memory
Thanks Thomas. Is there any benifit of using Runtime.getRuntime().freeMemory() over ActivityManager.MemoryInfo()? MemroyInfo.availMemory also gives free memory size but for the device. On Mar 9, 12:42 pm, Thomas thomasjakw...@gmail.com wrote: you could model this in an algorithmic fashion: check memory if memory is sufficient fetch images if low memory (after image fetch), release previously fetched image(s) check out the java.lang.Runtime class, it has exactly the functions you're looking for (specifically totalMemory() for the device's total memory, and freeMemory() for how much free memory is left) Here it is on the android developer website:http://developer.android.com/reference/java/lang/Runtime.html On Mar 9, 1:06 am, Manish Garg mannishga...@gmail.com wrote: Hi All, I want to check low memory state in my application. In my application i am fetching some iamges from the server and displaying them in the gallery. I am fetching images in batch, not at single time. At the time of low memory, i want to release previously fetched image so that i can store newly fetched images. my approach is to find out available memory, compare it with the threshold memory. If both are equal then release previously fetched images. but size of the threshold is in MB, while i would require only 500kb to 1 MB for new images. Please give me some idea.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Managing Out of memory
I have tried to use following logic ActivityManager activityManager = (ActivityManager)getSystemService(ACTIVITY_SERVICE); MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); activityManager.getMemoryInfo(memoryInfo); long availableMemory = memoryInfo.availMem; long thresholdMemory = memoryInfo.threshold; //creating temporary threshold of 2MB for newly fetched bills long tempAppThresHold = (long)Math.pow(2, 11); if(availableMemory = thresholdMemory + tempAppThresHold) release images else nothing On Mar 9, 12:42 pm, Thomas thomasjakw...@gmail.com wrote: you could model this in an algorithmic fashion: check memory if memory is sufficient fetch images if low memory (after image fetch), release previously fetched image(s) check out the java.lang.Runtime class, it has exactly the functions you're looking for (specifically totalMemory() for the device's total memory, and freeMemory() for how much free memory is left) Here it is on the android developer website:http://developer.android.com/reference/java/lang/Runtime.html On Mar 9, 1:06 am, Manish Garg mannishga...@gmail.com wrote: Hi All, I want to check low memory state in my application. In my application i am fetching some iamges from the server and displaying them in the gallery. I am fetching images in batch, not at single time. At the time of low memory, i want to release previously fetched image so that i can store newly fetched images. my approach is to find out available memory, compare it with the threshold memory. If both are equal then release previously fetched images. but size of the threshold is in MB, while i would require only 500kb to 1 MB for new images. Please give me some idea.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Managing Out of memory
Hi All, I want to check low memory state in my application. In my application i am fetching some iamges from the server and displaying them in the gallery. I am fetching images in batch, not at single time. At the time of low memory, i want to release previously fetched image so that i can store newly fetched images. my approach is to find out available memory, compare it with the threshold memory. If both are equal then release previously fetched images. but size of the threshold is in MB, while i would require only 500kb to 1 MB for new images. Please give me some idea. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Clear calling activity on finish
Kostya, For the opposite activity flow - when the user comes back to the real activity and your code discovers that the session expired, start the login activity and call finish() on the real one. There are more than one activity other than login, so if i am on after login i go to activity A then B then C and now let us say session expire and i finish only C, A and B will be still in stack. So it will not work. On Mar 1, 2:17 pm, Kostya Vasilyev kmans...@gmail.com wrote: Manish, I would guess that in the case where login is needed, after the user logs in, you launch the real activity for doing whatever requires login. When you do that, call finish() on the login activity, so it's not there. For the opposite activity flow - when the user comes back to the real activity and your code discovers that the session expired, start the login activity and call finish() on the real one. -- Kostya 01.03.2011 8:10, Manish Garg пишет: Hi All, any suggestion? On Feb 28, 3:32 pm, Manish Gargmannishga...@gmail.com wrote: Hi, In my application, I want that my first screen which is login page should not come back after pressing back key. I had set noHistory tag for it. but now i have one more task to do, if my session has expired, i want to come back to login page and also clear my stack, i am trying FLAG_ACTIVITY_CLEAR_TOP. To do this I have to remove noHistory tag. Please help me, so that i can achieve both functionality. In normal functioning my application should not be able to traverse back to login page but if session has expired, i want to come back to login page and also clear my stack -- Kostya Vasilyev --http://kmansoft.wordpress.com- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Clear calling activity on finish
Hi, In my application, I want that my first screen which is login page should not come back after pressing back key. I had set noHistory tag for it. but now i have one more task to do, if my session has expired, i want to come back to login page and also clear my stack, i am trying FLAG_ACTIVITY_CLEAR_TOP. To do this I have to remove noHistory tag. Please help me, so that i can achieve both functionality. In normal functioning my application should not be able to traverse back to login page but if session has expired, i want to come back to login page and also clear my stack -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Clear calling activity on finish
Hi All, any suggestion? On Feb 28, 3:32 pm, Manish Garg mannishga...@gmail.com wrote: Hi, In my application, I want that my first screen which is login page should not come back after pressing back key. I had set noHistory tag for it. but now i have one more task to do, if my session has expired, i want to come back to login page and also clear my stack, i am trying FLAG_ACTIVITY_CLEAR_TOP. To do this I have to remove noHistory tag. Please help me, so that i can achieve both functionality. In normal functioning my application should not be able to traverse back to login page but if session has expired, i want to come back to login page and also clear my stack -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calculating list view item height
Hi, I want to set listview height in such a way that it doesn't display scrollbar. for it i am trying to find out listview items height, sum all of the list view items and set them as the height of the listView. My list is like accordian. It will be visible when i will click on a button and will go when clicked at second time. I have put my code to set height in button click listener. But i dont know why first time when i try to calculate listview height, everytime list item size is coming as 191. from second time onward it caluclates it correctly. I have keep my code in button listener because it wasn't giving me correct height. when tried in btn listener, it gives wrong height at first time and after that correct. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Focus is not coming on list in slidingDrawer
Hi, In my application, I have created a tabactivity which contains slidingDrawer to display some dynamic messages. I am using listview for it. now focus is on my child activity when I am clicking on slidingDrawer, it is getting opened but focus is not coming on the list. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Setting filter on List using Text Watcher
Please help. I am not able to find out any solution for this. On Feb 22, 3:08 pm, cool.manish mannishga...@gmail.com wrote: Hi All, I have a ListView, which is having data in the form of HashMapString, String. I am populating the list as SimpleAdapter adapter = new SimpleAdapter(ctx, myData, R.layout.my_layout, keys, ids)); listview.setAdapter(adapter); In my_layout.xml, I have set 2 TextViews(which will be the row of the listview). So the list row will look something like Abc AbcData Xyz XyzData Now, I want to include text filter this list. For this I have impleted TextWatcher, private TextWatcher filterTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count,int after) {} @Override public void onTextChanged(CharSequence s, int start, int before,int count){ adapter.getFilter().filter(s);} @Override public void afterTextChanged(Editable s) {} }; @Override protected void onDestroy() { super.onDestroy(); filterText.removeTextChangedListener(filterTextWatcher); } The filter is working ok. But the problem is I am getting 2 rows for each search. Say if I type 'A' I am getting 2 rows(same content though in the original list there is only one row) Abc AbcData Abc AbcData I assume that it is filtering first on Text1(i.e. Abc) and then on Text2(i.e. AbcData) and hence I am getting two rows. So can anyone advise how should I tackle this problem and get only one row. Thanks in advance, ~Manish. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Changing tab background image
I created some entries in color.xml to create color and then done whatever u have said. in tab_layout xml, i have put android:textcolor=@layout/selector It is giving error 02-23 13:23:11.334: ERROR/AndroidRuntime(7423): Caused by: android.content.res.Resources$NotFoundException: File res/layout/ tab_text_color_selector.xml from color state list resource ID #0x7f030056 02-23 13:23:11.334: ERROR/AndroidRuntime(7423): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #3: item tag requires a 'android:color' attribute. I am not able to understand this error. Please check it. thanks in advance ~Manish On Feb 21, 5:34 pm, Nguyen Dat nguyenda...@gmail.com wrote: Hi cool.manish For custom selector, try this: sample_selector.xml ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@color/black / !-- focused -- item android:state_focused=true android:state_pressed=true android:drawable=@color/black / !-- focused and pressed-- item android:state_pressed=true android:drawable=@color/green / !-- pressed -- item android:drawable=@color/black / !-- default -- /selector Notice that: #android:background was replace by #android:drawable = you can also set color or drawable here Regards, DatNQ On Mon, Feb 21, 2011 at 2:36 PM, cool.manish mannishga...@gmail.com wrote: Thanks Mark. I did that but some time when coming back on this screen(calendar), I want to hightlight one particular date grid cell and i haven't grid cell object with me. because i want to click on based on date and that particular date could be on any cell. I will not be sure about the position. 1. My tab is displaying some text which consuming more than the available space because of it on focused tab text is scrolling. I want to display this text as multiline. Is it possible? [Mark]Use the version of setIndicator() that takes a View and design your own layout for the faces of the tabs. Mark, in this thread you had suggested to use xml for the tab. I am not sure how to maintain the color of textview at the the of selection of a tab. I tried to create xml for state change but textcolor property is not there and using background property giving exception. As i was trying to set it in textcolor property of the textView. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dip android:background=@layout/mailbox_tab_bg_state TextView android:id=@+id/tabTxt android:text=list view android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center android:textColor=@layout/tab_highligh /TextView /LinearLayout selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:state_pressed=false android:background=# / /selector On Feb 18, 6:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Feb 18, 2011 at 12:20 AM, cool.manish mannishga...@gmail.com wrote: as Mark told, we can't apply state change logic in btn. Is there any other way? Just set a new image when the button or whatever is clicked. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.3 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Changing tab background image
done. Actually rather than setting android:drawable it needs android:color property to be set On Feb 23, 2:28 pm, Manish Garg mannishga...@gmail.com wrote: I created some entries in color.xml to create color and then done whatever u have said. in tab_layout xml, i have put android:textcolor=@layout/selector It is giving error 02-23 13:23:11.334: ERROR/AndroidRuntime(7423): Caused by: android.content.res.Resources$NotFoundException: File res/layout/ tab_text_color_selector.xml from color state list resource ID #0x7f030056 02-23 13:23:11.334: ERROR/AndroidRuntime(7423): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #3: item tag requires a 'android:color' attribute. I am not able to understand this error. Please check it. thanks in advance ~Manish On Feb 21, 5:34 pm, Nguyen Dat nguyenda...@gmail.com wrote: Hi cool.manish For custom selector, try this: sample_selector.xml ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@color/black / !-- focused -- item android:state_focused=true android:state_pressed=true android:drawable=@color/black / !-- focused and pressed-- item android:state_pressed=true android:drawable=@color/green / !-- pressed -- item android:drawable=@color/black / !-- default -- /selector Notice that: #android:background was replace by #android:drawable = you can also set color or drawable here Regards, DatNQ On Mon, Feb 21, 2011 at 2:36 PM, cool.manish mannishga...@gmail.com wrote: Thanks Mark. I did that but some time when coming back on this screen(calendar), I want to hightlight one particular date grid cell and i haven't grid cell object with me. because i want to click on based on date and that particular date could be on any cell. I will not be sure about the position. 1. My tab is displaying some text which consuming more than the available space because of it on focused tab text is scrolling. I want to display this text as multiline. Is it possible? [Mark]Use the version of setIndicator() that takes a View and design your own layout for the faces of the tabs. Mark, in this thread you had suggested to use xml for the tab. I am not sure how to maintain the color of textview at the the of selection of a tab. I tried to create xml for state change but textcolor property is not there and using background property giving exception. As i was trying to set it in textcolor property of the textView. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dip android:background=@layout/mailbox_tab_bg_state TextView android:id=@+id/tabTxt android:text=list view android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center android:textColor=@layout/tab_highligh /TextView /LinearLayout selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:state_pressed=false android:background=# / /selector On Feb 18, 6:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Feb 18, 2011 at 12:20 AM, cool.manish mannishga...@gmail.com wrote: as Mark told, we can't apply state change logic in btn. Is there any other way? Just set a new image when the button or whatever is clicked. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.3 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom List layout with checkbox selection problem
if i maintain one arraylist and set and reset particular position in the onclick function, i will be able to get the correct list items which has been checked by the user. but if i scroll list, android will show some of the row items as checked because of ListView recycling problem. I can set and reset checkbox in onClick but it will reduce efficiency of my application. Everytime i have to traverse my list and have to set or reset a checkbox. There should be some other way so that android can take care of it. There is one property choice mode, i am not sure why this property is not working with simpleAdapter. On Feb 23, 8:43 pm, TreKing treking...@gmail.com wrote: On Tue, Feb 22, 2011 at 11:49 PM, cool.manish mannishga...@gmail.comwrote: Even if i maintain it by myself, i have to do same also in the list, for display purpose. I don't know what that means. ----- 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: App crashing with the exception View not attached to Window manager
Yes fernando. My activity is getting created at the time of orientation change. and onPostExecute is getting called after activity is destroyed. progress bar is independent dialog which is getting dismiss at the time of onPostExecute. and if orientation has changed, it is no more attached to the window manager. because of which my app get crashed. Please tell me what shud i mention in the manifest file. And what shud i do in onConfigurationChanged? In my application onCreate is getting called at the time of orientation chnage. Can it be stopped to rereate? what should I take care or implement to stop it. Thanks in advance ~Manish On Feb 24, 12:00 pm, fernando fernandoler...@gmail.com wrote: It seems that your activity is being recreated on orientation changes because this configuration change is not declared on the manifest, and the post execute is called after the activity is destroyed. To check that, put log messages on the onCreate, onConfigurationChanged and onDestroy activity methods (you might need to override those functions and don't forget to call super implementation if so). Those logs along with the exception logging will say if the crash happened after the activity is destroyed and if it's been created multiple times to react to the orientation change. Hope it helps you investigating. Let us know - Fernando On Feb 23, 10:00 pm, TreKing treking...@gmail.com wrote: On Tue, Feb 22, 2011 at 11:58 PM, Manish Garg mannishga...@gmail.comwrote: If user change the orientation at the time of fetching and onPostExecute get called after orientation change, my application is crashing. Try this first.http://www.google.com/search?q=asynctask+orientation+change --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App crashing with the exception View not attached to Window manager
Hi, In my application, I am running custom progress bar at the time of data fetching(data is getting fetched using async task and progress bar is also getting started in the onpreExecute function of the asyncTask which is getting dismissed by onPostExecute) . If user change the orientation at the time of fetching and onPostExecute get called after orientation change, my application is crashing. Problem is this that progress bar is not attached to the window manager. I am not sure how to do that. My queries are: 1. How can i attach progress bar with window manager. 2. How to stop async task at the time of orientation change and how to stop webrequest call, if orientation is getting changed. 3. Whats the life cycle of activity at the time of orientation change. I know that it will again call onCreate but will it call onStop and onDestroy for the previous orientation. 4. What are the steps we should take care for the orientation change. Please 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
[android-developers] Re: Which JSON Parser is better
I used gson and it was working fine but in some cases i got deserialization error or wrong format in case of stroing dates in long and then parsing them. Jackson doesn't give this error and solving my problem. Now I am bit confused which one i should used because size of jackson is more than gson and i do not need all functionality of the jackson. i need only fromJson function of gson or mapper.readValue(response, classType) of jackson. I am also not very sure about the performance of jacson and gson. Jackson looks bit slow. On Dec 29 2010, 1:15 am, Bob Kerns r...@acm.org wrote: I just had a look; if I'm not mistaken, it's not really a streaming parser, but rather the ability to read a SEQUENCE of JSON forms from a stream. This avoids the ordering issue I raised earlier (JSON object fields are unordered), but allows you to process the sequence of JSON forms asynchronously in different threads (which may introduce it's own ordering issues, but at least it's under your control). This may be what you need; for example, you could output a series of JSON forms describing one high score, and loop reading them one at a time. However, it won't let you read some complex JSON structure, parsing it as it reads. Each form read will be fully-parsed in one step, and returned. This seems to me to be about the right compromise for JSON. The big semantic differences between JSON and XML are 1) JSON objects are unordered, and 2) JSON objects are not named (while their fields are). 1) is a headache for anything that mixes processing with reading, as the processing is then unordered as well. 2) is easily worked around by an application, but makes it harder to design a general API to invoke processing, and interacts badly with 1). But if you can recast your big JSON object as a series of smaller objects, each processed one at a time, a GSON does, you get most of the benefit and avoid most of the headaches. On Dec 27, 11:20 am, Rmac ry...@me.com wrote: Check out GSON... in version 1.6 there is a new very small streaming parser.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en