Re: [android-developers] Re: How to start again if some third party task killer has killed my app ?
The question is not limited only about force close errors. It is more about the sudden death of the application which can happen because of so many reasons. In which I want to handle Force close when user goes to the *Settings - Applications - my App* and clicks *Force Close* and When some task killer App *kills* my App. By no means I intended to handle Force Close errors generated by some errors / bugs, they must be faced and solved instead of hiding from them. On Sat, Dec 29, 2012 at 9:43 PM, Nobu Games dev.nobu.ga...@gmail.comwrote: I would focus on your force close error and fix that one instead of trying to work around other apps. On Thursday, December 27, 2012 12:02:06 AM UTC-6, Amit Dwivedi wrote: In my App I have several activities which are obviously related to each other. Whenever I am on some activity and the user kills my app by using any task killer. I want to do two things 1. Clear the Notification which I added when the user logged in.. 2. finish all the activities other than the first Activity i.e. Login Activity Now if user starts again my app either from the recent tasks or from launcher I want to start from the first activity i.e. Login Activity... Presently my code works absolutely fine if I use android *manage process* and end the activity or force close the app from *android task manager*. But if I am using some other task killer app i.e. Advanced task killer, after closing the app when I relaunch the App from recent apps the it tries to restart from the last used Activity instead of Login Activty and gives an ugly force close error and when I click close it redirects me back to Login Activity... The Notification is also not cleared when in this case. How do I handle third party task killers ? I have read several threads on SO but couldn't get the pointers, few of them are ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Amit Kumar Dwivedi,https://plus.google.com/u/0/115190842607054249032/posts Lead Programmer Analyst, Argusoft India Ltd. Cell No : +91-9714702392 (!dea), +91-9429551692 (BSNL) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SlidingDrawer
Has anyone figured out how to make it open partially - ie not snap open all the way? I implemented that a few years ago, looking at the layout seems like the height of the SlidingDrawer view is the limited. Pent -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- 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] How to solve the issue with Dalvik compiler limitation on 64K methods?
That's what I keep being told but how can I still use Eclipse and execute debug/run builds within the IDE and still run Proguard? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Translate Animation doesn't work with samsung's S3
This has been fixed see my comment in the same stackoverflow link. On Friday, 22 March 2013 11:28:00 UTC+5:30, Ansh wrote: Hi guys , i am doing translate animation where i need to move my view( which is at the center of the screen ,but not exactly ) upward so that it can fit to the container placed 9dp from top.I have figured it out that if i translate view from 0%p to 52%p it will exactly fit the in the container layout for XHDPI devices.which worked perfect on google galaxy nexus device ( 720 X 1280 ) but the same thing is not working on samsung s3.In S3 i need to move the view onlty 50%p.Please tell me how can i resolve this devices dependent issue?And Why this happens? Is it happening because of screen sizes if so , please suggest me the solution. for better understanding please have a look at : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3 -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to solve the issue with Dalvik compiler limitation on 64K methods?
I presume that there's a recipe for that, though I do not know what it is. The right answer to your problem (the application architecture should probably be restructured) is one you discarded. Any solution to work around this problem temporarily may come with side effects, such as having to drop debug/run builds within the IDE temporarily. Software development does not require an IDE or debug builds. On Fri, Mar 22, 2013 at 5:13 AM, Ricardo Amaral mas...@ricardoamaral.net wrote: That's what I keep being told but how can I still use Eclipse and execute debug/run builds within the IDE and still run Proguard? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: zygote preloading jars
Hi, It seems that this is google play store filter. If I try to deploy to emulator by first pushing shared framework and then the using apk it complains on missing shared library. could you also confirm ? Regards, msm. On Thursday, 21 March 2013 18:21:44 UTC+5:30, skink wrote: miten wrote: Hi, I have few apps (apks) which share common framework (jar). Instead of saving jar in each apk I guess it would be more efficient to preload them from common location which will reduce apk size as well as memory. If it is possible with zygote please guide what I need to do like do I need to package the shared jar differently and store it in some specific location (ex. like in tomcat we have specific locations for classes stored for all webapps on tomcat). Regards, Miten. see http://developer.android.com/guide/topics/manifest/uses-library-element.html 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 --- 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: zygote preloading jars
On Fri, Mar 22, 2013 at 7:55 AM, miten imi...@yahoo.com wrote: It seems that this is google play store filter. If I try to deploy to emulator by first pushing shared framework and then the using apk it complains on missing shared library. That is because your emulator is not running your own version of Android that adds in this library. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: zygote preloading jars
miten wrote: Hi, It seems that this is google play store filter. If I try to deploy to emulator by first pushing shared framework and then the using apk it complains on missing shared library. could you also confirm ? Regards, msm. you have to modify /system/etc/permissions/platform.xml i did it by using two tools (i dont remember their names): one for unpaking system.img and the other one for creating modified system.img again 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 --- 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: zygote preloading jars
skink wrote: miten wrote: Hi, It seems that this is google play store filter. If I try to deploy to emulator by first pushing shared framework and then the using apk it complains on missing shared library. could you also confirm ? Regards, msm. you have to modify /system/etc/permissions/platform.xml i did it by using two tools (i dont remember their names): one for unpaking system.img and the other one for creating modified system.img again pskink ok, their names are: unyaffs mkyaffs2image 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 --- 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] Nexus 7 Tilapia vs Grouper
From a developer's perspective, are there difference on the Nexus 7 Tilapia vs Grouper? I've already discovered that the Tilapia is the 3G version. So there are at least some But if, say, one user claims that the compass is sometimes off by 90 or 180 degrees, or that files/data disappear, would I expect to not be able to reproduce such errors with the wifi version that I have at my workplace? Certainly the first one sounds like some sort of failure to adjust for screen orientation, but I don't know why, if indeed there are such problems, it would not show up on the wifi version, or other android devices. Nathan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- 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: SlidingDrawer
On Friday, March 22, 2013 12:38:05 AM UTC-7, Pent wrote: Has anyone figured out how to make it open partially - ie not snap open all the way? I implemented that a few years ago, looking at the layout seems like the height of the SlidingDrawer view is the limited. I don't mean staticly changing the maximum height of the open drawer. I mean allowing the user to dynamically change the size of the open drawer. Right now, when you let go, it either springs open or shut. Is that what you implemented? Did you start from the Android source? If so, what did you change? Nathan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- 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] Is there a way to dismiss the Contextual Action Bar (CAB) menu?
I have an app with a series of files in being shown via an Activity. Each file has a checkbox. If the user clicks any of the chedckboxes, I bring up the CAB menu for the user to operate on the file. My onClickListener starts things, and, I was hoping, could dismiss the CAB if the checkboxes are all unchecked. private OnClickListener clickChange = new OnClickListener() { public void onClick(View v) { // check to see if SelectAll checkbox was selected Boolean state = false; /* snip */ // Start the CAB using the ActionMode.Callback defined above if anything is selected if (anyChecked()) { // mActionMode = showFileActivity.this.startActionMode(mActionModeCallback); } else if (mActionMode != null) { mActionMode = null; } } }; Simply setting mActionMode to null won't clear the CAB. Any ideas on what/how to dismiss the CAB when the user has un-selected everything? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is there a way to dismiss the Contextual Action Bar (CAB) menu?
Call finish() on the ActionMode when you want to manually dismiss it. On Fri, Mar 22, 2013 at 3:56 PM, Marty Rehder martyg...@gmail.com wrote: I have an app with a series of files in being shown via an Activity. Each file has a checkbox. If the user clicks any of the chedckboxes, I bring up the CAB menu for the user to operate on the file. My onClickListener starts things, and, I was hoping, could dismiss the CAB if the checkboxes are all unchecked. private OnClickListener clickChange = new OnClickListener() { public void onClick(View v) { // check to see if SelectAll checkbox was selected Boolean state = false; /* snip */ // Start the CAB using the ActionMode.Callback defined above if anything is selected if (anyChecked()) { // mActionMode = showFileActivity.this.startActionMode(mActionModeCallback); } else if (mActionMode != null) { mActionMode = null; } } }; Simply setting mActionMode to null won't clear the CAB. Any ideas on what/how to dismiss the CAB when the user has un-selected everything? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MediaMetadataRetriever extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE) gets null
For others who may be interested, I ended up implementing a 3rd party library MyID3 http://www.fightingquaker.com/myid3/ Works well enough. A shame the real Android tools doesn't read the exact same data/same file like this library can. On Thursday, March 21, 2013 3:47:19 PM UTC-5, Marty Rehder wrote: I'm trying to get mp3 tags from some music files MediaMetadataRetriever mmr = new MediaMetadataRetriever(); File filenm = new File(path, availableFiles[0]); mmr.setDataSource(showFileActivity.this,Uri.fromFile(filenm)); String column = mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_xyz): I can get DURATION and BITRATE tags, so I know I'm setting the data source on the correct file, but everything else comes back null. The other tags, such as TITLE, are present, as I can pull the file from the device and verify they are there. Is there a better way to get mp3 tags? Am I doing it wrong? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: zygote preloading jars
Hi, I already modified the platform.xml as below: !-- This is a list of all the libraries available for application code to link against. -- library name=android.test.runner file=/system/framework/android.test.runner.jar / library name=javax.obex file=/system/framework/javax.obex.jar/ library name=androidtoast file=/system/framework/androidtoast.jar/ library name=toastcounter file=/system/framework/toastcounter.jar/ androidtoast and toastcounter are my shared jars. I pulled from emulator using adb and then push back. Do I still need to do some thing related to img file ? Please give bit more detailed steps on it if possible though it sounds like bit hard to believe that for configuring things we need to work with img file. Any ways if I just push the shared files to devices and try to upload the apk to google play and then download apk to devices will the steps already taken by me so far work ? 1) add shared jars to platform.xml and push to device 2) push shared jars to devices 3) upload apk to google play store 4) install using google play store the apk Regards, msm. On Friday, 22 March 2013 18:34:09 UTC+5:30, skink wrote: miten wrote: Hi, It seems that this is google play store filter. If I try to deploy to emulator by first pushing shared framework and then the using apk it complains on missing shared library. could you also confirm ? Regards, msm. you have to modify /system/etc/permissions/platform.xml i did it by using two tools (i dont remember their names): one for unpaking system.img and the other one for creating modified system.img again 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 --- 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: zygote preloading jars
Hi, You are suggesting that custom ROM is the only way to get apks share libraries ? I would like to see some simplified article showing how to achieve it in addition to google link you provided before I start in this custom rom direction. Regards, msm. On Friday, 22 March 2013 17:38:41 UTC+5:30, Mark Murphy (a Commons Guy) wrote: On Fri, Mar 22, 2013 at 7:55 AM, miten imi...@yahoo.com javascript: wrote: It seems that this is google play store filter. If I try to deploy to emulator by first pushing shared framework and then the using apk it complains on missing shared library. That is because your emulator is not running your own version of Android that adds in this library. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.