[android-developers] DLNA implementation android
Hi All, How to implement DLNA for android??Is there any SDK or any tutorial?? -- Regards, Vani -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Home button not working as it is supposed to.
Hi All, When i touch the Home button and open my app , my app doesn't open the screen where it closed.How to get this ? For all the actiivties I have given android:noHistory=true and HomeScreen to be android:noHistory=true android:launchMode=singleTask in the manifest. -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android testing
Dear All, What is the best and optimistic way to test Android applications,My android application is too big.How to find a way to get minute bugs in the application.?? -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: progaurd.cfg built apk not working
Hi , Thanks a lot,it really worked..:) On Wed, May 1, 2013 at 7:23 PM, Piren gpi...@gmail.com wrote: remove the curly braces at the end... just this is enough: -keep public class * extends android.app.Application On Wednesday, May 1, 2013 3:40:45 PM UTC+3, vani wrote: Hi All, I have a class which extends android.app.Application. In the progaurd.cfg file I have given -keep public class * extends android.app.Application{*;} -keep public class packagename.application class name -dontwarn packagename.**application class name.** I am able to export the apk successfully but after installing it in device its throwing ClassNotFoundException for application class. How to solve this issue?? -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] progaurd.cfg built apk not working
Hi All, I have a class which extends android.app.Application. In the progaurd.cfg file I have given -keep public class * extends android.app.Application{*;} -keep public class packagename.application class name -dontwarn packagename.application class name.** I am able to export the apk successfully but after installing it in device its throwing ClassNotFoundException for application class. How to solve this issue?? -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers]
Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re:
HI, Nothing else is in the code.It just returns true if the user clicks done or else it returns false.I referred the link which i sent in the previous mail. On Mon, Apr 8, 2013 at 8:08 PM, bob b...@coolfone.comze.com wrote: I would definitely suspect this code: txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i(KeyBoard ,Inside the Edit Text); . } }); What else is in the OnEditorActionListener? Thanks. On Monday, April 8, 2013 9:02:36 AM UTC-5, vani wrote: Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/**questions/7683154/android-** softkeyboard-enter-the-**numeric-value-into-edittext-**very-slowhttp://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re:
HI, I have only put the below code: class DoneOnEditorActionListener implements OnEditorActionListener { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { Log.v(*, Clicked); return true; } return false; }} On Tue, Apr 9, 2013 at 11:14 AM, vani reddy vani.reddy.bl...@gmail.comwrote: HI, Nothing else is in the code.It just returns true if the user clicks done or else it returns false.I referred the link which i sent in the previous mail. On Mon, Apr 8, 2013 at 8:08 PM, bob b...@coolfone.comze.com wrote: I would definitely suspect this code: txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i(KeyBoard ,Inside the Edit Text); . } }); What else is in the OnEditorActionListener? Thanks. On Monday, April 8, 2013 9:02:36 AM UTC-5, vani wrote: Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/**questions/7683154/android-** softkeyboard-enter-the-**numeric-value-into-edittext-**very-slowhttp://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Vani Reddy -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Tabs within tabs fragments overlapping
Hi All, I am using a FragmentActivity(of the compatibility library) and has 3 tabs tab1, tab2, tab3 (all are fragments of compatibility library) tab1 has 3 tabs inside say tab11, tab12, tab13 (all are fragments of compatibility library) i referred this link below to show the tabs http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/ within tab1 when i switch from tab11 to tab12 and tab13, and finally comeback to tab11. In tab11 when i click on an empty space it is detecting button click of tab12 and tab13,though buttons are not visible but it is still taking click. say I have 2 buttons in tab12 i.e 'cancel' and 'submit'. when i touch on any area of tab11 it is doing the action of cancel and submit buttons though these buttons are not visible. Any clue why it is happening?? -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Tabs within tabs fragments overlapping
I am using a FragmentActivity(of the compatibility library) and has 3 tabs tab1, tab2, tab3 (all are fragments of compatibility library) tab1 has 3 tabs inside say tab11, tab12, tab13 (all are fragments of compatibility library) i referred this link below to show the tabs http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/ within tab1 when i switch from fragment1 to fragment2 and fragment3, and finally comeback to fragment1 . In fragment1 when i click on an empty space it is detecting button click of fragment2 and fragment3 though buttons are not visible but it is still taking click. say I have 2 buttons in fragment2 .e 'cancel' and 'submit'. when i touch on any area of fragment1 t is doing the action of cancel and submit buttons though these buttons are not visible. Any clue why it is happening?? On Tue, Mar 12, 2013 at 1:57 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi All, I am using a FragmentActivity(of the compatibility library) and has 3 tabs tab1, tab2, tab3 (all are fragments of compatibility library) tab1 has 3 tabs inside say tab11, tab12, tab13 (all are fragments of compatibility library) i referred this link below to show the tabs http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/ within tab1 when i switch from tab11 to tab12 and tab13, and finally comeback to tab11. In tab11 when i click on an empty space it is detecting button click of tab12 and tab13,though buttons are not visible but it is still taking click. say I have 2 buttons in tab12 i.e 'cancel' and 'submit'. when i touch on any area of tab11 it is doing the action of cancel and submit buttons though these buttons are not visible. Any clue why it is happening?? -- Regards, Vani Reddy -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Tabs within tabs fragments overlapping
Hi All, I followed the same code as in the linkj mentioned and instead of add fragment i am doing replace fragment. On Tue, Mar 12, 2013 at 2:23 PM, vani reddy vani.reddy.bl...@gmail.comwrote: I am using a FragmentActivity(of the compatibility library) and has 3 tabs tab1, tab2, tab3 (all are fragments of compatibility library) tab1 has 3 tabs inside say tab11, tab12, tab13 (all are fragments of compatibility library) i referred this link below to show the tabs http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/ within tab1 when i switch from fragment1 to fragment2 and fragment3, and finally comeback to fragment1 . In fragment1 when i click on an empty space it is detecting button click of fragment2 and fragment3 though buttons are not visible but it is still taking click. say I have 2 buttons in fragment2 .e 'cancel' and 'submit'. when i touch on any area of fragment1 t is doing the action of cancel and submit buttons though these buttons are not visible. Any clue why it is happening?? On Tue, Mar 12, 2013 at 1:57 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi All, I am using a FragmentActivity(of the compatibility library) and has 3 tabs tab1, tab2, tab3 (all are fragments of compatibility library) tab1 has 3 tabs inside say tab11, tab12, tab13 (all are fragments of compatibility library) i referred this link below to show the tabs http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/ within tab1 when i switch from tab11 to tab12 and tab13, and finally comeback to tab11. In tab11 when i click on an empty space it is detecting button click of tab12 and tab13,though buttons are not visible but it is still taking click. say I have 2 buttons in tab12 i.e 'cancel' and 'submit'. when i touch on any area of tab11 it is doing the action of cancel and submit buttons though these buttons are not visible. Any clue why it is happening?? -- Regards, Vani Reddy -- Regards, Vani Reddy -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] make app compatible on 1024*720 px
Hi friends, I have developed an app in a tablet of resolution 1280*752px of 160 dpi, I want to make this application work on a tablet of resolution 1024*720px of 160dpi. I referred the below link http://stackoverflow.com/questions/5633792/android-app-support-for-multiple-tablet-screen-resolutions and I created 2 layout folders. Can you please tell me how am I supposed to go ahead with this. since deadlines are nearing. -- Regards, Vani Reddy -- 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] Sliding images from right to left and then left to right.
HI friends, I want to slide the images from right to left and stay for some time and then left to right. I used translate animation. Below is my code: int drawableImages[] = { R.drawable.img1, R.drawable.img2, R.drawable.img3, R.drawable.img4, R.drawable.img5, R.drawable.img6, R.drawable.img7 }; imgView = (ImageView) findViewById(R.id.picMain11); imgView.postDelayed(new Runnable() { public void run() { Animation anim = new TranslateAnimation(0, -500, 0, 0); imgView.setImageResource(R.drawable.img6); anim.setDuration(2000); anim.setFillAfter(true); imgView.startAnimation(anim); anim.setAnimationListener(new ImageAnimListener()); } }, 2000); private class ImageAnimListener implements AnimationListener { int z = 0; Animation anim=null; public void onAnimationEnd(Animation animation) { anim = new TranslateAnimation(800, -1000, 0, 0); imgView.setImageResource(drawableImages[z]); anim.setDuration(5000); imgView.startAnimation(anim); anim.setFillAfter(true); anim.setRepeatMode(1); anim.setAnimationListener(ImageAnimListener.this); } public void onAnimationRepeat(Animation animation) { } public void onAnimationStart(Animation animation) { System.out.println(ANIMATION START ); z++; if(z==drawableImages.length-1) z=0; } } The problem is after sliding from right to left image is not staying for some time and then before the next image comes there is a black screen in between.. How to solve this?Is there any better way to do this? Please respond with clues. -- Thanks, Vani Reddy -- 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] sldiing images like in 'Currents' app
Hi friends, I want to slide the images from right to left and stay for some time and then left to right. Exactly like how it is in the 'Currents' app in android market. Please reply with any clues -- Regards, Vani Reddy -- 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] getSherlockActivity throwing Nullpointer Exception
HI friends, I am using Sherlock library for android progressDisplay = new LoadingDialog(); progressDisplay.setCancelable(false); progressDisplay.show(getSherlockActivity().getSupportFragmentManager(), LoadingDialog); LoadingDialog is the class which extends SherlockDialogFragment. When i click on home button and close it, and again relaunch it on long press of home press app is force closing in the below line: progressDisplay.show(getSherlockActivity().getSupportFragmentManager(), LoadingDialog); Any clues why it is happeneing?? Please give me ideas how to solve it. -- Regards, Vani Reddy -- 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] multiple instances of activity created
Hi All, I am starting activities from A-B-C in acttivity C i am creating a notification , when i click on the notification it opens A, but I want to open activity C. On back press from A it goes to C. I t shows there are mulitple instances of A created.A is the MAIN launcher activity How to avoid this situation? PowerManager pm = (PowerManager) context .getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock( PowerManager.PARTIAL_WAKE_LOCK, My Tag); wl.acquire(); try { Intent tintent = new Intent(); Bundle bundle = intent.getExtras(); AlarmItem alarm = (AlarmItem) bundle.getSerializable(alarm); String message = bundle.getString(alarm_message); long when =Long.parseLong(alarm.getShow().getStart().getSec())*1000; //long when = 1; tintent.putExtra(alarm_message, message); tintent.putExtra(isAlarm, true); tintent.putExtra(alarm, bundle.getSerializable(alarm)); final ActivityManager am =(ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); final ListRecentTaskInfo recentTaskInfos = am.getRecentTasks(1024,0); String myPkgNm = context.getPackageName(); if(!recentTaskInfos.isEmpty()) { RecentTaskInfo recentTaskInfo; final int size = recentTaskInfos.size(); for(int i=0;isize;i++) { recentTaskInfo = recentTaskInfos.get(i); if(recentTaskInfo.baseIntent.getComponent().getPackageName() .equals(myPkgNm)) { tintent = recentTaskInfo.baseIntent; tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); } } } PendingIntent pIntent = PendingIntent.getActivity(context, alarm.getId(), tintent,0); RemoteViews v = new RemoteViews(com.android, R.layout.notificationview); v.setTextViewText(R.id.notificationTitle, Reminder: + titleMessageToDisplay); v.setTextViewText(R.id.notificationContent, textMessageToDisplay); Bitmap image = Utility.getImageForAssets(context, alarm.getShow() .getIcon(), 2); if (image != null) v.setImageViewBitmap(R.id.showImage, image); Notification noti = new NotificationCompat.Builder(context) // .setContentTitle(Show Reminder) // .setContentInfo(messageToDisplay) // .setTicker(messageToDisplay) .setWhen(when) .setSmallIcon(R.drawable.notify) .setContentIntent(pIntent) .setContent(v) .setNumber(1) .setVibrate( new long[] { 100, 200, 200 }) .setSound( RingtoneManager .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)) .getNotification(); // noti.flags |= Notification.FLAG_AUTO_CANCEL; noti.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_NO_CLEAR; noti.setLatestEventInfo(context, some Title, some text, pIntent); NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(alarm.getId(), noti); // Now that the notification has triggered, we can remove this from // the reminder list ReminderAlarmManager rm = new ReminderAlarmManager(context); rm.removeAlarm(alarm.getShow(), alarm.getId()); } catch (Exception e) { e.printStackTrace(); } finally { wl.release(); } in the manifest I have given android:allowTaskReparenting=true android:launchMode=singleTop|singleInstance for the main activity. Please reply. -- Regards, Vani Reddy -- 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] Drag and drop list items
HI friends, I am doing the drag annd drop of list view items., I checked the TouchedInterceptor.java but i dont know how to use it. Please post some code snippets. -- Regards, Vani Reddy -- 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] payment gateway for android India
Hi friends, I am implementing payment gateway for android , I found this http://developer.authorize.net/integration/fifteenminutes/android/, but this is in USD but I need in Indian Rupees. -- Regards, Vani Reddy -- 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] download images from server and populate it in listrview
Hi friends, How to download images from server and store it in cache and next time i can reload from cache and populate it in listview?? -- Regards, Vani Reddy -- 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 row button click
HI, I have a listview which has a button in each row of listview,What I am doing is on click of 2 nd row button I am disabling it, after scrolling the listview whe i come back to 2nd row of listview , even buttons in the 3rd and 4th row are also disabled, though i did not disable them. How to overcome this problem?? -- Regards, Vani Reddy -- 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] edittext focus in tablerow
Hi, I have a tableRow which i am showing in a dialog which has 5 components aligned like this: EditText1 Spinner1 EditText2 Spinner2EditText3 Button. By default cursor is focused on EditText1 ,I want to make it focus on EditText2 . How to acheive this??? -- Thanks, Vani Reddy -- 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] fragments transactions
Hi friends Can we use the setResult(Bundle b,int requestCode) and OnActivityResult() of activity , to pass result between two fragments. Or is there any methods of such kind in fragments. I checked the setTargetFragmenthttp://developer.android.com/reference/android/app/Fragment.html#setTargetFragment(android.app.Fragment, int)(Fragmenthttp://developer.android.com/reference/android/app/Fragment.html fragment, int requestCode) of fragment, but I did not understand how to use it. Any clues..:) -- Regards, Vani Reddy -- 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] copying DB file from assets to data/data/package throwing exception
HI, while copying the DB file from assets to the data/data folder it is throwing the below error message 07-12 16:10:25.934: E/SqliteDatabaseCpp(9002): sqlite3_open_v2(/data/data/your.spurtree.AlmanacSQLiteDatabaseAdapter/databases/tarnea_device.db, handle, 1, NULL) failed 07-12 16:10:25.954: E/SQLiteDatabase(9002): Failed to open the database. closing it. 07-12 16:10:25.954: E/SQLiteDatabase(9002): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:983) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:956) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:932) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.checkDatabase(AlmanacSQLiteDatabaseAdapter.java:217) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.initialize(AlmanacSQLiteDatabaseAdapter.java:70) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.getInstance(AlmanacSQLiteDatabaseAdapter.java:102) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacActivity$1.onClick(AlmanacActivity.java:43) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.view.View.performClick(View.java:3110) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.view.View$PerformClick.run(View.java:11934) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.os.Handler.handleCallback(Handler.java:587) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.os.Handler.dispatchMessage(Handler.java:92) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.os.Looper.loop(Looper.java:132) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at android.app.ActivityThread.main(ActivityThread.java:4123) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at java.lang.reflect.Method.invokeNative(Native Method) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at java.lang.reflect.Method.invoke(Method.java:491) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 07-12 16:10:25.954: E/SQLiteDatabase(9002): at dalvik.system.NativeStart.main(Native Method) The above error is thrown on call of : SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); but database is successfully copying. I referred the below link http://code.google.com/p/almanac/source/browse/trunk/Almanac/src/it/almanac/AlmanacSQLiteDatabaseAdapter.java?r=56 How to resolve this ,Please reply :) -- Regards, Vani Reddy -- 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] Spinner show on click of button
Hi friends, How to open spinner on click of a button. I tried Spinner spinner =new Spinner(this); ArrayAdapterString packSizeAdapter = new ArrayAdapterString( activity, R.layout.spinner_item, productUOMS); packSizeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner .setAdapter(packSizeAdapter); Button btn=new Button(this); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { spinner .performClick(); } }); It is not working at all ,Is there anyting i am missing..Please reply -- Regards, Vani Reddy -- 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] Spinner show on click of button
Hi yes I am adding the Button to the view,but i am not adding the spinner to the view On Thu, Jun 21, 2012 at 7:34 PM, Justin Anderson magouyaw...@gmail.comwrote: spinner.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub int selectedPosition = spinner.getSelectedItemPosition(); /* * get the category name in which the reason is selected into * the application */ } try it . it wor perfectly This is not what the OP is asking... This will help for getting the selected item once the user has chosen an item. He is asking how to make the spinner show the list of options programatically... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jun 21, 2012 at 7:38 AM, Aashish jawla aashishja...@gmail.comwrote: spinner.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub int selectedPosition = spinner.getSelectedItemPosition(); /* * get the category name in which the reason is selected into * the application */ } try it . it wor perfectly On Thu, Jun 21, 2012 at 5:05 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, How to open spinner on click of a button. I tried Spinner spinner =new Spinner(this); ArrayAdapterString packSizeAdapter = new ArrayAdapterString( activity, R.layout.spinner_item, productUOMS); packSizeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner .setAdapter(packSizeAdapter); Button btn=new Button(this); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { spinner .performClick(); } }); It is not working at all ,Is there anyting i am missing..Please reply -- Regards, Vani Reddy -- 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 -- - Thanks Regards Er.Aashish Kumar Jawla (09555865084/09910783591) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] notifydataset changed not working for listview
HI friends. I have listview of 4 items, each row has a remove, when i click on it, the particular listview row is removed. After removing 3 items, when i remove the fourth item it is not getting removed. Below is my getView method @Override public View getView(final int position, View convertView, ViewGroup parent) { final ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.invoice_row, null); holder = new ViewHolder(); holder.remove = (ImageView) convertView .findViewById(R.id.remove); holder.productName = (TextView) convertView .findViewById(R.id.txt_name); holder.brand = (TextView) convertView .findViewById(R.id.txt_brand); holder.category = (TextView) convertView .findViewById(R.id.txt_category); holder.rate = (TextView) convertView.findViewById(R.id.rate); holder.quantity = (TextView) convertView .findViewById(R.id.quantity); holder.amount = (TextView) convertView .findViewById(R.id.amount); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } final View convertViewL = convertView; if (position == this.getCount() - 1) { holder.remove.setVisibility(View.INVISIBLE); holder.productName.setText(); holder.quantity.setText( + totalQty); holder.quantity.setTextColor(Color.BLACK); holder.amount.setText(df.format(totalPriceWithVat)); holder.category.setText(Total); holder.rate.setTextColor(Color.BLACK); holder.brand.setText(); holder.rate.setText(); convertViewL.setBackgroundResource(R.drawable.total_row); } else if (position == this.getCount() - 2) { holder.remove.setVisibility(View.INVISIBLE); holder.rate.setTextColor(R.color.half_white); holder.rate.setText(VAT@ ); holder.amount.setText(df.format(vatRate)); holder.quantity.setText(12.5%); holder.productName.setText(); holder.category.setText(); holder.brand.setText(); convertViewL.setBackgroundColor(R.color.dark_ash); } else { holder.rate.setTextColor(Color.BLACK); holder.remove.setVisibility(View.VISIBLE); holder.productName .setText(arlSellItems.get(position).getName()); holder.brand.setText(arlSellItems.get(position).getBrand()); holder.category.setText(arlSellItems.get(position) .getCategory()); holder.rate.setText(df.format(arlSellItems.get(position) .getPriceValue())); holder.quantity.setText( + arlSellItems.get(position).getUserQty()); holder.amount.setText(df.format(arlSellItems.get(position) .getUnitListPriceValue())); int colorPosition = position % bgColors.length; convertView.setBackgroundResource(bgColors[colorPosition]); holder.remove.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { System.out.println(POSITION +position); AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setMessage(Are you sure you want to remove this Item?) .setCancelable(false) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { arlSellItems.remove(position); System.out.println(SIZE +arlSellItems.size()); singletonInstance.setArlSellItems(arlSellItems); setUpdatedInfo(arlSellItems); notifyDataSetChanged(); dialog.cancel(); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.show(); } }); } return convertViewL; } public void setUpdatedInfo(ListSellItem arlSelectedItems) { arlSellItems = arlSelectedItems; totalQty = 0; totalPrice = 0; vatRate = 0; } How to resolve this -- Regards, Vani Reddy -- 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] OnItemClick not detected in listview inside customdialog
Hi friends,, In my custom dialog i have a Listview , on which i am invoking OnItemClickListener() but it is not detecting.. What can be the problem -- Regards, Vani Reddy -- 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] OnItemClick not detected in listview inside customdialog
here it is..This is the adapter class and in it there is a click on holder.productName where i am displaying the dialog.. public class SelectedItemsAdapter extends BaseAdapter { private LayoutInflater mInflater; private ListPurchaseOrderItem arlItems; int totalQty; float totalPrice; Activity activity; private final int[] bgColors = new int[] { R.drawable.row1_bg, R.drawable.row2_bg }; public SelectedItemsAdapter(Activity a, ListPurchaseOrderItem arlSelectedItems) { this.arlItems = arlSelectedItems; activity = a; mInflater = LayoutInflater.from(activity.getApplicationContext()); for (PurchaseOrderItem sellItem : arlItems) { totalQty = totalQty + sellItem.getUserQty(); totalPrice = totalPrice + sellItem.getUnitListPriceValue(); } } @Override public int getCount() { int count = 0; if (arlItems == null) count = 0; else count = arlItems.size(); return count; } @Override public Object getItem(int position) { return position; } @Override public long getItemId(int position) { return position; } @Override public View getView(final int position, View convertView, ViewGroup parent) { final ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.order_row_right, null); holder = new ViewHolder(); holder.check = (CheckBox) convertView .findViewById(R.id.check_box); holder.productName = (TextView) convertView .findViewById(R.id.name); holder.quantity = (TextView) convertView .findViewById(R.id.brand); holder.category = (TextView) convertView .findViewById(R.id.category); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } final View convertViewL = convertView; holder.check.setVisibility(View.VISIBLE); holder.productName.setText(arlItems.get(position).getName()); holder.category.setText(arlItems.get(position).getSupplierName()); holder.check.setTag(position); int colorPosition = position % bgColors.length; convertView.setBackgroundResource(bgColors[colorPosition]); // final View convertViewL = convertView; holder.productName.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final Dialog dialog = new Dialog(activity); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.select_customer_dialog); dialog.setCancelable(true); Button cancel = (Button) dialog.findViewById(R.id.cancel); ImageView close = (ImageView) dialog .findViewById(R.id.close); TextView detail = (TextView) dialog .findViewById(R.id.detail); detail.setText(Suppliers Offering + arlSelectedItems.get(position).getOrderItem() .getProduct().getName()); final ListView customerList = (ListView) dialog .findViewById(R.id.customerList); customerList .setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { System.out.println(list ID CLICKED ); dialog.dismiss(); } }); customerList.setAdapter(new CustomerDialogAdapter(activity, productRoleList, productPriceList)); dialog.show(); } }); return convertViewL; } class ViewHolder { CheckBox check; TextView productName, quantity, category; } } -- 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.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] get image from gallery and set in fragment
Hi friends, I need to access gallery and select an image from gallery and after selecting image i need to come back to my fragment. But after selecting image from gallery my application is closing.(But no force close). I used the following code to open gallery. Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null); intent.setType(image/*); intent.putExtra(return-data, true); startActivityForResult(intent, 1); how to resolve this?? -- Regards, Vani Reddy -- 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] Fwd: Checkbox click fires OnlistItemclick in Custom listview android
-- Forwarded message -- From: vani reddy vani.reddy.bl...@gmail.com Date: Wed, Apr 18, 2012 at 6:59 PM Subject: Checkbox click fires OnlistItemclick in Custom listview android To: android-developers@googlegroups.com HI, In my custom listview i have checkbox and 3 textviews, The problem is when i click on checkbox the onlistItem click is fired which i dont want, i want checkbox state to change when i click on checkbox and and when i click outside the checkbox i want the onlistItemclick to be fired.How to acheive this. I searched a lot but did not find any solution.Please reply :) -- Regards, Vani Reddy -- Regards, Vani Reddy -- 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] Drag and drop issue
Hi friends,, I am doing drag and drop application i am able to drag the view but when i drop the view i am getting the below exception 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): java.lang.IllegalArgumentException: Given view not a child of com.xyz.drag.DragLayer@40f50340 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.updateViewLayout(ViewGroup.java:2835) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.xyz.drag.DragLayer.onDrop(DragLayer.java:140) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.xyz.drag.DragController.drop(DragController.java:450) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.xyz.drag.DragController.onTouchEvent(DragController.java:428) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.xyz.drag.DragLayer.onTouchEvent(DragLayer.java:68) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.View.dispatchTouchEvent(View.java:4600) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1488) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1256) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1494) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1269) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1700) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1270) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.app.Activity.dispatchTouchEvent(Activity.java:2277) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1680) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2272) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.view.ViewRoot.handleMessage(ViewRoot.java:1958) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.os.Handler.dispatchMessage(Handler.java:99) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.os.Looper.loop(Looper.java:126) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at android.app.ActivityThread.main(ActivityThread.java:3997) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at java.lang.reflect.Method.invokeNative(Native Method) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at java.lang.reflect.Method.invoke(Method.java:491) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): at dalvik.system.NativeStart.main(Native Method) -- Regards, Vani Reddy -- 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] Drag and drop issue
no i have given all permissions On Wed, Apr 18, 2012 at 1:19 PM, asheesh arya asheesharya...@gmail.comwrote: may be you missing some permission in your manifest file. -- 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 -- Regards, Vani Reddy -- 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] Checkbox click fires OnlistItemclick in Custom listview android
HI, In my custom listview i have checkbox and 3 textviews, The problem is when i click on checkbox the onlistItem click is fired which i dont want, i want checkbox state to change when i click on checkbox and and when i click outside the checkbox i want the onlistItemclick to be fired.How to acheive this. I searched a lot but did not find any solution. -- Regards, Vani Reddy -- 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] Switching views
HI friends, In my Layout I have 2 views in which i have to keep switching . On click of a button a particular gridview1 has to be shown and the other gridview(2) next to it has to be partially hidden. Wheni click on the other button gridview1 has to be partially hidden and gridview2 has to be shown . How to acheive this?? Please reply with any clues or any links -- Regards, Vani Reddy -- 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] push notification opened and multiple instances of activity created
Hi friends, In my MainActivity (extends TabActivity) has 5 tabs. suppose i am in 2nd tab and i receive a push notification,without closing the app i open the notification it switches to 3rd tab,when i press back, i show a dialog saying 'Are you sure you want to exit' when i say YES it goes to the third tab. but I want to exit the app. How to acheive this.In the manifest I have declared as activity android:name=.MainActivity android:launchMode=singleTask android:alwaysRetainTaskState=true android:screenOrientation=portrait android:theme=@style/MyTheme android:windowSoftInputMode=stateAlwaysHidden / Below is the onReceive method of IntentReceiver @Override public void onReceive(Context arg0, Intent aIntent) { String action = aIntent.getAction(); if (action.equals(PushManager.ACTION_NOTIFICATION_OPENED)) { // user opened the notification so we launch the application // This intent is what will be used to launch the activity in our // application Intent lLaunch = new Intent(Intent.ACTION_MAIN); // Main.class can be substituted any activity in your android // project that you wish // to be launched when the user selects the notification from the // Notifications drop down lLaunch.setClass(UAirship.shared().getApplicationContext(), MainActivity.class); lLaunch.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); UAirship.shared().getApplicationContext().startActivity(lLaunch); } else if (action.equals(PushManager.ACTION_PUSH_RECEIVED)) { // push notification received, perhaps store it in a db } } Please tell me what I am supposed to do and where I am going wrong. -- Regards, Vani Reddy -- 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] video not playing in mdpi devices..
HI friends, I have a video in mp4 format its playing in hdpi devices but not in mdpi devices? How to resolve this -- Regards, Vani Reddy -- 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 check the kind of push notification
Hi friends, I have implemented push notification using urban airship,now when i receive a notification i am able to open the app, But my requirement is to check what kind of notification and open the appropriate activity of the app. How to acheive this ??? Please reply its too urgent.. -- Thanks , Vani -- 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] Back button not working properly after coming out of Tabactivity
Hi friends, Under a particular tab of the tabactivity ,there are 2 activities. A and then B.From the menu of B activity when i press Logout it goes to Login screen,which is outside the tabactivity.On back button press of login screen it goes back to the Activity B.Though i have given @Override public void onBackPressed() { // TODO Auto-generated method stub super.onBackPressed(); System.out.println(INSIDE ONBACK PRESSED ); android.os.Process.killProcess(android.os.Process.myPid()); } in the Login Screen. How to resolve this issue. -- Regards, Vani Reddy -- 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] Urbanship airship problem
Hi friends, I am using Urbanairship for push notifications. I am getting the following exception Unable to start receiver com.testdemo.android.IntentReceiver: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? and the below is the onReceive of IntentReceiver @Override public void onReceive(Context arg0, Intent aIntent) { String action = aIntent.getAction(); if (action.equals(PushManager.ACTION_NOTIFICATION_OPENED)) { // user opened the notification so we launch the application // This intent is what will be used to launch the activity in our // application Intent lLaunch = new Intent(Intent.ACTION_MAIN); // Main.class can be substituted any activity in your android // project that you wish // to be launched when the user selects the notification from the // Notifications drop down lLaunch.setClass(UAirship.shared().getApplicationContext(), HomeScreen.class); lLaunch.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); // copy the intent data from the incoming intent to the intent // that we are going to launch // copyIntentData(aIntent, lLaunch); UAirship.shared().getApplicationContext().startActivity(lLaunch); } else if (action.equals(PushManager.ACTION_PUSH_RECEIVED)) { // push notification received, perhaps store it in a db } } -- Regards, Vani Reddy -- 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] Fwd: Urbanship airship problem
Hi friends, I am using Urbanairship for push notifications. I am getting the following exception Unable to start receiver com.testdemo.android.IntentReceiver: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? and the below is the onReceive of IntentReceiver @Override public void onReceive(Context arg0, Intent aIntent) { String action = aIntent.getAction(); if (action.equals(PushManager.ACTION_NOTIFICATION_OPENED)) { // user opened the notification so we launch the application // This intent is what will be used to launch the activity in our // application Intent lLaunch = new Intent(Intent.ACTION_MAIN); // Main.class can be substituted any activity in your android // project that you wish // to be launched when the user selects the notification from the // Notifications drop down lLaunch.setClass(UAirship.shared().getApplicationContext(), HomeScreen.class); lLaunch.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); // copy the intent data from the incoming intent to the intent // that we are going to launch // copyIntentData(aIntent, lLaunch); UAirship.shared().getApplicationContext().startActivity(lLaunch); } else if (action.equals(PushManager.ACTION_PUSH_RECEIVED)) { // push notification received, perhaps store it in a db } } Please reply -- -- Regards, Vani Reddy -- 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] Json parsing problem using gson
Hi friends, I am using GSON to parse the json, when some user logs in, it parses properly but when someother user logs in it throws NumberFormatException. I checked the JSON response also, its a valid JSON How to debug this app. -- Regards, Vani Reddy -- 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] back button in Tabactivity going to previous activity rather than dismissing the soft keyboard
HI friends, Under my tabactivity in the activity group ,i have an edittext , when i touch on it the soft keyboard appears,but when i press back button, the keyboard dismisses but it goes to the previous activity.It is happening in HTC mobile,in emulator it works fine. How to resolve this? -- Regards, Vani Reddy -- 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] onActivityResult never invoked under tab activity
I added that ,but still it is not working.In normal activites it works ,but under Tabactivity it doesnt work. On Thu, Mar 1, 2012 at 1:27 PM, MOHANAKRISHNAN remokri...@gmail.com wrote: main.xml file: ?xml version=”1.0” encoding=”utf-8”? LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” TextView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”Please enter your name” / EditText android:id=”@+id/txt_username” android:layout_width=”fill_parent” android:layout_height=”wrap_content” / Button android:id=”@+id/btn_OK” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”OK” / /LinearLayout 2. Add the following statements in bold to Activity2.java: package net.learn2develop.Activities; import android.app.Activity; import android.os.Bundle; import android.content.Intent; import android.net.Uri; import android.view.View; import android.widget.Button; import android.widget.EditText; public class Activity2 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //---get the OK button--- Button btn = (Button) findViewById(R.id.btn_OK); //---event handler for the OK button--- btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Intent data = new Intent(); //---get the EditText view--- EditText txt_username = (EditText) findViewById(R.id.txt_username); //---set the data to pass back--- data.setData(Uri.parse( txt_username.getText().toString())); setResult(RESULT_OK, data); //---closes the activity--- finish(); } }); } } 3. Add the following statements in bold to the MainActivity.java file: package net.learn2develop.Activities; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.Window; import android.view.KeyEvent; import android.widget.Toast; import android.content.Intent; public class MainActivity extends Activity { String tag = “Events”; int request_Code = 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //---hides the title bar--- //requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); Log.d(tag, “In the onCreate() event”); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { //startActivity(new Intent(“net.learn2develop.ACTIVITY2”)); //startActivity(new Intent(this, Activity2.class)); startActivityForResult(new Intent( “net.learn2develop.ACTIVITY2”), request_Code); } return false; } public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == request_Code) { if (resultCode == RESULT_OK) { Toast.makeText(this,data.getData().toString(), Toast.LENGTH_SHORT).show(); } } } public void onStart() { //... } public void onRestart() { //... } public void onResume() { //... } public void onPause() { //... } public void onStop() { //... } public void onDestroy() { //... } } -- 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 -- Regards, Vani Reddy -- 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] switching views
Hey, I dont want to show multiple activities in a screen i want to show multiple views in a single activity On Tue, Feb 28, 2012 at 11:39 AM, abhijeet tomar abhijeet...@gmail.comwrote: Hi...you have to try TabHost it is a better option for show multiple activities in one screen or as your requirementall the best -- 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 -- Regards, Vani Reddy -- 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] switching views
Hey Treking, I am developing apps for api level 10 onwards.How can I use Fragments in 2.3.5?? On Wed, Feb 29, 2012 at 6:41 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hey, I dont want to show multiple activities in a screen i want to show multiple views in a single activity On Tue, Feb 28, 2012 at 11:39 AM, abhijeet tomar abhijeet...@gmail.comwrote: Hi...you have to try TabHost it is a better option for show multiple activities in one screen or as your requirementall the best -- 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 -- Regards, Vani Reddy -- Regards, Vani Reddy -- 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] switching views using viewflipper
Hi , In the attached snapshot , i need to create that kind of view in viewfilpper , and need to switch views using viewflipper. How to acheive that? -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: device-2012-02-29-190755.png
[android-developers] onActivityResult never invoked under tab activity
Hi friends,, In my tabactiviy i am doing a startActivityForResult from ActivityA which is under activity group to a new class ActivityB which is not under Tabactivity, From ActivityB when i do setResult(RESULT_OK,intent); finish(); onActivityResult is never invoked in ActivityA. It is not working. I referred this link but did not understand much . http://stackoverflow.com/questions/2497205/how-to-return-a-result-startactivityforresult-from-a-tabhost-activity -- Regards, Vani Reddy -- 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] onActivityResult never invoked under tab activity
yes i have given the request code On Thu, Mar 1, 2012 at 1:13 PM, MOHANAKRISHNAN remokri...@gmail.com wrote: import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.Window; import android.view.KeyEvent; import android.widget.Toast; import android.content.Intent; public class MainActivity extends Activity { String tag = “Events”; int request_Code = 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //---hides the title bar--- //requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); Log.d(tag, “In the onCreate() event”); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { //startActivity(new Intent(“net.learn2develop.ACTIVITY2”)); //startActivity(new Intent(this, Activity2.class)); startActivityForResult(new Intent( “net.learn2develop.ACTIVITY2”), request_Code); } return false; } public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == request_Code) { if (resultCode == RESULT_OK) { Toast.makeText(this,data.getData().toString(), Toast.LENGTH_SHORT).show(); } } } activity 2 public class Activity2 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //---get the OK button--- Button btn = (Button) findViewById(R.id.btn_OK); //---event handler for the OK button--- btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Intent data = new Intent(); //---get the EditText view--- EditText txt_username = (EditText) findViewById(R.id.txt_username); //---set the data to pass back--- data.setData(Uri.parse( txt_username.getText().toString())); setResult(RESULT_OK, data); //---closes the activity--- finish(); } }); } } -- 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 -- Regards, Vani Reddy -- 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] onActivityResult never invoked under tab activity
no On Thu, Mar 1, 2012 at 1:19 PM, MOHANAKRISHNAN remokri...@gmail.com wrote: is it working now? On Thu, Mar 1, 2012 at 1:17 PM, vani reddy vani.reddy.bl...@gmail.com wrote: yes i have given the request code On Thu, Mar 1, 2012 at 1:13 PM, MOHANAKRISHNAN remokri...@gmail.com wrote: import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.Window; import android.view.KeyEvent; import android.widget.Toast; import android.content.Intent; public class MainActivity extends Activity { String tag = “Events”; int request_Code = 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //---hides the title bar--- //requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); Log.d(tag, “In the onCreate() event”); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { //startActivity(new Intent(“net.learn2develop.ACTIVITY2”)); //startActivity(new Intent(this, Activity2.class)); startActivityForResult(new Intent( “net.learn2develop.ACTIVITY2”), request_Code); } return false; } public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == request_Code) { if (resultCode == RESULT_OK) { Toast.makeText(this,data.getData().toString(), Toast.LENGTH_SHORT).show(); } } } activity 2 public class Activity2 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //---get the OK button--- Button btn = (Button) findViewById(R.id.btn_OK); //---event handler for the OK button--- btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Intent data = new Intent(); //---get the EditText view--- EditText txt_username = (EditText) findViewById(R.id.txt_username); //---set the data to pass back--- data.setData(Uri.parse( txt_username.getText().toString())); setResult(RESULT_OK, data); //---closes the activity--- finish(); } }); } } -- 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 -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] switching views
No . I want to do in phone. On Mon, Feb 27, 2012 at 4:34 PM, nageswara rao rajana nagu.raj...@gmail.com wrote: try fragments... On Mon, Feb 27, 2012 at 4:26 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, How to create switching views in android in the same activity ,like the attached snapshot of iPad..Please give any clue or any links which will help me to proceed further. Thaanks -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] back button not working in first activity of TabGroupActivity
Hi friends, In my tabactivity i am using TabGroupActivity to switch between multiple activities under a tab, I referred this link http://united-coders.com/nico-heid/use-android-activitygroup-within-tabhost-to-show-different-activity From the first activity i.e OptionsActivity when i press back its not working. But from other activities its working. In options activity on touch of a button its working, but on back button not working. -- Regards, Vani Reddy -- 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] getView called many times when the count is 1
Hi friends, In my lazyadapter of listview in the getView() i am calling a webservice to fetch a name, when the count is 1 , it is calling the webservice multiple times from getview. Why it is happening like that? How to resolve that Please reply ., -- Regards, Vani Reddy -- 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: getView called many times when the count is 1
Hey Check, @Override public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.commentitem, null); holder = new ViewHolder(); holder.fbName = (TextView) convertView .findViewById(R.id.reviewText); holder.fbName.setTypeface(fontObj_rockwell); holder.fbImage = (ImageView) convertView.findViewById(R.id.fbImage); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } String profileFBURL = http://graph.facebook.com/; + m_Show.getFbids_watching().get(position) + /picture; // Utility.setImageToImageView(profileFBURL, holder.fbImage); holder.fbImage.setImageBitmap(model.getRoundedImage(profileFBURL, profileFBURL, 10)); try { FriendInfo frndInfo = FacebookFriendAPIHandler .getFacebookFriendInfo(m_Show.getFbids_watching().get( position)); holder.fbName.setText(frndInfo.getName()); } catch (Exception e) { e.printStackTrace(); } convertView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent =new Intent(activity,UserProfileActivity.class); Bundle bundle =new Bundle(); bundle.putString(fbID,String.valueOf(m_Show.getFbids_watching().get(position))); bundle.putString(class, wall); intent.putExtras(bundle); View view1 = WallGroup.group .getLocalActivityManager() .startActivity( UserProfileActivity, intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); // Again, replace the view WallGroup.group.replaceView(view1); } }); return convertView; } -- Regards, Vani Reddy -- 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: getView called many times when the count is 1
hi, ok but for a count of 1 the getview is called almost 10 times.How to avoid this?? On Fri, Feb 24, 2012 at 6:42 PM, luciofm luci...@gmail.com wrote: First of all, you should never do I/O (disk, networking) operations on getView() or your scrolling will be very sluggish, since they will run on the UI Thread an will block the scrolling until the request is fulfilled. Lúcio Maciel luci...@gmail.com On Fri, Feb 24, 2012 at 10:19, vani reddy vani.reddy.bl...@gmail.comwrote: Hey Check, @Override public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.commentitem, null); holder = new ViewHolder(); holder.fbName = (TextView) convertView .findViewById(R.id.reviewText); holder.fbName.setTypeface(fontObj_rockwell); holder.fbImage = (ImageView) convertView.findViewById(R.id.fbImage); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } String profileFBURL = http://graph.facebook.com/; + m_Show.getFbids_watching().get(position) + /picture; // Utility.setImageToImageView(profileFBURL, holder.fbImage); holder.fbImage.setImageBitmap(model.getRoundedImage(profileFBURL, profileFBURL, 10)); try { FriendInfo frndInfo = FacebookFriendAPIHandler .getFacebookFriendInfo(m_Show.getFbids_watching().get( position)); holder.fbName.setText(frndInfo.getName()); } catch (Exception e) { e.printStackTrace(); } convertView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent =new Intent(activity,UserProfileActivity.class); Bundle bundle =new Bundle(); bundle.putString(fbID,String.valueOf(m_Show.getFbids_watching().get(position))); bundle.putString(class, wall); intent.putExtras(bundle); View view1 = WallGroup.group .getLocalActivityManager() .startActivity( UserProfileActivity, intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); // Again, replace the view WallGroup.group.replaceView(view1); } }); return convertView; } -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] getView called multiple times for a count of 1
Hi, This is the layout file LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:background=@android:color/transparent android:orientation=vertical ListView android:id=@+id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_margin=5dip android:background=@drawable/item_bg android:cacheColorHint=# android:divider=@null android:dividerHeight=2dp android:scrollbars=none android:smoothScrollbar=true /ListView /LinearLayout Below is the getView ViewHolder holder = new ViewHolder(); convertView = mInflater.inflate(R.layout.commentitem, null); holder.fbName = (TextView) convertView .findViewById(R.id.reviewText); holder.fbName.setTypeface(fontObj_rockwell); holder.fbImage = (ImageView) convertView.findViewById(R.id.fbImage); String profileFBURL = http://graph.facebook.com/; + m_Show.getFbids_watching().get(position) + /picture; // Utility.setImageToImageView(profileFBURL, holder.fbImage); holder.fbImage.setImageBitmap(model.getRoundedImage(profileFBURL, profileFBURL, 10)); try { FriendInfo frndInfo = FacebookFriendAPIHandler .getFacebookFriendInfo(m_Show.getFbids_watching().get( position)); holder.fbName.setText(frndInfo.getName()); } catch (Exception e) { e.printStackTrace(); } return convertView ; Please reply its too urgent -- Regards, Vani Reddy -- 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 getting stuck while scrolling,
Hi friends, In the LazyAdapter class i am sending an object which consists of an arraylist , while scrolling the listview it gets stuck and shows the infamous ANR dialog. -- Regards, Vani Reddy -- 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: Fwd: listview getting stuck while scrolling,
Yeah correct ,it really worked ..Thanks.. On Wed, Feb 22, 2012 at 4:19 PM, moktarul anam mokta...@gmail.com wrote: Hi Vani, I Have gone through your code and problem is in image fetching portion. Fetching images from server and display part you do it in android asynctask task. Fetching part you do in doInBackground method and in onPostExecute add that image into view. Always you will remember .. for all server interaction you have to use asynctask task or thread or handler otherwise ANR( android not responding) error will come (http://developer.android.com/reference/android/os/AsyncTask.html) Enjoy Moktarul Anam On Feb 22, 3:36 pm, vani reddy vani.reddy.bl...@gmail.com wrote: - Hi friends, In the LazyAdapter class i am sending an object which consists of an arraylist , while scrolling the listview it gets stuck and shows the infamous ANR dialog. This is the listview in xml ListView android:id=@+id/android:list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_margin=5dip android:background=@android:color/transparent android:cacheColorHint=# android:divider=@android:color/darker_gray android:scrollbars=none android:fastScrollEnabled=true Below is thegetView method @Override public View getView(final int position, View convertView, ViewGroup parent) { String name = ; ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.commentitem, null); holder = new ViewHolder(); holder.reviewText = (TextView) convertView .findViewById(R.id.reviewText); holder.fbImage = (ImageView) convertView.findViewById(R.id.fbImage); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } String profilePictureURL = http://graph.facebook.com/; + cList.getData().get(position).getFbid() + /picture; if (cList.getData().get(position).getName() == null) { name = ; } else { name = cList.getData().get(position).getName() + says ; } holder.reviewText.setText( + name + cList.getData().get(position).getComment()); try { Bitmap bitmap = BitmapFactory.decodeStream((InputStream) new URL( profilePictureURL).getContent()); holder.fbImage.setImageBitmap(Utility.getRoundedCornerBitmap( bitmap, 10)); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return convertView; } How to resolve this?? -- Regards, Vani Reddy -- 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 -- Regards, Vani Reddy -- 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] keyboard dismissing issue
Hey I have already given this. On Thu, Feb 16, 2012 at 12:42 PM, Ratheesh Valamchuzhy android...@gmail.com wrote: add android:windowSoftInputMode=stateHidden to the activity tag in manifest file -- 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 -- Regards, Vani Reddy -- 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] adapter.notifyDataSetChanged not working
Hi friends, In the oncreate of Custom listview activity i am setting the adapter as adapter = new LazyAdapterChannelList(ChannelGuideActivity.this, null); this.setListAdapter(adapter);, this is my LazyadapterChannlelist class ChannelList myCurrentShowsList; public LazyAdapterChannelList(Activity a, ChannelList m_CurrentShowsList) { activity = a; myCurrentShowsList=m_CurrentShowsList; } public void setUpdatedInfo(ChannelList val) { Log.i(ConfigurationConstants.logTAG, lca - Received new data + val.getData().size()); myCurrentShowsList = val; } public int getCount() { try { return myCurrentShowsList.getData().size(); } catch (Exception ex) { return 0; } } setUpdatedInfo(ChannelList val) : this method i am calling before calling adapter.notifyDataSetChanged to update the latest values. But the listview is not getting updated. Please reply.:) -- Regards, Vani Reddy -- 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: adapter.notifyDataSetChanged not working
( ChannelDetailShowListActivity, intent .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); // Again, replace the view EPGGroup.group.replaceView(view1); } }); return convertView; } catch (Exception e) { e.printStackTrace(); } return convertView; } http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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: adapter.notifyDataSetChanged not working
This listview is in the activiyt group of tabactivity. On Wed, Feb 15, 2012 at 6:41 PM, vani reddy vani.reddy.bl...@gmail.comwrote: public View getView(final int position, View convertView, ViewGroup parent) { try { final Show channelShowItem = (Show) myCurrentShowsList.getData() .get(position); convertView = inflater.inflate(R.layout.channel_item, null); ViewHolder holder = new ViewHolder(); holder.logoLayout = (LinearLayout) convertView .findViewById(R.id.logoLayout); if (channelShowItem.getCountry().equals(IN_airtel)) { holder.logoLayout.setBackgroundDrawable(null); } holder.channelLogo = (ImageView) convertView .findViewById(R.id.channelLogo); holder.discussionCount = (TextView) convertView .findViewById(R.id.discussionCount); holder.ActivityInfo = (TextView) convertView .findViewById(R.id.ActivityInfo); holder.showName = (TextView) convertView .findViewById(R.id.showName); holder.channelname = (TextView) convertView .findViewById(R.id.channelname); holder.showName.setTypeface(fontObj); holder.channelname.setTypeface(fontObj_myraid); holder.showTiming = (TextView) convertView .findViewById(R.id.showTiming); holder.viewCount = (TextView) convertView .findViewById(R.id.ChannelViewCount); holder.discussionCount.setText(String.valueOf(channelShowItem .getComment_count())); if (channelShowItem.getFbids_watching() != null) { System.out.println(INSIDE IF ***); try { String textToDisplay = UserAPIHandler.getFriendsWatching( channelShowItem.getFbids_watching(), fList); holder.ActivityInfo.setText(textToDisplay); System.out.println(LSITING +channelShowItem.getListing_name()); System.out.println(channelname +channelShowItem.getCh_name()); System.out.println(COUNT +channelShowItem.getFbids_watching().size()); holder.viewCount.setText( + channelShowItem.getFbids_watching().size()); } catch (Exception e) { e.printStackTrace(); } } else { System.out.println(INSIDE ESLE*#**); System.out.println(LSITING +channelShowItem.getListing_name()); System.out.println(channelname +channelShowItem.getCh_name()); System.out.println(COUNT 0); holder.viewCount.setText(0); holder.ActivityInfo.setText(); } String temp = channelShowItem.getIcon(); Utility.setImageFromAssets(activity, temp, holder.channelLogo); holder.showName.setText(channelShowItem.getListing_name()); holder.channelname.setText(channelShowItem.getCh_name()); long startMilliSeconds = Long.parseLong(channelShowItem.getStart() .getSec()) * 1000; long endMilliSeconds = Long.parseLong(channelShowItem.getStop() .getSec()) * 1000; Date startDate = new Date(startMilliSeconds); Date endDate = new Date(endMilliSeconds); if (channelShowItem.getCountry().equals(IN_airtel)) { startDate.setHours(startDate.getHours() - 5); startDate.setMinutes(startDate.getMinutes() - 30); endDate.setHours(endDate.getHours() - 5); endDate.setMinutes(endDate.getMinutes() - 30); } SimpleDateFormat endFormatter = new SimpleDateFormat(HH:mm); String startDisplay = endFormatter.format(startDate); String endDisplay = endFormatter.format(endDate); String showTimings = startDisplay + - + endDisplay; holder.showTiming.setText(showTimings); convertView.setTag(holder); convertView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); Intent intent = new Intent(v.getContext(), ChannelDetailShowListActivity.class); Bundle myData = new Bundle(); myData.putSerializable(currentShow, channelShowItem); myData.putString(class, guide); intent.putExtras(myData); View view1
[android-developers] keyboard dismissing issue
HI friends, i have an edittext below which is the listview. after searching in the edittext ,when i click on the listview item it switches to next activity but the keyboard is not dismissed. how to acheive this. In the getView() method i have given convertView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); Intent intent = new Intent(v.getContext(), ChannelDetailShowListActivity.class); Bundle myData = new Bundle(); myData.putSerializable(currentShow, channelShowItem); myData.putString(class, guide); intent.putExtras(myData); View view1 = EPGGroup.group .getLocalActivityManager() .startActivity( ChannelDetailShowListActivity, intent .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); // Again, replace the view EPGGroup.group.replaceView(view1); } }); and @Override protected void onPause() { super.onPause(); this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); } and getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); is i have given in the onCreate of the next activity. But still the keyboard is not dismisssed. -- Regards, Vani Reddy -- 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] listview search improve performance
Hi Daniel, I did the same as what you said, sometimes it throws indexoutofboundsexception in adapter. It takes the old value and sets the adapter pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- 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 -- Regards, Vani Reddy -- 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] listview search improve performance
What i did is the below.Among the points which you mentioned i used timer concept and Optimising search using. *start*, *before*, and *count* . public void onTextChanged(CharSequence s, int start, int before, int count) { System.out.println(S + s); System.out.println(start + start); System.out.println(before + before); System.out.println(count + count); if (count = 0 (start = 0)) { if (Thread.currentThread().isAlive()) ; { Thread.currentThread().interrupt(); } t = new Thread(null, loadSearchItems); t.start(); } } private Runnable loadSearchItems = new Runnable() { @Override public void run() { try { synchronized (t) { t.wait(1000); } } catch (Exception e) { e.printStackTrace(); } System.out.println(AFTER 2 SECONDS *); ListShow _sortShow = new ArrayListShow(); String searchStr = search_feild.getText().toString().trim() .toLowerCase(); _sortShow.clear(); for (int i = 0; i m_ChannelList.getData().size(); i++) { Show show = m_ChannelList.getData().get(i); if String) show.getListing_name().toLowerCase()) .contains(searchStr)) || (((String) show.getCh_name().toLowerCase()) .contains(searchStr)) ) { _sortShow.add(show); } sorted_ChannelList.setData(_sortShow); } runOnUiThread(updateSearchAdapter); } }; private Runnable updateSearchAdapter = new Runnable() { @Override public void run() { adapter = new LazyAdapterChannelList(ChannelGuideActivity.this, sorted_ChannelList); setListAdapter(adapter); } }; -- 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] listview search improve performance
I am not able to avoid creating a new adapter after every search. On Thu, Feb 9, 2012 at 5:12 PM, vani reddy vani.reddy.bl...@gmail.comwrote: What i did is the below.Among the points which you mentioned i used timer concept and Optimising search using. *start*, *before*, and *count* . public void onTextChanged(CharSequence s, int start, int before, int count) { System.out.println(S + s); System.out.println(start + start); System.out.println(before + before); System.out.println(count + count); if (count = 0 (start = 0)) { if (Thread.currentThread().isAlive()) ; { Thread.currentThread().interrupt(); } t = new Thread(null, loadSearchItems); t.start(); } } private Runnable loadSearchItems = new Runnable() { @Override public void run() { try { synchronized (t) { t.wait(1000); } } catch (Exception e) { e.printStackTrace(); } System.out.println(AFTER 2 SECONDS *); ListShow _sortShow = new ArrayListShow(); String searchStr = search_feild.getText().toString().trim() .toLowerCase(); _sortShow.clear(); for (int i = 0; i m_ChannelList.getData().size(); i++) { Show show = m_ChannelList.getData().get(i); if String) show.getListing_name().toLowerCase()) .contains(searchStr)) || (((String) show.getCh_name().toLowerCase()) .contains(searchStr)) ) { _sortShow.add(show); } sorted_ChannelList.setData(_sortShow); } runOnUiThread(updateSearchAdapter); } }; private Runnable updateSearchAdapter = new Runnable() { @Override public void run() { adapter = new LazyAdapterChannelList(ChannelGuideActivity.this, sorted_ChannelList); setListAdapter(adapter); } }; -- Regards, Vani Reddy -- 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 search improve performance
Hello, I have a listview in which i am loading data of size 400. for the edittext i am giving search_feild.addTextChangedListener(new TextWatcher() { ListShow _sortShow = new ArrayListShow(); public void afterTextChanged(Editable s) { } public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int count) { searchStr = search_feild.getText().toString().trim() .toLowerCase(); _sortShow.clear(); for (int i = 0; i m_ChannelList.getData().size(); i++) { if (textlength = m_ChannelList.getData().get(i) .getListing_name().length() || textlength = m_ChannelList.getData().get(i) .getCh_name().length()) { Show show = m_ChannelList.getData().get(i); if String) show.getListing_name().toLowerCase()) .contains(searchStr)) || (((String) show.getCh_name().toLowerCase()) .contains(searchStr)) ) { _sortShow.add(show); } sorted_ChannelList.setData(_sortShow); adapter = new LazyAdapterChannelList(ChannelGuideActivity.this, sorted_ChannelList); setListAdapter(adapter); } }); it is blocking the UI,How to resolve it -- Regards, Vani Reddy -- 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] Image rotation smoothly
Hi, How to make the image rotation smoothly.,i used accelerateInterpolater and linearInterpolater also. but it pauses for a moment and then starts. -- Regards, Vani Reddy -- 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] chat implementation
Hi friends., How to implement chat feature in android.I looked at this http://www.xtify.com/products.html#tab=tab-push but did not understand anything. Please reply . -- Regards, Vani Reddy -- 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] chat implementation
Hey, Correct. I dont need to write another chat app. I need to integrate it in my app. the server side they have written using javascript. check this http://amplyfy.me/comments.html.. On Tue, Feb 7, 2012 at 1:06 PM, Kristopher Micinski krismicin...@gmail.comwrote: Why do you want to write yet another chat app for Android, when there are hundreds of great ones out there on the market? Basically, you need a good backend server to do the communication, and you need a somewhat smart way to communicate with the server so you don't kill your users' battery life. kris On Tue, Feb 7, 2012 at 2:33 AM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends., How to implement chat feature in android.I looked at this http://www.xtify.com/products.html#tab=tab-push but did not understand anything. Please reply . -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] Header button above tabs not able to manage the activity under the tabs
Hello, I have a header under which der are 5 tabs. The header contains a refresh button. ON click of the button the particular activity which is open under the currently opened tab should refresh. The header is common for all tabs. -- Regards, Vani Reddy -- 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: Header button above tabs not able to manage the activity under the tabs
I have inflated the refresh button and made it static in the tabactivity, When i click on it the particular activity which is open under the tab should refresh i.e call a thread ,but wen i click on it when the firstactivity is open, the second actiivity thread is called. On Fri, Feb 3, 2012 at 3:59 PM, skink psk...@gmail.com wrote: vani reddy wrote: Hello, I have a header under which der are 5 tabs. The header contains a refresh button. ON click of the button the particular activity which is open under the currently opened tab should refresh. The header is common for all tabs. -- Regards, Vani Reddy and? -- 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 -- Regards, Vani Reddy -- 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: Header button above tabs not able to manage the activity under the tabs
HI, IF we call tabHost.getCurrentTab() will it call the oncreate of the activity. On Fri, Feb 3, 2012 at 5:19 PM, skink psk...@gmail.com wrote: vani reddy wrote: HI PFA the snapshot. When i click on the above red color refresh image and the wall tab is open. Need to refresh that activity. When i switch to other tab say friends and click on refresh image it shud refersh that particular activity i.e call a method in that activity. How to acheive this.?? I already answered your question: call getCurrentTab and refresh you current tab - whatever it means pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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: Header button above tabs not able to manage the activity under the tabs
Hi., TabACtivity is my HomeScreen.java and FirstActivity under the tab. On click of refresh button i need to start a thread in a method in FirstActivity .by passing a runnable object. I cannot make a method as static On Fri, Feb 3, 2012 at 7:22 PM, skink psk...@gmail.com wrote: vani reddy wrote: HI, IF we call tabHost.getCurrentTab() will it call the oncreate of the activity. of course not, it will return the index of the current tab pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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: Header button above tabs not able to manage the activity under the tabs
Hey, When i do setCurrentTab(int value) the activity doesnt get refreshed. On Fri, Feb 3, 2012 at 7:53 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi., TabACtivity is my HomeScreen.java and FirstActivity under the tab. On click of refresh button i need to start a thread in a method in FirstActivity .by passing a runnable object. I cannot make a method as static On Fri, Feb 3, 2012 at 7:22 PM, skink psk...@gmail.com wrote: vani reddy wrote: HI, IF we call tabHost.getCurrentTab() will it call the oncreate of the activity. of course not, it will return the index of the current tab pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- Regards, Vani Reddy -- 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] soft keyboard problem
Hi friends , I have 5 tabs, under the first tab , the activity doesnt contain any edittext but still the soft keypad pops up. how to hide the soft keypad. I have given InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, InputMethodManager.HIDE_IMPLICIT_ONLY); in the oncreate() method and android:windowSoftInputMode=stateAlwaysHidden in the manifest but still it shows. -- Regards, Vani Reddy -- 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] android onBackPressed not called under tab
Hi friends, I have Main Activity. That has 5 tabs(TabHost). I have overridden onBackPressed in activity groups, as well As All 5 activities. This button show user a dialog box and for confirmation of Exit When app start. It show 1st tab. Then if I press back it work fine for 4 tabs. But if I go for last tab and then press back, The app closes .But there is not dialogue for the user.Even nothing is print in log cat. That I have written in onBackPressed() method From and of 5 activities including MainActivity. I have also try onKeyDown() for back key but result is same? Please reply,its too critical -- Regards, Vani Reddy -- 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] tabs onbackPressed
Hi friends,, Under tabs when onBackPressed i am showing a dialog box, but its throwing the below exception ERROR/WindowManager(979): Activity com.amplyfyme.android.HomeScreen has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40678fb0 that was originally added here Toast.makeText(getParent(), inside back prss, Toast.LENGTH_SHORT).show(); AlertDialog.Builder builder = new AlertDialog.Builder(getParent()); builder.setMessage(Are you sure you want to exit?) .setCancelable(false) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { UserProfileActivity.this.finish(); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); alert= builder.create(); alert.show(); //line where exception is thrown -- Regards, Vani Reddy -- 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] shadow under tabs android
Hi, How to remove the shadow under the tabs.And there are few light black dots how to remove that also.Please check the attached snapshot. I also used the below code style name=YourTheme item name=android:windowContentOverlay@null/item /style -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: device-2012-01-31-112625.png
[android-developers] startActivitiesForResult problem
HI friends, In my app i am traversing between 4 activities A,B,C,D . in Activity A i am going to B and then C and D Intent intent = new Intent(A,B); startActivityForResult(intent,0); From D i need to go to activity A from Activity D i am doing Intent intent = new Intent(); intent.putExtra(str,str); setResult(RESULT_OK,intent) In activity A I am fetching result in onActivityResult(int requestCode, int resultCode, Intent data) { Here the intent data is null } How to resolve this issue.Please reply. -- Regards, Vani Reddy -- 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] startActivityForResult problem
Hi friends, In my application I am switching betweeen 4 activities ActivityA , ActivityB,ActivityC, ActivityD while returning from actvityD i am setting Intent in = new Intent(); in.putIntegerArrayListExtra(items, sel_supp); setResult(RESULT_OK, in); finish(); -- Regards, Vani Reddy -- 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] Fwd: startActivityForResult problem
- Hi friends, In my application I am switching betweeen 4 activities ActivityA , ActivityB,ActivityC, ActivityD while returning from actvityD i am setting Intent in = new Intent(); in.putIntegerArrayListExtra(items, sel_supp); setResult(RESULT_OK, in); finish(); i have set noHistory=true for ActivityB and ActivityC In activtiy A onActivityResult(int requestCode, int resultCode, Intent data) i am getting the values but it is throwing : java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} How to resolve this I -- Regards, Vani Reddy -- Regards, Vani Reddy -- 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] back button in actiovity group
HI friends, I have a Tab activity, in it i have an activity group in it there are 3 activities. The first and second activities contain custom listviews which dont extend list activity, the third activity is a normal activity . On press of a button in third activity the app closes. I have overridden the onKeyDown method which is : @Override public boolean onKeyDown(int keyCode, KeyEvent event) { System.out.println(INSIDE ONKEY DOWN); if (event.getKeyCode() == KeyEvent.KEYCODE_BACKEPGGroup.group!= null) { System.out.println(back button of showdetail activity); EPGGroup.group.back(); return true; } return super.onKeyDown(keyCode, event); } EPGGroup is the activity group. The problem is onKeyDown is not called at all when i press back button -- Regards, Vani Reddy -- 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] back button in actiovity group
Thanks. I tried this , the problem is onKeyDown is never fired On Wed, Jan 11, 2012 at 5:41 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: try this public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { moveTaskToBack(true); return true; } return super.onKeyDown(keyCode, event); } public void backButtonPressed(View v) { //do this } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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 implement finger print in android app
Hi friends, How to implement finger print in android i.e to take the finger print of the user for an application. -- Regards, Vani Reddy -- 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] screenshot in android
Hi friends, How to take the screeenshot of android device programmatically..Apart from using in DDMS. -- Regards, Vani Reddy -- 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] Checkedtextview not able to uncheck
Hi, How to uncheck the Checked textview in customlistview of a white background. This is the xml part: CheckedTextView android:id=@+id/chk android:textColor=#000 android:checkMark=@drawable/blue_arrow android:layout_alignParentRight=true android:layout_alignParentLeft=true android:clickable=true android:focusable=true android:layout_gravity=right|center_vertical android:layout_marginRight=2dip android:layout_width=wrap_content android:layout_height=wrap_content / in java i am usinglike this: chtextview.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { System.out.println(onclick of checkd texview); chtextview.toggle(); } }); But it is not toggling Please help -- Regards, Vani Reddy -- 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] checkbox checked in listview
Hi, I have created a custom listview of text and checkbox. When i click on a particular checkbox the other checkboxes in the rows also gets checked. How to avoid this?? -- Regards, Vani Reddy -- 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] customized date picker
I have already sent the code. On Fri, Nov 4, 2011 at 6:55 PM, ramesh mandare ramesh.manda...@gmail.comwrote: please give me code On Fri, Nov 4, 2011 at 4:15 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi, Check out the code I have attached. On Fri, Nov 4, 2011 at 3:52 PM, Ratheesh Valamchuzhy android...@gmail.com wrote: can u give me all the code to debug. -- 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 -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] customized date picker
Hi friends, I have implemented custom date picker:I am setting the day, month and date. I have set the dayscount to be 90. When it crosses Dec31st 2011 it shows Jan 1st 2011, but it should jan1st 2012.I am setting it in the adapter. Here is the adapter class. private class DayArrayAdapter extends AbstractWheelTextAdapter { // Count of days to be shown private final int daysCount = 20; int index_item =0; int day = 0; // Calendar Calendar calendar; /** * Constructor */ protected DayArrayAdapter(Context context, Calendar calendar) { super(context, R.layout.time2_day, NO_RESOURCE); this.calendar = calendar; setItemTextResource(R.id.time2_monthday); } public int getItemId(int arg0) { return arg0; } public View getItem(int index, View cachedView, ViewGroup parent) { this.index_item=index; day = index; Calendar newCalendar = (Calendar) calendar.clone(); newCalendar.roll(Calendar.DAY_OF_YEAR, day); View view = super.getItem(index, cachedView, parent); weekday = (TextView) view.findViewById(R.id.time2_weekday); if (day == 0) { weekday.setText(); } else { DateFormat format = new SimpleDateFormat(EEE); weekday.setText(format.format( newCalendar.getTime())); } monthday = (TextView) view.findViewById(R.id.time2_monthday); if (day == 0) { monthday.setText(Today); monthday.setTextColor(0xFFF0); } else { DateFormat format = new SimpleDateFormat(MMM d); monthday.setText(format.format(newCalendar.getTime())); monthday.setTextColor(0xFF11); } return view; } public int getItemsCount() { return daysCount + 1; } protected CharSequence getItemText(int index) { return ; } } Please reply.. -- Regards, Vani Reddy -- 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] Fwd: customized date picker
-- Forwarded message -- From: vani reddy vani.reddy.bl...@gmail.com Date: Fri, Nov 4, 2011 at 1:14 PM Subject: customized date picker To: android-developers@googlegroups.com Hi friends, I have implemented custom date picker:I am setting the day, month and date. I have set the dayscount to be 90. When it crosses Dec31st 2011 it shows Jan 1st 2011, but it should jan1st 2012.I am setting it in the adapter. Here is the adapter class. private class DayArrayAdapter extends AbstractWheelTextAdapter { // Count of days to be shown private final int daysCount = 20; int index_item =0; int day = 0; // Calendar Calendar calendar; /** * Constructor */ protected DayArrayAdapter(Context context, Calendar calendar) { super(context, R.layout.time2_day, NO_RESOURCE); this.calendar = calendar; setItemTextResource(R.id.time2_monthday); } public int getItemId(int arg0) { return arg0; } public View getItem(int index, View cachedView, ViewGroup parent) { this.index_item=index; day = index; Calendar newCalendar = (Calendar) calendar.clone(); newCalendar.roll(Calendar.DAY_OF_YEAR, day); View view = super.getItem(index, cachedView, parent); weekday = (TextView) view.findViewById(R.id.time2_weekday); if (day == 0) { weekday.setText(); } else { DateFormat format = new SimpleDateFormat(EEE); weekday.setText(format.format( newCalendar.getTime())); } monthday = (TextView) view.findViewById(R.id.time2_monthday); if (day == 0) { monthday.setText(Today); monthday.setTextColor(0xFFF0); } else { DateFormat format = new SimpleDateFormat(MMM d); monthday.setText(format.format(newCalendar.getTime())); monthday.setTextColor(0xFF11); } return view; } public int getItemsCount() { return daysCount + 1; } protected CharSequence getItemText(int index) { return ; } } Please reply.. -- Regards, Vani Reddy -- Regards, Vani Reddy -- 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] sliding drawer issue
Hi there , How to limit the height of sliding drawer naturally to get it the same as like in iphone? -- Regards, Vani Reddy -- 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] Stack overflow error
-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.requestFocus(ViewGroup.java:1032) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.View.requestFocus(View.java:3556) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewRoot.clearChildFocus(ViewRoot.java:1586) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2207) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2181) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup.removeView(ViewGroup.java:2129) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at com.tli.meetcha.SearchClass$1.onFocusChange(SearchClass.java:120) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.View.onFocusChanged(View.java:2666) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.widget.TextView.onFocusChanged(TextView.java:6469) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.View.unFocus(View.java:2594) 10-29 00:32:31.026: ERROR/AndroidRuntime(312): at android.view.ViewGroup search_interest is the edittext . there are 2 editetexts, I am changing and adding the listvview to the linearlayout ll on focus of particular editext . search_interest.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus) { ll.removeView(currentView); ll.removeView(previousView); ll.addView(currentView);//exception is happening here } else{ ll.removeView(previousView);// exception is here also ll.removeView(currentView); ll.addView(previousView); } } }); -- Regards, Vani Reddy -- 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] Unclosed Cursor detected
H friends , I am getting the below errror 10-27 18:04:47.710: WARN/Cursor(19301): Unclosed Cursor detected 10-27 18:04:47.710: WARN/Cursor(19301): at android.content.ContentResolver.query(ContentResolver.java:258) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getSetting(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getDistributionChannelInternal(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.Config.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.android.maps.MapActivity.onCreate(MapActivity.java:405) 10-27 18:04:47.710: WARN/Cursor(19301): at com.tli.meetcha.MeetchaWebServices.onCreate(MeetchaWebServices.java:63) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.access$2500(ActivityThread.java:129) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2117) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Handler.dispatchMessage(Handler.java:99) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Looper.loop(Looper.java:143) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.main(ActivityThread.java:4717) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invokeNative(Native Method) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invoke(Method.java:521) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 10-27 18:04:47.710: WARN/Cursor(19301): at dalvik.system.NativeStart.main(Native Method) I am not using any database at all I am getting in the oncreate method super.onCreate(savedInstanceState); How to resolve this -- Regards, Vani Reddy -- 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] Unclosed Cursor detected
yes my package name is com.tli.meetcha, Yes i am using MapActivity 2011/10/27 Kostya Vasilyev kmans...@gmail.com Is that stack trace from your project, or just something that happened to be running on your device at the same time? Does the package name ring a bell? com.tli.meetcha? Do you use MapActivity? -- Kostya Vasilyev 27.10.2011 16:39 пользователь vani reddy vani.reddy.bl...@gmail.com написал: H friends , I am getting the below errror 10-27 18:04:47.710: WARN/Cursor(19301): Unclosed Cursor detected 10-27 18:04:47.710: WARN/Cursor(19301): at android.content.ContentResolver.query(ContentResolver.java:258) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getSetting(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getDistributionChannelInternal(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.Config.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.android.maps.MapActivity.onCreate(MapActivity.java:405) 10-27 18:04:47.710: WARN/Cursor(19301): at com.tli.meetcha.MeetchaWebServices.onCreate(MeetchaWebServices.java:63) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.access$2500(ActivityThread.java:129) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2117) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Handler.dispatchMessage(Handler.java:99) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Looper.loop(Looper.java:143) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.main(ActivityThread.java:4717) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invokeNative(Native Method) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invoke(Method.java:521) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 10-27 18:04:47.710: WARN/Cursor(19301): at dalvik.system.NativeStart.main(Native Method) I am not using any database at all I am getting in the oncreate method super.onCreate(savedInstanceState); How to resolve this -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- 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] Unclosed Cursor detected
The stack trace is not from my project. 2011/10/27 vani reddy vani.reddy.bl...@gmail.com yes my package name is com.tli.meetcha, Yes i am using MapActivity 2011/10/27 Kostya Vasilyev kmans...@gmail.com Is that stack trace from your project, or just something that happened to be running on your device at the same time? Does the package name ring a bell? com.tli.meetcha? Do you use MapActivity? -- Kostya Vasilyev 27.10.2011 16:39 пользователь vani reddy vani.reddy.bl...@gmail.com написал: H friends , I am getting the below errror 10-27 18:04:47.710: WARN/Cursor(19301): Unclosed Cursor detected 10-27 18:04:47.710: WARN/Cursor(19301): at android.content.ContentResolver.query(ContentResolver.java:258) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getSetting(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getDistributionChannelInternal(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.Config.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.android.maps.MapActivity.onCreate(MapActivity.java:405) 10-27 18:04:47.710: WARN/Cursor(19301): at com.tli.meetcha.MeetchaWebServices.onCreate(MeetchaWebServices.java:63) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.access$2500(ActivityThread.java:129) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2117) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Handler.dispatchMessage(Handler.java:99) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Looper.loop(Looper.java:143) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.main(ActivityThread.java:4717) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invokeNative(Native Method) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invoke(Method.java:521) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 10-27 18:04:47.710: WARN/Cursor(19301): at dalvik.system.NativeStart.main(Native Method) I am not using any database at all I am getting in the oncreate method super.onCreate(savedInstanceState); How to resolve this -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- Regards, Vani Reddy -- 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] Unclosed Cursor detected
Yes my activity extends MapActivity, and i have overridden onStart() and onStop() and called super.onStart(); and super.onStop(); in those 2 methods 2011/10/27 Kostya Vasilyev kmans...@gmail.com Does your activity derived from MapActivity have any of onPause / onResume / onDestroy? Does it call super.*** in those methods? 27 октября 2011 г. 16:58 пользователь vani reddy vani.reddy.bl...@gmail.com написал: The stack trace is not from my project. 2011/10/27 vani reddy vani.reddy.bl...@gmail.com yes my package name is com.tli.meetcha, Yes i am using MapActivity 2011/10/27 Kostya Vasilyev kmans...@gmail.com Is that stack trace from your project, or just something that happened to be running on your device at the same time? Does the package name ring a bell? com.tli.meetcha? Do you use MapActivity? -- Kostya Vasilyev 27.10.2011 16:39 пользователь vani reddy vani.reddy.bl...@gmail.com написал: H friends , I am getting the below errror 10-27 18:04:47.710: WARN/Cursor(19301): Unclosed Cursor detected 10-27 18:04:47.710: WARN/Cursor(19301): at android.content.ContentResolver.query(ContentResolver.java:258) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getSetting(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.getDistributionChannelInternal(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.Config.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.common.android.AndroidConfig.init(Unknown Source) 10-27 18:04:47.710: WARN/Cursor(19301): at com.google.android.maps.MapActivity.onCreate(MapActivity.java:405) 10-27 18:04:47.710: WARN/Cursor(19301): at com.tli.meetcha.MeetchaWebServices.onCreate(MeetchaWebServices.java:63) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.access$2500(ActivityThread.java:129) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2117) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Handler.dispatchMessage(Handler.java:99) 10-27 18:04:47.710: WARN/Cursor(19301): at android.os.Looper.loop(Looper.java:143) 10-27 18:04:47.710: WARN/Cursor(19301): at android.app.ActivityThread.main(ActivityThread.java:4717) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invokeNative(Native Method) 10-27 18:04:47.710: WARN/Cursor(19301): at java.lang.reflect.Method.invoke(Method.java:521) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) 10-27 18:04:47.710: WARN/Cursor(19301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 10-27 18:04:47.710: WARN/Cursor(19301): at dalvik.system.NativeStart.main(Native Method) I am not using any database at all I am getting in the oncreate method super.onCreate(savedInstanceState); How to resolve this -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email
[android-developers] Getting values in wheel demo
HI friends, I just got the code of wheel demo(customized date picker ) from http://code.google.com/p/android-wheel/source/checkout but the problem is i am not able to get the selected values.How to get it. Please reply. Thanks:) -- Regards, Vani Reddy -- 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] sliding drawer example
Hi friends, I am trying to limit the height of sliding drawer naturally in android. but i am not able to.How to acheive this. Please reply. Thanks :) -- Regards, Vani Reddy -- 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] stack overflow error in listview android
Hi friends, I am getting stack overflow error ,when i scroll the normal listview which comprises of only text . Below the stack trace: 10-24 17:48:43.400: ERROR/AndroidRuntime(912): java.lang.StackOverflowError 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestChildFocus(ViewGroup.java:431) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addViewInner(ViewGroup.java:1998) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addView(ViewGroup.java:1865) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addView(ViewGroup.java:1822) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.addView(ViewGroup.java:1802) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at com.tli.meetcha.SearchClass$1.onFocusChange(SearchClass.java:87) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.onFocusChanged(View.java:2666) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.widget.TextView.onFocusChanged(TextView.java:6469) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.handleFocusGainInternal(View.java:2489) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.requestFocus(View.java:3605) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.requestFocus(ViewGroup.java:1032) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.requestFocus(View.java:3556) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewRoot.clearChildFocus(ViewRoot.java:1586) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2207) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2181) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.ViewGroup.removeView(ViewGroup.java:2129) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at com.tli.meetcha.SearchClass$1.onFocusChange(SearchClass.java:91) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.onFocusChanged(View.java:2666) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.widget.TextView.onFocusChanged(TextView.java:6469) 10-24 17:48:43.400: ERROR/AndroidRuntime(912): at android.view.View.unFocus(View.java:2594) -- Regards, Vani Reddy -- 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] stack overflow error in listview android
ll=(LinearLayout)findViewById(R.id.listView); linflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); search_interest =(EditText)findViewById(R.id.search_interest); EditText search_location =(EditText)findViewById(R.id.search_interest); names.add(Linux); names.add(Windows7); names.add(Eclipse); names.add(Suse); names.add(Ubuntu); names.add(Solaris); names.add(Android); names.add(iPhone); currentView = linflater.inflate(R.layout.listview, null); list1 =(ListView)currentView.findViewById(R.id.list); // list1.setAdapter(arrayAdapter); //list1.setAdapter(new ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1, names)); list1.setAdapter(new ListItemsInterest(SearchClass.this,names)); previousView = linflater.inflate(R.layout.listview, null); list2 =(ListView)previousView.findViewById(R.id.list); String[] namesLOCATIOn = new String[] { LOCATION , , Eclipse, Suse, cc, , , iPhone}; //list2.setAdapter(new ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1, namesLOCATIOn)); list2.setAdapter(new ListItemsLocation(SearchClass.this,namesLOCATIOn)); search_interest.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus) { ll.removeView(currentView); ll.removeView(previousView); ll.addView(currentView); } else{ ll.removeView(previousView); ll.removeView(currentView); ll.addView(previousView); } } }); -- 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