[android-developers] Re: Navigation Drawer Icon Theme/Color?
If you don't want to copy / modify classes: private void setActionBarUpTint(int color) { int upId = getResources().getIdentifier(android:id/up, null, null); if(upId == 0) return ; View view = getWindow().getDecorView().findViewById(upId); if(!(view instanceof ImageView)) return ; ImageView imageView = (ImageView) view; imageView.setColorFilter(color); } -- 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/d/optout.
[android-developers] Problem updating app (dev console)
I have an issue updating an app to a newer production APK. Although the upload worked fine without error and th dev console indicates that the uploaded version is the latest version in prod. After 15h or so the Google Play store dididn't pick the update and still points to the previous version. Then I uploaded a newer APK with the versionCode bumped, and it seems there is still the same problem. Anyone experienced problems updating APKs lately ? -- 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/d/optout.
[android-developers] Re: Google Play Services adds nearly 10,000 methods!
Yes, the monolithic structure of the Play Service jar sucks for the reasons you mention. However you can generate a new jar from it with jarjar, extracting only the classes you need and their dependencies. I had to do it for a project that otherwise would hit the 64K dex limit. On Friday, 7 February 2014 22:14:50 UTC+1, Jeff Campbell wrote: We have an app that depends on a lot of libraries, and recently we wanted to integrate Google Maps into our application. We learned that we would have to add the following dependency to our app: compile 'com.google.android.gms:play-services:4.1.32' Before adding this dependeny, our app had about a 40k method count. After adding this dependency our method count jumped to about 50k (about 10k methods added to our apk!). And, it seems that with every new version of this dependency it grows more and more (we noticed about a 2k growth in the last update). I know that this dependency contains a LOT of different types of services which include things we don't even use (which all contribute to the 10k method count). I know that I can use Proguard to strip out un-needed methods, but in a development environment this just slows down build time, and can make debugging issues difficult. Could the Google Play Services be divided into seperate aar projects? Example: play-services-core (required by all... assuming that there is some shared code) play-services-maps play-services-games play-services-ads play-services-plus play-services-wallet etc Doing this would reduce the risk of apps hitting the 65k method limit cap (seems crazy that a Google library takes 15% of the 65k limit of any single app) Thanks, Jeff -- 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: Rating Hijacking !
On Monday, 6 January 2014 18:24:30 UTC+1, andjarnic wrote: I am wondering why they don't require comments? There should be like a minimum of 2 or 3 words (and checked so that they are real words) before the comment pushes. Also, there should absolutely be a way to contact a commenter.. at the very least, the ability to reply to a comment and have a gmail like conversation tree layout for more comments. The developer comment system is not a place to start long conversations. 99% of the time you just want to tell the user to please contact support at email address so you can have a real conversation by email. Starting arguing with users in Play comments is useless and a waste of time. Most of the time a user will not care about your elaborate explanation posted as a comment while it is frequent to turn a negative review into a positive one after email exchanges. -- 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: Rating Hijacking !
You are right... A gift from Google to developers for the holiday season maybe ? Seriously, that's lame... More discussion on this: http://forums.makingmoneywithandroid.com/android-development/3898-google-play-bad-rating-after-10th-december-3.html On Saturday, 28 December 2013 11:02:53 UTC+1, a1 wrote: My app is 4.9 rating since a very very very long time and all very very few bad rating always had comments. Since 14 days I start to have lot's of 1 or 2 stars rating without any comments and without having released a new version or the app having problems. There's still the same amount of 4 / 5 star rating coming every day. It's an effect of quick rating (suggestion) box introduced in Play store around 10th December (see: http://www.androidpolice.com/2013/12/05/download-latest-google-play-store-4-5-10-with-shared-play-store-activity-iap-indicators-and-more/ ). -- Bart -- 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: Rating Hijacking !
I have observed something exactly like you describe in my own app. The graph you posted is similar to mine. I had stable ratings since forever until Dec 11th where unexplained 1-star ratings started to appear until the ratings finally stabilized (flat graph) on Dec 21th. At first I though it was an attack from competitors but now I think there might be another explanation. Dec 10th, Google approved a batch of Chromecast apps. My app is an obvious candidate from Chromecast support but of course it is not in the app list Google approved this day. I now think that the unexplained bad ratings came from users expecting Chromecast support. Since I believe your app is a potential candidate for Chromecast support, that could be it. Many CC users do not understand why some apps supports CC already and others do not and go the 1-star route. They just think developers are lazy or something... I wouldn't care too much (unless drop in ratings continue) since your app is rated exceptionnaly high and a 0.03 drop in rating is not going to have much consequence. On Friday, 27 December 2013 11:37:06 UTC+1, Tolriq wrote: Hi, My app rating is being hijacked by competitors and I don't know what to do :( I've tried to contact Google but there's no category for that and they don't answer from the other category contact :( My app is 4.9 rating since a very very very long time and all very very few bad rating always had comments. Since 14 days I start to have lot's of 1 or 2 stars rating without any comments and without having released a new version or the app having problems. There's still the same amount of 4 / 5 star rating coming every day. This graph for the 6 last months from Play Store console : http://postimg.org/image/i2bpm94vt/ shows the problem clearly and proves without a doubt the hijacking action :( What are the possible actions against that ? This is a shame that years of work can be attacked so easily :( How to contact some Google representative to have this investigated ? Regards, Tolriq -- 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: Immersive mode instructions reappear randomly
I use immersive mode and doesn't have the problem you describe. But I'm not calling setSystemUiVisibility() on the decor View but on a subclassed View (a ViewPager in my case) pretty much following the System UI Visibility Kitkat API Demo sample. -- 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: Passing the design for tablets checks (dev console optilmization tips)
On Sunday, 24 November 2013 01:03:24 UTC+1, Nathan wrote: Where is this appeal form? https://support.google.com/googleplay/android-developer/contact/tabletq -- 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: Passing the design for tablets checks (dev console optilmization tips)
On Saturday, 23 November 2013 12:13:15 UTC+1, Adam Ratana wrote: You can also appeal this, without making changes. They may be looking for some kind of split layouts or something. Yes you can appeal it seems. There's a form for that. And it looks some developers having their app badged as designed for tablet did just that or it was marked at such by someone at Google automatically (more below). I have a paid unlocker that is marked designed for tablet while I did nothing for that and it doesn't exactly fit the required criterias. The only explanation I have is that someone at Google removed manually the blocking optimzation tip, so it pass as designed for tablets. But the main (free) app it unlocks is not marked as designed for tablet... -- 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: Passing the design for tablets checks (dev console optilmization tips)
On Saturday, 23 November 2013 23:34:35 UTC+1, 3c wrote: If you go in your console, select your app, then optimization tips it says this: WHAT YOU SHOULD DOWHEN YOU DID IT *Designed your app for tablets* Hide details *Upload tablet screenshots:* Upload at least one screenshot for 10-inch tablets to the Store Listinghttps://play.google.com/apps/publish/?dev_acc=01732283762104190373#MarketListingPlace:p=ccc71.at That's as simple as that! Not as simple as that as there are other blocking checks (that may or may not apply to your specific app). -- 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] Passing the design for tablets checks (dev console optilmization tips)
I have an app that I think is tablet friendly yet the dev console optimization tips report: Your layout should make use of the available space on tablets Great. It point to this page to solve it: http://developer.android.com/distribute/googleplay/quality/tablet.html#use-extra-space The problem is that it is a bit vague about what exactly is required to pass this requirement. - does it check for layout-sw600dp and res/layout-sw720dp (my app only has the former) ? - does it check for XML Fragment declaration ? - etc... What is exactly required is not crystal clear... -- 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: Detecting the presence of a menu button.
You can force the appearance of the Overflow menu when a physical menu key is present with this hack below, calling that function with true for value. Not sure it still works on rcent versions of Android though. And of couse, someone is probably going to say don't do it!. static public void setHasPermanentMenuKey(Context context, boolean value) { if (isICSOrLater()) { ViewConfiguration config = ViewConfiguration.get(context); try { Field f = ViewConfiguration.class .getDeclaredField(sHasPermanentMenuKey); f.setAccessible(true); if (f != null) { f.set(config, value); log.info(Successfully hacked permanent menu key); } } catch (Exception ex) { log.info(Unable to hack permanent menu key: + ex); } } } -- 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: Detecting the presence of a menu button.
EDIT: this function must be called with false for the value param. On Monday, 21 October 2013 10:14:14 UTC+2, b0b wrote: You can force the appearance of the Overflow menu when a physical menu key is present with this hack below, calling that function with true for value. -- 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: InApp Billing v3 and multiple accounts
IAP with multiple accounts is in my opinion *broken*, even if I suspect current behaviour is how Google intended it. In my experience, in the presence of multiple accounts, the IAP code will always pickup the first listed account, in the device's Google account list in Settings, which may not be the account used for the IAP. -- 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: Becoming a Top Developer
They state Top Developer is a badge recognizing established, respected developers for their commitment to launching high-quality and innovative apps on Android. That's clearly a statement that non-top developers are unestablished , unrespected and not committing developers with poor quality and unoriginal apps on Android. How to become a top developer: - make an app that solves noone real (boring) problem but create something useless that people love, if possible in the social networking departement. Something original, even if useless. - use every trendy UI pattern in existence with pretty graphics everywhere. No problem if usuability suffers - get featured on The Verge (not a single chance if you are not a US startup) - brag about it in G+ and get 1 millions followers. Bragging is important. - magic badge and instant $$$ More seriously, that top developer badge should be the last of concern of any developer... -- 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: Deposits From Google Wallet Weirdness
On Thursday, 18 July 2013 17:38:14 UTC+2, David Erosa García wrote: I'm having the same issue. I received May payment twice, and June payment three times. Not that I regret receiving money, but this things never end well :) So I just called Google Wallet for Business (+1-855-9255386) and they told me they just discovered this issue this morning. Some developers are receiving multiple payments, but there's no action needed from our side. There won't be charges or money pulled from the bank account, but they still don't know if they'll discount this amount from the forthcoming months. Anyway the affected developers will be sent an email explaining the situation. I hope I explained this well, as English is not my native language and I'm not used to write in non-technical terms :) I hope this bring some calm to your hearts and your accountants :) There's more info on reddit: http://www.reddit.com/r/androiddev/comments/1ihaa6/eu_devs_multiple_payouts_this_month_negative/ -- -- 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: Question for a Google Play employee: is it allowed to release a pro version of my existing app?
IAP is the best solution here by far. -- -- 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: Deposits From Google Wallet Weirdness
Happened to me and got a You have unapplied payments/credits notification in Wallet to notify cancellation of erroneous payments. -- -- 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: Large amount of orders not complete over this weekend
On Tuesday, 9 July 2013 16:19:21 UTC+2, piem...@googlemail.com wrote: Mine are now charging, and I have a 'decent' amount in todays stats, though short of what it should be had the bug not have arisen (my stats are fairly static day-to-day) Will be interesting to see if this recovers and we make up for the 'dip' in unprocessed orders, or whether this will result in an unrecoverable dip for the period that orders were bugged. Will be interesting to see if anyone else notices the same! For me, it has fully processed the long list of chargeable orders I had, and seems to operate normally now. -- -- 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: Large amount of orders not complete over this weekend
After verification, all my orders since the 5th are stuck in the chargeable state (orange led). And I don't even speak of orders cancelled by Google... -- -- 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: Large amount of orders not complete over this weekend
On Sunday, 7 July 2013 15:25:43 UTC+2, niko20 wrote: I had over 34 orders yesterday, but most of them are in the non-green state yet for some reason. I only got payout of about 10 of them. Anyone else seeing this issue? Usually they turn full green (both dots are green in the google checkout report list, shipped and charged - right now shipped is green but charged is not for some reason) Something similar happened to me a few days ago. For a few hours, Google Wallet auto-cancelled every order (sending an email as such to customers, and to me with the dreaded Order #number has been cancelled by Google) until it came back to normal. I suspect sometimes there are intermittent Google Wallet issues processing orders. Annoying. -- -- 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: What is wow factor about android studio in compare to Eclipse.
The wow factor is that it is a v0.1 IDE and that people install it as if it was the second coming, expecting it to be a stable product. WOW. -- -- 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: Replying to user reviews on Google Play
On Monday, 13 May 2013 22:33:04 UTC+2, Piren wrote: Finally, everyone can stop complaining about this :) http://android-developers.blogspot.co.uk/2013/05/all-google-play-developers-can-now.html And instead complain about replying too much to users having the perverse effect of generating more support requests in comments, usually with a 1 star or low rating, just because said user think it is a good idea for getting the developer's attention. I know I will be replying to comments very rarely now. -- -- 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: Google Play Services: UserRecoverableAuthException's intent doesn't start
On Monday, 11 March 2013 09:05:48 UTC+1, Goddchen wrote: I'm having issues with the Google Drive SDK for Android. Everything works fine except for some devices (on which it used to be working, but now doesn't) the Intent that is returned by `UserRecoverableAuthException.getIntent()` isn't doing anything when started via `startIntent(...)`. All I see on Logcat is: 03-11 08:31:19.692: INFO/ActivityManager(552): START u0 {cat=[scope:oauth2: https://www.googleapis.com/auth/drive,account:myem...@googlemail.com,extrashash:1088740320] flg=0x1004 cmp=com.google.android.gms/.auth.TokenActivity (has extras)} from pid 27644 That's it. Nothing happens on the device. This is how the Intent is launched: Intent intent = e.getIntent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK).addFlags(Intent.FLAG_FROM_BACKGROUND); startActivity(intent); Any ideas? This is probably because Google Play Service handling this intent is not installed or not up to date. This can happen and here's how to handle it : http://developer.android.com/google/play-services/setup.html To sum up, you must call GooglePlayServiceUtils.isGooglePlayServicesAvailable() and handle it if it returns something else than SUCCESShttp://developer.android.com/reference/com/google/android/gms/common/ConnectionResult.html#SUCCESS . -- -- 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] Running logcat from an application only shows the apps logs.
On Wednesday, 1 May 2013 23:13:44 UTC+2, TreKing wrote: On Fri, Apr 19, 2013 at 1:28 PM, Federico Cesari ficoc...@gmail.comjavascript: wrote: I'm developing an application on JB 4.2 that needs to read the logs from all processes running in the device. That is no longer possible as of 4.1. Apps can only read the logs from their own processes. That's possible, but requires root. -- -- 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: Concurrency: Do you use Loaders? AsyncTask? or Runnables?
I use...java.util.concurrent.* classes. AsyncTask is just a specific usage of these classes. Avoid creating and managing threads yourself. Use Executors instead. -- -- 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: Eclipse or Intellij.. what's the verdict?
Eclipse for life here. I use it for Android, regular Java, C/C++, GWT development. Having it all in the same IDE is nice. Bashing Eclipse is popular. Each time someone bashes Eclipse, it is generally followed by stating how awesome Intellij is. This pattern is 100% predictable, especially on some developers IRC channels, where bitching about build tools is a recurring activity. Note: I have noting against Intellij. -- -- 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: creating a complex tablet app
I have to agree with the OP somewhat. The thing is...that the Fragment API is horrible. Overly complicated and complex and error prone. As if the activity lifecycle wasn't complex enough, a new one on top of that was added. It shows that it was designed in a hurry to get the first version of Honeycomb out of the door. I wished a more conventional API had been devised instead for multi-pane UIs, more similar traditional desktop apps. Of course someone will remply that using the Fragment UI is dead easy and it's the best API invented ever. Someone always say things are easy. -- -- 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] UnknownHostException is not logged
On Tuesday, 5 February 2013 11:46:42 UTC+1, BoD wrote: FYI there was already an open bug for this: http://code.google.com/p/android/issues/detail?id=21436 I really think this change should be reverted, instead of 'fixing' the javadoc. Seriously, the logger should not decide for the developer what is an important exception or not - this doesn't make any sense. Looking at the code of getStackTraceString() in linked issue, I must agree this issue is WTF of the day. Someone at Google really had a bad experience with UnknownHostException's and wanted to share it to the world. -- -- 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: Knockoff copy of my app on Google Play.
That's a good point to add (clever) CRC checks to an app. If app is repackaged = kaboom. Unless the repackager go through the trouble of removing the CRC check of course. -- -- 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: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
On Wednesday, 16 January 2013 10:43:37 UTC+1, Kostya Vasilyev wrote: Heh. Looks like it *is* intentional. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java That change is really stupid. Another incentive to replace Toast with a custom implementation whose behaviour will not change over time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using APK Signature to detect .apk tampering (Attn: Dianne??)
PackageManager pm = context.getPackageManager(); try { PackageInfo info = pm.getPackageInfo( xxx.xxx.xxx.xxx, PackageManager.GET_SIGNATURES ); Signature[] sig = info.signatures; String sigstring = new String( sig[0].toChars() ); // Compare this signature with what we signed it with } Note that this is not super useful to do that, as all automated cracking tools will detect your call with PackageManager.GET_SIGNATURES, and patch it out. -- 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] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
On Sunday, 13 January 2013 07:52:57 UTC+1, William Ferguson wrote: Thanks Joman, exactly what I was after. @Kristopher the use case is simple: I want to offer clients the ability to share using the standard Android mechanism and I want to provide a sharing end point myself. But for commercial reasons my end point is only appropriate if the Intent comes from within my app. Ie it shouldn't be available from within other apps. You could as well not declare the IntentFilter in your Manfifest and register it with code in your BroadcastReceiver to process it. Then fire an explicit Intent to yourself specifying your app with Intent.setComponent(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best open source ImageView pinch zoom project
- ImageViewZoom by sephirot74 ( https://github.com/sephiroth74/ImageViewZoom) I'm using this one and it works great. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers
This means there was an error communicating with another process handling an Intent. The stack trace here is confusing and doesn't show the real cause of the problem. For example i've seen this error happen sending an intent with intent extras being too big, bigger than max transaction size (1Mb). To debug this it can be interesting to look at earlier logcat stack trace to see where it really fails. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Asynchronous Http server in android
You probably need to repackage the org.apache.* jars in a new package name with a tool like jarjar, because some clases will be clashing with same class part of Android. You can thank Google for that for putting some Apache classes in the official API while this should have been left separate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?
On Wednesday, 12 December 2012 20:54:10 UTC+1, niko20 wrote: Just what the title says, The getExternalStorageDirectory API is supposed to GET EXTERNAL STORAGE. But manufacturers have all turned it into point to the internal storage on the device. There should have been a getInternalStorageDirectory() API to go along with this. I don't mind, I've solved this problem a long time ago, but just letting users type in the real path to the external card into my app. But many apps don't do this yet. So you get lots of apps that put everything on the internal storage when you have a 64GB card which is getting nothing put on it (I'm looking at you, Amazon MP3 and Amazon Kindle). Who let this slide man! -niko Not exactly. It is confusing because of the unfortunate naming of getExternalStorageDirectory(). In Google's speak, Extenal Storage doesn't refer to physical external storage (like USB stick, external HDD, ...) but to storage that can be access from an *external* device like a computer. Physical internal SD card qualify as external storage since you can read it from a PC a MAC or whatever. Now were manufacturers did not their job, is when they added additional External storage (whether it is physically external or not), and put the damn mount point not in a subdirectory of directory returned by getExternalStorageDirectory(). So for apps to have access to this additional storage, apps have to expose all kind of crazy stuff like letting users enter mount points, parse /etc/fstab (WTF), etc. Long story short: all External Storage whether physically external or not should reside in getExternalStorageDirectory() so apps and users do not have to deal with anything else. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Paid App to in-App purchase: Keeping old users
I would just transform the paid app into an unlocker app that is checked by the main app. Anything else seem really complicated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When can every developer reply to reviews?
On Monday, 3 December 2012 22:52:54 UTC+1, John Coryat wrote: I've also found that a good percentage of users who post poor reviews will revise them if they were confused, didn't understand a feature or were satisfied by the developer reply. It's very satisfying to see this and something that can only happen if we can reply to these poor lost souls. Agreed but that does not tell us when, mere mortal developers, will be able to answer those poor confused souls... It seems that is it going to stay beta forever. -- 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: When can every developer reply to reviews?
On Sunday, 2 December 2012 19:53:18 UTC+1, TreKing wrote: On Sun, Dec 2, 2012 at 12:43 PM, Παύλος-Πέτρος Τουρνάρης p.tou...@gmail.com javascript: wrote: What is the link to your blog TreKing? I've got two for the free / paid versions of my app: https://sites.google.com/site/rezmobileapps/treking/blogs/response-to-comments-paid https://sites.google.com/site/rezmobileapps/treking/blogs/response-to-comments-free Enjoy :) Did you ever 10 starred a 1 star user comment or 1 starred a 5 star user comment ? =). -- 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: When can every developer reply to reviews?
On Friday, 30 November 2012 18:17:52 UTC+1, TreKing wrote: On Fri, Nov 30, 2012 at 8:31 AM, Piren gpi...@gmail.com javascript:wrote: my personal favorites are the i want the app to have feature X, you get 1 star until you add it... bastards lol Even better: feature X already exists. Classic that one. My favorite example is a random user asking for a search function while the app have an in your face magnifying glass icon in every screen. WTF. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When can every developer reply to reviews?
On Friday, 30 November 2012 07:31:00 UTC+1, Techni wrote: I am getting some really STUPID comments and it's infuriating that I can do nothing about them Good question. I hope Developer comments will not stay in perpetual beta, with approved developers and second class developers. I also get a fair share of user comments that prompts a reply: - user making totally false and misleading claim (and I'm not talking about not agreeing with personal opinion of user here) - user making support request -- 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: OOM with heap enough
A good way to cut bitmap memory usage in half is to load them with BitmapFactory.Options.inPreferredConfig = Bitmap.Config.RGB_565. Eg 16 bits vs 32 bits. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2
Don't quote me on that but I vaguely remember someone mentionning that POST request must not have a body. So I'd try again with no body. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2
On Friday, 23 November 2012 11:23:45 UTC+1, Ryan Bateman wrote: That's not right You are right. What I said was for DELETE requests. Of course POST requests have a body. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In search of Nexus 10 ADB drivers
Same for me. ADB recognizes Nexus 7 but not Nexus 10. The Nexus 10 ADB dirver is launched since it appear in Windows device list as Android Composite ADB Interface -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In search of Nexus 10 ADB drivers
Fixed: after 1h of uncessuful googling and WTFs, ADB finally recognized the device I change Settings Stogae Menu USB Computer connection to Camera (PTP). The default is Media Device (MTP) and prevent ADB to find the dvice... WTF. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On Wednesday, 21 November 2012 06:45:39 UTC+1, Sean Watkins wrote: Again like I said, it seems silly to break something before providing a better way to do it, then again, i do understand there is a cause for concern. I realise privacy is a huge issue nowadays and allowing anything to read logs could prove troublesome. +1 to that. Personnaly I was interested in MediaPlayer logcat output to troubleshoot issues. Some debug info is only available in the logcatand having no easy way for a user to send it for debugging purpose is a real pain: It doesn't work ? I cannot help you. Go ask Google. -- 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] OOM with heap enough
Bitmap data is not allocated in the Java heap but in a much smaller area of native memory. So you can have several MB of Java Heap free and still have Bitmap OOM. Bitmaps are a total PITA to manage with Android. But it's doable. Except that when you thnk you are done fixing all OOM, a new surprise always awaits you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: debugging crashes on some systems ( not all )
On Wednesday, 21 November 2012 16:31:24 UTC+1, bob wrote: Sounds like you want ACRA. Seconded. It will enlighten with a new world of unsuspected fail. -- 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: (Http)URLConnection.setUseCaches(false) isn't working
On Friday, 16 November 2012 02:28:34 UTC+1, gt8887b wrote: We are experiencing this problem occasionally on Verizon phones. We don't seem to have this issue on other networks, so it seems to be something on the carrier side. Our server does include Cache-control: no-store, no-cache in its reply header. Note that carriers often have http proxies which can get in the way and mess stuff. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: random Resource$NotFoundException reports
I see this kind of errors from time to time. Probably due to bad installs or broken systems (custom ROMs) since they do not make any sense. They are in the category of weird platform fails for which there is nothing you can do, so just ignore them. -- 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] bundle passed via intent coming null
On Wednesday, 7 November 2012 12:03:40 UTC+1, Bunty syed wrote: If somebody knows this solution for the problem,please reply Try calling setDataAndType even with dummy parameters -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Want to distribute a application and manage unistallation of it remotely
On Thursday, 18 October 2012 14:55:25 UTC+2, Gautam Bisht wrote: Hi All, I want to create a application for my employee which will be distributed from my server. I want a feature that once the employee leave the company i can remotely uninstall the application from his/her mobile. Is it possible in android?? Regards, Gautam Not possible without being a system app with special permission. But nothing prevent you to add an online check in your app allowing or denying usage of the app. aka a kill switch. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MediaPlayer.setNextMediaPlayer
On Tuesday, July 3, 2012 2:42:57 PM UTC-7, b0b wrote: Related to setNextMediaPlayer it would great to have more info such as: - for which codecs will it handle gapless ? Are there restrictions ? Can't imagine there would be a problem with codecs. The issue is that you want a continuous stream of PCM data, going to audio out, not where the (decoded) PCM is coming from. According to my own tests, setNextMediaPlayer will play gaplessly for FLAC, Ogg Vorbis and WAV but *not* MP3 and AAC (M4A). There is a small 50 or 100ms gap for these. That is very disappointing. The MP3 and AAC files I tried played gaplessly in foobar2000. There you go for codecs not making a difference... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google cancelled this order. Reason: Other
Since a few days there seem to be a lot more cancelled orders with Reason: Other (describe below) than usual. Do anyone notice 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
Re: [android-developers] Re: Google cancelled this order. Reason: Other
On Sunday, 30 September 2012 21:57:30 UTC+2, Kostya Vasilyev wrote: Yes, seeing more than usual too. Tonight it is a cancel fest with 1 purchase out of 3 or 4 cancelled this way...with generally 2 or 3 cancel lines for the same user in the console. -- 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] ICS, invalidateOptionsMenu() and hardware menu key
In an ICS app (targetSdkVersion=15) with an action bar, I'm calling invalidateOptionsMenu() to force recreation of the menu. The behaviour is different whether the Android device has a hardware menu key or not. - if it has a hardware menu key, the overflow menu is not shown. The menu is shown when the pressing the hardware menu key. In that case invalidateOptionsMenu() seems to have no effect: I can see that the menu is recreated (onCreateOptionsMenu() is called), but the old menu is always shown no matter what when pressing the menu key. - if it doesn't have a hardware menu key, the overflow menu is shown. invalidateOptionsMenu() works as epected and the overflow menu is updated. Has anyone noticed this weird behaviour ? -- 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: Help: My app has violated the spam provisions of the Content Policy
Does it mean that making a list with all words of the dictionary that are not synonyms is ok ? On Sunday, 23 September 2012 22:59:14 UTC+2, Harri Smått wrote: Hi, I've never played around with keywords but I have to admit I tend to see huge difference in Google Maps keywords and the application in question here. For me the latter list seems more of a list of synonyms. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Advertising opt out
On Monday, 17 September 2012 18:18:13 UTC+2, John Coryat wrote: Many developers force users to purchase something in order to remove advertisements from their apps. While this may seem to be a good revenue model, it tends to annoy and anger users. It has some other serious consequences as well. In my experience that has not been the case: I almost get no complain about app havings ads. I've placed them only on 1 screen of the app (and not every possible screen like some apps do), and to be the least intrusive as possible. In fact, I'm not using ads to generate revenue from them and could care less about CPM, CTR, etc. Ad revenue is abysmally low anyway but I could care less. It is just one more incentive incentive to get users to purchase the full version to remove them (+ get some unlocked features). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I install our app from an APK and then update it with Google Play?
On Saturday, 15 September 2012 16:23:21 UTC+2, scadaguru wrote: Yes, if you use same signed package. No, if you use unsigned or different package name. And the versionCode on Google Play has to be higher than the installed test version. In short if you distribute non official test versions to user (beta, debugging, ...), do not forget to increment the versionCode if the final Google Play version has changed in the meantime -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help: My app has violated the spam provisions of the Content Policy
For your enjoyment here's what can be found in the description of the Google Maps app: Keywords: maps, navigation, places, latitude, directions, indoor maps, local search, Street View, traffic, transit -- 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] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet
On Tuesday, 14 August 2012 23:10:38 UTC+2, Acubeware wrote: Thank you for your suggestion. I'll try this out if the user is willing and post my findings. Any news on this ? I have a few users with the same issue on el-cheapo ICS tablets... -- 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: Instantiating (but not attaching!) a View from a non-UI thread
On Thursday, 16 August 2012 03:47:02 UTC+2, MagouyaWare wrote: Then you would need to talk to the makers of the roms that are doing this... Yes after even more digging deeper, it is due to a recent CM commit: http://review.cyanogenmod.com/#/c/18319/1 which is enabled if build type != user. That's the case in CM9 since for some reason they only know about, build type = userdebug. It is stupid to have this patch enabled by default as it affects performance for all their users. As for onCreate() you shouldn't really be doing ANYTHING except calling setContentView() and initializing a few member variables. Anything else needs to go in a separate thread (perhaps using AsyncTask) to do heavy initialization/work... Yes absolutely, using threading or lazy initalization when appropriate. onCreate(), onResume(), onStart() have to execute as fast as possible. The only limiting factor here is is the time taken by loading layouts which cannot be easily reduced or reduced at all. -- 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: Instantiating (but not attaching!) a View from a non-UI thread
It seems that inflating views just isn't very fast, even with the binary XML format and stuff. Yes it can be very slow for complex layouts. It is unfortunate that it is not safe to invoke the layout inflater in a thread to preload the layout while displaying a loading screen , to avoid the black screen effect while the app is busy in onCreate() loading the layout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App startup with heavy initialization and ANR detection
I have an app whose initialization is quite CPU and thread heavy for 3-5s on startup. During that period, the logcat reports several: 08-15 15:33:24.804: I/dalvikvm(8550): threadid=3: reacting to signal 3 08-15 15:33:24.882: I/dalvikvm(8550): Wrote stack traces to '/data/anr/traces.txt' every 500ms or so it seems. AFAIK the main (UI) thread is not blocked as all heavy initialization work is done in threads as it should. However there are a lot of concurrent stuff with many threads hapenning during these 3-5s with the CPU probably at 100%. I suspect that writing '/data/anr/traces.txt' several times on startup further slow it down. I'm asking for details on how the system detect ANRs and in particular under which conditions it produces logcat output above. Is it linked to CPU usage or simply the main thread being blocked ? That is, one or several threads pegging the CPU would give these messages (while the main thread itself is not blocked) ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread
Interesting discussion but how are we supposed to handle setContentView() (which calle the layour inflater, which instantiates views), taking a lot of time for complex layouts ? In ICS+, if the main UI thread is stuck for more than approx 500ms the system great the app with a super aggressive: 08-15 15:33:24.804: I/dalvikvm(8550): threadid=3: reacting to signal 3 08-15 15:33:24.882: I/dalvikvm(8550): Wrote stack traces to '/data/anr/traces.txt' which further slow down app startup (writing on the SD Card take some time). So if setContentView() takes more than 500ms (not an uncommon occurence), then the system penalize the app even more, writting unwanted stack traces (the app is not ANRing at this stage, it is starting). Since is not safe to call the layout inflater in an AsyncTask to load it in the background while displaying some progress display, this result in Activities displaying a black screen until onCreate() finishes which may be quite some time if setContentView() cannot be executed fast. -- 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: Instantiating (but not attaching!) a View from a non-UI thread
On Wednesday, 15 August 2012 22:07:46 UTC+2, Romain Guy (Google) wrote: An ANR is triggered if the UI thread is blocked for 5 seconds, not 500ms. Yes, but until the ANR hapens (or not if the UI thread is blocked fior say...3s), the logcat spams these messages every 500ms (CM9, ICS 4.0.4): 08-15 15:33:24.804: I/dalvikvm(8550): threadid=3: reacting to signal 3 08-15 15:33:24.882: I/dalvikvm(8550): Wrote stack traces to '/data/anr/traces.txt' Shouldn't it write this file only when the ANR happens (5s) ? -- 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: Instantiating (but not attaching!) a View from a non-UI thread
My Asus TF101 running stock ICS doesn't display the Wrote stack traces line in the logcat every 500ms the UI thread is not responding, which make me think it could be a CM9 issue or bug ? On Wednesday, 15 August 2012 22:39:09 UTC+2, b0b wrote: On Wednesday, 15 August 2012 22:07:46 UTC+2, Romain Guy (Google) wrote: An ANR is triggered if the UI thread is blocked for 5 seconds, not 500ms. Yes, but until the ANR hapens (or not if the UI thread is blocked fior say...3s), the logcat spams these messages every 500ms (CM9, ICS 4.0.4): 08-15 15:33:24.804: I/dalvikvm(8550): threadid=3: reacting to signal 3 08-15 15:33:24.882: I/dalvikvm(8550): Wrote stack traces to '/data/anr/traces.txt' Shouldn't it write this file only when the ANR happens (5s) ? -- 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: Instantiating (but not attaching!) a View from a non-UI thread
I'm now convinced it is a CM9 issue as it writes stack traces for almost any app, at startup but also sometimes during normal execution. To prove I am not affabulating, this when starting the camera app (in between lines omitted): 08-15 23:08:57.078: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:57.128: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:57.582: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:58.058: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:58.558: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:59.011: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' That could explained why I noticed some unexlained lags on my Samsung Galaxy S CM9. It looks like it spends its time writing stack traces... Well, that issue will have had the benefit to make me turbo optimize onCreate() and friends while trying to get rid of it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread
After more investigations, it look like each of this Wrote stack traces logcat line will write a /data/anr/slow??.txt : shell@android:/data/anr $ ls slow00.txt slow01.txt slow02.txt slow03.txt slow04.txt slow05.txt slow06.txt slow07.txt slow08.txt slow09.txt traces.txt My question to thows in the know is - can it be disabled ? I had high hope in a property called dalvik.vm.lockprof.threshold set to 500 but chaning it or removing it doesn't do anything. - who thought that this feature to write stack traces if the UI thread is blocked for 500ms is a good idea ? Is it to make the device even slower, writing stack trace that nobody will ever read ? This feature seems to be only be enabled on some ROMs but doesn't look restricted to CyanogenMod. On Wednesday, 15 August 2012 23:14:40 UTC+2, b0b wrote: I'm now convinced it is a CM9 issue as it writes stack traces for almost any app, at startup but also sometimes during normal execution. To prove I am not affabulating, this when starting the camera app (in between lines omitted): 08-15 23:08:57.078: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:57.128: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:57.582: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:58.058: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:58.558: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' 08-15 23:08:59.011: I/dalvikvm(30403): Wrote stack traces to '/data/anr/traces.txt' That could explained why I noticed some unexlained lags on my Samsung Galaxy S CM9. It looks like it spends its time writing stack traces... Well, that issue will have had the benefit to make me turbo optimize onCreate() and friends while trying to get rid of it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] binding to ILicensingService failing on some generic ICS tablets
I have some report of LVL check failing on some generic ICS tablets due to bindService failing in the LVL code: boolean bindResult = mContext.bindService( new Intent(ILicensingService.class.getName()), this, // ServiceConnection. Context.BIND_AUTO_CREATE); bindResult is false for an unknown reason. The logcat doesn't report any detail about the binding failure. The following conditions are met: - Google Play is installed - user purchased the app on the tablet - ILicensingService.class.getName() returns the correct value It seems to happen only on noname generic ICS tablets. If anyone has a clue or know a way to learn more on this failure, I'd be happy to know... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: binding to ILicensingService failing on some generic ICS tablets
On Monday, 13 August 2012 12:30:10 UTC+2, RichardC wrote: Was Play provided with the device or side-loaded? I've just asked the user about this. All I know about this device is that it is a ICS 4.0.3, Unbranded 7 inch tablet from Amazon. -- 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] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet
I've posted a topic today with another noname tablet showing exactly the same issue. That's annoying because some user are able to buy apps, but LVL will always fails binding the service. Somewhat the Google play should not allow that and deny selling paid apps if binding to the ILicensingService would fail. -- 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] Audio Focus, ICS lockscreen controls (RemoteControlClient) and foreground app
I've noticed a weird behaviour with music lock screen appearance and I'm curious to learn if it is a bug or something intended. An app can show music lock screen control if it has the Audio focus and has registered a RemoteControlClient instance with AudioManager.registerRemoteControlClient(). Now consider the following sequence 1. Launch Google Music. It shows the lock screen controls if you display the lock screen. fine 2. Launch another music player like PowerAMP. Make it plays something. It takes the audio focus and shows its lock screen controls if you display the lock screen. fine 3. Go back to Google Music. PowerAMP is still playing music (because Google Music had no reason to take the focus) but the lock screen controls for it are not showing anymore (no lock screen controls at all) Is that normal ? Expected behaviour would be that PowerAMP lock screen controls still show until Google Music take the audio focus but it seems that any app having a RemoteControlClient registered cancel any other RemoteControlClient from a playing background app. Note that the exact same thing happen as described above if you swap Google Music and PowerAMP in the text. I'm asking that question because my app which manage lock screen controls behaves like above, removing the lock screen controls of any background playing app, when my app go into the foreground (without requesting audio focus). PS: the documentation of RemoteControlClient doesn't mention at any point the relation with the audio focus, which is really a glaring omission. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does this licensing policy have weaknesses?
The thing is that regardless how complex your policy is, if your app is popular, it will be cracked no matter what at the LVL level. My advice is to use a forgiving policy like the LenientPolicy that deny access to the app only if it is 100% sure that the app is unlicensed (eg: Google Play returns NOT_LICENSED). Otherwise (market failure, no network connectivity), is is licensed: http://www.mail-archive.com/android-developers@googlegroups.com/msg107037.html You can protect this policy or another policy of your choosing with inventive ways to CRC-check the APK in multiple places in the code, much more difficult to find for crackers. And do not forget string obfuscation for sensitive strings in the process. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ICS/JB adaptation rate
I have some amazing numbers for my app with ICS+ adoption rate. This is an app that catters to users more likely to be technical thus having high-end phones or tablets Free version: Android 4.0.3- 4.0.444.62% Android 2.3.3- 2.3.729.46% Android 3.211.66% Android 2.25.98% Android 4.14.13% Android 3.11.94% Android 2.11.18% Numbers are even higher for the paid version: Android 4.0.3- 4.0.451.07% Android 2.3.3- 2.3.724.57% Android 3.211.37% Android 4.16.12% Android 2.24.18% Android 3.11.14% Android 2.10.59% These numbers are not representative of the cagory the app is in, with GB numbers being much higher. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ICS/JB adaptation rate
On Friday, 27 July 2012 15:28:34 UTC+2, Zsolt Vasvari wrote: Is yours (and Pent's) app new to the Market? No, 1 year. -- 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] HtcLinkifyDispatcher.apk messing default app association
On Monday, 23 July 2012 14:40:04 UTC+2, Mark Murphy (a Commons Guy) wrote: Also, you should not be getting a chooser at all -- HtcLinkifyDispatcher specifically does *not* show a chooser, but rather ensures that control proceeds to a preferred activity even if there are multiple choices. The whole point of HtcLinkifyDispatcher is to avoid showing a chooser, as suppressing the chooser may avoid the patent infringement. Not exactly. In some cases, HtcLinkifyDispatcher *shows* a custom chooser if there is no default, with no check box to mark the selected app as the default (unlike the regular chooser). It is possible it does show this popup only in the cases not covered by the patent: data type not covered by the patent or when not invoked from a Web Browser. It is unclear at this point. I have a screenshot sent by a user of HtcLinkifyDispatcher showing a custom app chooser when an Intent.createChooser() is called for video files, and this is not invoked from a Web Browser. This chooser doesn't allow to make a permanent association. Anyway, as stated above, there is not much to do about this stupid thing hooking the system. For my app, I just detect if HtcLinkifyDispatcher is detected and warn the user that default app should be set or cleared in Settings App Associations, the custom HtcLinkifyDispatcher page. -- 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] HtcLinkifyDispatcher.apk messing default app association
Thanks to the geniuses of this world, on some HTC phones (in the US only it seems), HTC has modified the default Intent Chooser to comply with some Apple absurd patents: http://www.theverge.com/2012/5/16/3024889/htc-one-x-evo-4g-lte-custom-android-build-apple-patent-linkify The consequence is that the user is presented with a custom Intent Chooser without the Use by default for this action check box. It also has some side effect: I'm using this code to get the default video player app if any: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(http://1.2.3.4/video.avi;), video/*); ResolveInfo resolveInfo = context.getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); It works fine on all device but when that HtcLinkifyDispatcher.apk is installed, above resolveInfo will point to HtcLinkifyDispatcher itself which when launched, display the custom HTC intent chooser. This makes knowing the default app for video impossible to know as this damn thing hooked the system. As anyone dealt with this and found a workaround, or should I say to my users to live with it (always seeing the HTC app chooser when clicking a video in that case), or to root their phone to uninstall the damn APK ? I would test this myself but the APK seems to be only installable on HTC devices as it uses android:sharedUserId=android.uid.system Many thanks to Apple and HTC for this mess :p. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Jelly Bean and Strict Mode
On Friday, 20 July 2012 10:33:46 UTC+2, BoD wrote: Wait, I'm not sure I understand. Are you saying StrictMode configuration calls (setThreadPolicy, setVmPolicy) no longer work if made in Application.onCreate? (We can expect most apps make the calls there.) -- BoD Exactly. StrictMode thread policy (and it seems only thread policy) is restored to the default settings by the framewrok after onCreate() is called. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Maximum number of thread created by an Android activity
On Tuesday, 17 July 2012 23:42:41 UTC+2, michael s wrote: Hi, Is there a limit for the number of thread created by an Android activity runs on a phone? If yes, how can I find out such limit? Thank you. It depends on devices but on most of them this limit is set to 42 threads. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly Bean and Strict Mode
Thank you for your in-depth analysis. I've ended up with this, call in the Application derived class onCreate(): private void setLaxStrictMode() { if(Build.VERSION.SDK_INT Build.VERSION_CODES.GINGERBREAD) return ; if(Build.VERSION.SDK_INT Build.VERSION_CODES.JELLY_BEAN) { StrictMode.setThreadPolicy(ThreadPolicy.LAX); log.info(StrictMode: LAX); } else { new Handler().postAtFrontOfQueue(new Runnable() { @Override public void run() { StrictMode.setThreadPolicy(ThreadPolicy.LAX); log.info(StrictMode (JB): LAX); } }); } } Now the real question is if the change in handleBindApplication() was intended, or if it is a real bug. In any case it broke my app on JB, and got me a few expeditive 1-star comments on Google Play -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly Bean and Strict Mode
On Monday, 16 July 2012 22:25:49 UTC+2, Ievgenii Nazaruk wrote: Just curious, how did this influence your application? Do you access network layer from UI thread? Yes. I use a large external library that calls InetAddress.getHostName() as part of its init, on LAN ip addresses only. This call can block, up to 10s if DNS resolution fail (a lovely behaviour of DNS resolution). I could theorically init this library in its own thread, but it is not really worth the trouble: if LAN DNS resolution fails, the device has probably larger issues than my app not responding. All other networking calls is done in separate thread as it should. -- 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On Sunday, 15 July 2012 11:08:13 UTC+2, Ran wrote: I was definitely running the JB emulator. So if you install aLogcat on the emulator, you can see only your own app logs? and nothing else? using aLogcat in the JB emulator I could see all system logs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
in JB, a useful debug app like aLogcat becomes useless as it i unable to retrive the full log. I've had the perfect example a few mins ago. A JB user contacting me for an issue with my app and requiring that he send me a full log to troubleshoot WTF MediaPlayer is doing. Impossible easily on JB as aLogcat is not working anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Jelly Bean and Strict Mode
Ok found the cause of StrictMode.setThreadPolicy() not working. I was making this call in the onCreate() of a subclass of the Application class. This worked prior to Jelly Bean. Now in JB, it must be called after an Activity's onCreate() to take effect. Looks like the default StrictMode ThreadPolicy initialization done by the framework is not done the same way in JB than prior versions. -- 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] Jelly Bean and Strict Mode
It seems that in the JB emulator and the JB developer preview, that StrictMode checks are always enabled regardless of what the app sets as a policy with StrictMode.setThreadPolicy(). In particular ThreadPolicy.LAX seems to be ignored. It is not the case in the 4.0.3 emulator. Can anyone confirm that it is no longer the case in JB final running on the Nexus 7 ? -- 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: Showing Overflow menu button on ICS.
On Wednesday, 11 July 2012 18:12:59 UTC+2, Dianne Hackborn wrote: It's a bug in the app; the app isn't using the standard action bar. Btw what is the rationale for the system to never display the overflow menu on ICS phones having a hardware menu key ? Isn't that bad for discoverability, one of the benefits of the overflow menu ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
The thing is that it is better to not rely on READ_LOGS to (for example) provide logs to ACRA. The bonus is that your app will not need that permission which is kind of scary. How can it be done ? - wrap all your logging calls into functions adding your log message + any other metadata (like tag or timestamp) to a cache were you keep the last n log lines. Can be done with a simple LinkedHashMap overriding removeEldestEntry(). - modify ACRA by adding a custom column that will contain the content of the log cache. When the crash report is constructed, fill that column with the cache data - profit! -- 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: Showing Overflow menu button on ICS.
On Thursday, 12 July 2012 19:01:26 UTC+2, Dianne Hackborn wrote: On Thu, Jul 12, 2012 at 2:54 AM, b0b wrote: Btw what is the rationale for the system to never display the overflow menu on ICS phones having a hardware menu key ? Isn't that bad for discoverability, one of the benefits of the overflow menu ? It would be redundant, and this behavior is consist with the long standing UX for devices with a physical menu button. This is really dabatable and a matter of personal opinion...I would have liked the Action Bar of my app to look the same weather there is a physical menu button or not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
Yes reading logs other than you app's has legitimates uses: how many times have I asked a user to send me a log saved with aLogcat, to troubleshoot possible issues related to the platform itself (damn you MediaPlayer!) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Easy and fast String obfuscation?
On Friday, 6 July 2012 12:47:03 UTC+2, Fran wrote: Hi there, I am looking for a way to obfuscate some strings in a way that they may be unobfuscated later. The point is that my app -a casual game- will take some lines from a file on an http server, and I do not want to have it as readable plain text. Why not sending it over https ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help with intent-filter
I've written an intent-filter to receive Picasa images shared from the Gallery app on Android 2.x (on 3+ it is not the same intent but this is a different topic): intent-filter action android:name=android.intent.action.SEND / category android:name=android.intent.category.DEFAULT / data android:mimeType=text/plain /intent-filter Basically the data (Picasa image URL), is in the EXTRA_TEXT extra. This work fine but it has the side effect that my app also registers in the Youtube app share menu, and my app do not manage youtube links. The difference between the Gallery intent and the Youtube intent is that Youtube add a Url to the intent (pointing to the yoube page). My question is to know if it is possible (and if so how) to restrict the intent above to intent *not* having an Url. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MediaPlayer.setNextMediaPlayer
Related to setNextMediaPlayer it would great to have more info such as: - for which codecs will it handle gapless ? Are there restrictions ? - does it work with http URIs passed to setDataSource() ? -- 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: Renderscript Deprecated
The cool APIs of today are the deprecated APIs of tomorrow ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: new look for the android app developers website
Old pages were better, in particular they were more readable. Ah changing stuff for the sake of changing stuff... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using HttpClient in Desktop and HttpURLConnection in Android
If you are happy and familiar with HttpClient, use it. But the Android HttpClient client version is old and buggy and unmaintained and I wouldn't use it as is. Hopefully you can use the latest jars from the Apache HttpComponents site, but you will have to repackage them in another package root than org.apache with a tool like JarJar (for example com.mycompany.org.apache...) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Showing Overflow menu button on ICS.
Unless I missed something in the previous discussions, or there has been a breakthrough since, there is NO possible way to make the overflow button show up if there is a physical hardware key. There is. With hack below you can force the appearance of the overflow menu even if there is a physical button menu with target SDK = 14. Of course you must never use it since it is a horrible hack, and nobody shall use hacks ever, especially on Android ! static public void setHasPermanentMenuKey(Context context, boolean value) { if (isICSOrLater()) { ViewConfiguration config = ViewConfiguration.get(context); try { Field f = ViewConfiguration.class .getDeclaredField(sHasPermanentMenuKey); f.setAccessible(true); if (f != null) { f.set(config, value); log.info(Successfully hacked permanent menu key); } } catch (Exception ex) { log.info(Unable to hack permanent menu key: + ex); } } } -- 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: BitmapFactory.decodeByteArray *not* failing on a corrupt jpg file
On some 2.3.x version it was worse: a corrupted image could make native decoding functiond block forever -- 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