Re: [android-developers] Removing Saved WiFi Networks

2016-04-28 Thread Kostya Vasilyev
So when I connect to a WiFi network via standard Android App, so via > Android prefences, I only can delete this WiFi via Android prefences and > not with any other App? > > Why? :-) And where is that decriped? Thanks! > > > > > Am Donnerstag, 28. April 2016 20:51:19 UTC+2 s

Re: [android-developers] Removing Saved WiFi Networks

2016-04-28 Thread Kostya Vasilyev
On 6.0 and above, a WiFi network can only be modified or removed by same exact app as originally created this network. -- K 2016-04-28 21:39 GMT+03:00 Hogga : > Hi, > > I´ve an App in which I want to remove saved Wifi networks, by selecting a > specific. > > Here is my

Re: [android-developers] Why am I getting this Google Play optimization tip

2016-04-08 Thread Kostya Vasilyev
Those probably come from a library. David Toledo 8 апреля 2016 г. 9:01:15 написал: Hello Developers I received the following optimization tips in Android Developer Console *You translated the APK into English (United Kingdom), Portuguese (Brazil) and Russian but not

Re: [android-developers] Play Store doesnt recognize my app as Tablet ready

2016-02-28 Thread Kostya Vasilyev
I think they have some sort of logic (behind the publishing console) to detect if your tablet screenshots are sufficiently different from phone screenshots. I once contacted Play support about it -- and they wrote back that my app doesn't look sufficiently different on tablets, so will not get

Re: [android-developers] Re: Proguard complains about duplicate definitions of class was removed

2016-02-15 Thread Kostya Vasilyev
https://code.google.com/p/android/issues/detail?id=194513 These are "note" severity messages, not critical. You can suppress them with "-dontnote" options in your project's Proguard config. -- K 2016-02-16 0:33 GMT+03:00 'RLScott' via Android Developers < android-developers@googlegroups.com>:

Re: [android-developers] Local service, 'hardware' back and AppCompat up buttons

2016-02-04 Thread Kostya Vasilyev
No need to make it so complicated. Since you mentioned that your objects aren't parcelable -- we're talking about sharing data between various places all within same process (VM). You can just pass them around the way you normally would between methods / classes. To make it cleaned, I'd look

Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2015-12-08 Thread Kostya Vasilyev
It's been speculated that this is a requirement of European customer protection laws. Let's say someone has an issue with your paid app and you aren't able to resolve it over email (and let's imagine you're irresponsible and ignore the user's request to refund). Knowing that address, the

[android-developers] Android 5.0, 5.1 mobile radio active

2015-04-08 Thread Kostya Vasilyev
Hi, There seems to be a fairly common issue seen on Android 5.0 and 5.1: System battery stats reporting really high percentage of battery use for some apps, seemingly at random, and then -- -- a reasonable wake lock time and a much higher mobile radio active time. The wake lock value may be in

Re: [android-developers] Android: Google drive integration, what is “com.google.android.gms.version”?

2015-04-06 Thread Kostya Vasilyev
crashes with stack traces saying that version 658700 was expected. I'm wondering if my solution, importing the version.xml file, will prevent or result in crashes on devices with older versions and/or devices with newer versions? On Monday, 6 April 2015 09:54:06 UTC-4, Kostya Vasilyev wrote

Re: [android-developers] Android: Google drive integration, what is “com.google.android.gms.version”?

2015-04-06 Thread Kostya Vasilyev
This is the minimum required Google Play Services version. When a device has a lower version, the system will prompt the user to update via a status bar notification saying app XXX requires Google Play Services update (or some such), linked to Google Play app. -- K 2015-04-06 16:28 GMT+03:00

Re: [android-developers] Getting exception when clicking button to connect to soap and return dataset

2015-03-19 Thread Kostya Vasilyev
The relevant stanza from your logcat is: 03-18 16:34:05.627: E/AndroidRuntime(9005): at com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view( *ViewInventoryActivity.java:58*) Now you just need to debug and fix this part of your code. -- K 2015-03-19 22:06 GMT+03:00

Re: [android-developers] INSTALL_FAILED_DUPLICATE_PERMISSION

2015-02-20 Thread Kostya Vasilyev
I'm seeing this with android:protectionLevel=normal too. Since Android doesn't grant permissions that had not been declared yet, this forces the user to install apps declaring / using the permission in a certain order. This is a pain for the user, so the developer of one app that works with

Re: [android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-20 Thread Kostya Vasilyev
not asking you to open-source code from your codebase. Kris On Thu, Feb 19, 2015 at 4:17 PM, Kostya Vasilyev kman...@gmail.com javascript: wrote: A service turned inside out A mediator class that manages a pool of threads, submits / cancels / executes task objects, manages the wake

Re: [android-developers] Re: Which pattern is most common for apps that involve communication with servers?

2015-02-20 Thread Kostya Vasilyev
For me, all network activity is performed by tasks which are executed by executors on a pool of threads. Not Java executors, but something a bit more flexible for my needs -- priorities, cancellation, per-thread affinity based on each task's account, etc. The data is written to a database,

Re: [android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-19 Thread Kostya Vasilyev
A service turned inside out A mediator class that manages a pool of threads, submits / cancels / executes task objects, manages the wake lock (based on having tasks). And a service whose only responsibility is to do startForeground / stopForeground when it's told to. All in the same process.

Re: [android-developers] BANNING APPS ON PURPOSE

2015-01-01 Thread Kostya Vasilyev
I think you *might* be able to do something under the DMCA -- if you never signed the rights to those apps (copy, distribute, create derivative works...) over to the customer -- or any sort of license to distribute, etc. -- and so you're still the copyright owner on those apps (works). I'm not a

[android-developers] Re: New Google Play Services Library causes ANR

2014-12-22 Thread Kostya Vasilyev
Looks like a classic two-thread deadlock. Thread main holding one monitor, and waiting for thread client_id_fetcher while trying to lock another: main prio=5 tid=1 MONITOR | group=main sCount=1 dsCount=0 obj=0x40e70a78 self=0x57017010 | sysTid=24172 nice=0 sched=0/0 cgrp=apps handle=1074714076

Re: [android-developers] ViewPager pages not drawn

2014-12-22 Thread Kostya Vasilyev
On Sunday, December 21, 2014 6:15:44 AM UTC+3, Doug Gordon wrote: SOLVED! After tracing the execution through ViewPager and FragmentPagerAdapter and trying to explain the very strange behavior I was seeing, I eventually discovered that when I wrote my fragments extending Fragment and

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Kostya Vasilyev
. On Friday, December 19, 2014 4:57:43 PM UTC-5, Kostya Vasilyev wrote: Have you tried debugging into ViewPager code? To see if your fragments' views are actually there and how they're laid out? Another thing I often use in cases like this -- is to set the background color of various views

Re: [android-developers] ViewPager pages not drawn

2014-12-19 Thread Kostya Vasilyev
Have you tried debugging into ViewPager code? To see if your fragments' views are actually there and how they're laid out? Another thing I often use in cases like this -- is to set the background color of various views to distinct noticeable colors, like pink, cyan, etc. In this case, I'd try

Re: [android-developers] Dex Limit workarounds- ADT or Android Studio only?

2014-12-17 Thread Kostya Vasilyev
I feel your pain about Eclipse. Google Play services just recently was split into multiple libraries. Assuming you don't need Google Games and Google Wear and Google Fitness and Google Helicopters and Google Sandwiches and Google Wallet and Google Kitchen Sink all at the same time -- you should

Re: [android-developers] Simple PagerAdapter does not display views

2014-11-24 Thread Kostya Vasilyev
Did you properly implement the adapter's isViewFromObject? How about getItemPosition? -- K 2014-11-25 0:22 GMT+03:00 Doug Gordon gordo...@gmail.com: I have a fragment in which I want to display a number of similar pages using ViewPager. For some reason I thought that it would be simpler to

Re: [android-developers] Re: SSLHandshakeException errors on Android 5.0?

2014-11-15 Thread Kostya Vasilyev
Do you use SSLCertificateSocketFactory (with caching?) https://github.com/android/platform_frameworks_base/blob/master/core/java/android/net/SSLCertificateSocketFactory.java https://github.com/android/platform_frameworks_base/blob/master/core/java/android/net/SSLSessionCache.java A lot of

Re: [android-developers] Untrusted Server Certificate in Android Studio(0.8.14)

2014-11-13 Thread Kostya Vasilyev
Looks like your Internet provider is pulling an MITM on you (for good reasons, I'm sure). I'm attaching a screenshot of services.gradle.org from Chrome. As you can see, it's issued by DigiCert. -- k 2014-11-13 15:38 GMT+03:00 Innolab innolab...@gmail.com: Hi, I am trying to compile a

Re: [android-developers] SSLHandshakeException errors on Android 5.0?

2014-11-06 Thread Kostya Vasilyev
I recall seeing a bug report in the preview tracker - had to do with connecting to Apple's iCloud mail servers (IMAP), and someone also reported an issue with http POST losing some data. Don't have a link handy, but should be possible to find. In addition, I've seen some SSL failures after a

Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2014-10-01 Thread Kostya Vasilyev
2014-10-02 0:07 GMT+04:00 jtoolsdev brianjto...@gmail.com: I still want to know what EU laws they are complying with? I don't see anything about developer addresses in the letter the EU sent to them. Also if you read the new agreement, section 3.7 shows the refund period as 48 hours instead

Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2014-09-30 Thread Kostya Vasilyev
septiembre de 2014 10:14:36 UTC-3, Kostya Vasilyev escribió: But wait, there is more. New developer policy -- from September 25 -- has this (new): For paid Products or in-app transactions, you must respond to customer support inquiries within three (3) business days, and within 24 hours

Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2014-09-26 Thread Kostya Vasilyev
can't imagine people knocking on my door neither, this is ludicrous... El jueves, 25 de septiembre de 2014 16:42:47 UTC-3, Kostya Vasilyev escribió: Yes, Google's communication could be better here. I guess they just don't really care about explaining. The reason still looks ridiculous

Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2014-09-25 Thread Kostya Vasilyev
the users know why. Everyone else is raising their prices including your local sandwich shop. Yesterday's 99 cent app should be $1.25 by now. On Wednesday, September 24, 2014 1:29:33 PM UTC-7, Kostya Vasilyev wrote: @Jose - I contacted Play support about it and they explained that it has to do

Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2014-09-24 Thread Kostya Vasilyev
@Jose - I contacted Play support about it and they explained that it has to do with European customer protection laws, and there is no way they will make any exceptions. So I think you can forget about reverted too. @Noby - do you know if it should be under Business Information - Public Profile -

Re: [android-developers] Physical address is required for paid apps or in-app purchases

2014-09-19 Thread Kostya Vasilyev
Not just a blatant privacy violation. They're putting developers' lives at risk. Not every developer lives in relatively safe place like the US, or Western Europe. The world is larger than that, and there are places where criminal activity is relatively high. It's quite easy for someone to do

Re: [android-developers] Re: Tracking down multiple Activity instances in memory

2014-09-17 Thread Kostya Vasilyev
In my experience, WeakReferences are collected quite aggressively by Android 2.3 and higher. Haven't had a problem with non-static inner classes -- I don't think those are always a memory leak, it all depends on the lifespan duration of the inner object instances. I think MAT is a great tool for

Re: [android-developers] In App Billing - Signature Verification failed.

2014-08-14 Thread Kostya Vasilyev
Or with the just updated Google Play app. 15 авг. 2014 г. 3:11 пользователь Nathan nathan.d.mel...@gmail.com написал: In addition, I wonder if it has anything to do with this spec: Kernel version: 3.4.0-cyanogenmod-g433243c build02@cyanogenmod ) -- You received this message because you are

Re: [android-developers] Re: Pressing Menu button with ActionBar shows an dark overlay

2014-08-11 Thread Kostya Vasilyev
Might be a bug in the 3.* emulator -- you way want to try a 4.1+ emulator image instead. And as far as setting your minSdk -- you might set it to 4.0 or better yet, 4.0.3 (API 15). Android 3.* is virtually non-existent in the wild now, same goes for 4.0.1 - 4.0.2. -- K 2014-08-11 23:06

Re: [android-developers] help with patch 9 image file

2014-07-19 Thread Kostya Vasilyev
Maybe try putting it under drawable-nodpi to avoid scaling? -- K 2014-07-19 23:45 GMT+04:00 dashman erjdri...@gmail.com: I've got a simple .9.png file. Trying to create a red background with a 1-pixel gray border. My png file is 5x5 pixels --B-- -GGG- BGRG- -GGG- - B black G

Re: [android-developers] ADT/SDK 23 broken on Mac - annotations.jar

2014-07-01 Thread Kostya Vasilyev
Tor, But the redundant .feature.feature is still there in 23.0.1. I mean the Eclipse tools. This is 23.0.1: com.android.ide.eclipse.ddms.*feature.feature*.group And this is 22.6.3: com.android.ide.eclipse.ddms.*feature*.group So the process of *updating* Eclipse tools from 22 to 23 is still

Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT

2014-06-29 Thread Kostya Vasilyev
2014-06-30 2:11 GMT+04:00 Jim Graham spooky1...@gmail.com: On Mon, Jun 30, 2014 at 12:18:17AM +0300, Harri Sm?tt wrote: Removing the existing ADT Plugin from Software Sites in preferences - then adding it back using Install New Software - finally let me upgrade ADT to the latest version

[android-developers] Android Preview L and splitActionBarWhenNarrow

2014-06-28 Thread Kostya Vasilyev
Did anyone else playing with Preview L notice their splitActionBarWhenNarrow application attribute not working, when using the Material theme? I wonder if this is an accidental bug, or a intentional change (given that Google's own apps seem to not be using a split action bar these days)? -- K

Re: [android-developers] Strange Eclipse problems

2014-06-27 Thread Kostya Vasilyev
Might be related to this: https://plus.google.com/111661559774274998746/posts/FSqUAwwikBd The comment by Joe Rogers Basically, the 23 version of ADT has wrong package name. -- K 2014-06-27 23:55 GMT+04:00 Jim Graham spooky1...@gmail.com: I'm running Eclipse (Indigo), and am seeing some

Re: [android-developers] Setting/Determining size of PopupWindow based on contents.

2014-06-24 Thread Kostya Vasilyev
Yes. You can use different MeasureSpec values depending on what you actually need (e.g. staying within a certain width). -- K 2014-06-24 7:23 GMT+04:00 Nathan nathan.d.mel...@gmail.com: Is this the idea? int widthSpec = MeasureSpec.UNSPECIFIED; int heightSpec =

Re: [android-developers] Setting/Determining size of PopupWindow based on contents.

2014-06-23 Thread Kostya Vasilyev
Just measure the popup's content view by calling contentView.measure with the appropriate MeasureSpec objects. Add padding from the popup's background, if appropriate. Viola! You have the exact size in pixels to use as the popup window's width and height. Some sample code from the framework

Re: [android-developers] Recursive Activities - not possible?

2014-06-18 Thread Kostya Vasilyev
How about: onBackPressed() { File newDirectory = mCurrentDirectory.getParentFile(); if (newDirectory != null) { mCurrentDirectory = newDirectory; reloadFileList(mCurrentDirectory); } } -- K 2014-06-18 23:16 GMT+04:00 'RLScott' via Android Developers

Re: [android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Kostya Vasilyev
2014-06-06 19:12 GMT+04:00 Simon Giddings mr.s.giddi...@gmail.com: Thanks for this Harri, Tried it, to no avail. In fact, what I have found is that the new fragment, when it is animated in, comes in *under* the existing fragment. What I need is for it to be inserted *over* or *before* the

Re: [android-developers] Re: Share Loader's data between multiple fragment

2014-06-04 Thread Kostya Vasilyev
Couldn't you abstract the different ways of loading data inside the loader? ...and pass some sort of unique data ID to each fragment to identity the data, but not the actual way of obtaining it (network, content provider, etc.). Then you'd be able to package this ID into each fragment's

Re: [android-developers] Custom preference entry

2014-05-31 Thread Kostya Vasilyev
I highly recommend looking in the android-sdk directory under platforms/platform-N/data/res. This is where you can find the layouts / styles / etc. used by the platform itself. I find styles.xml, themes.xml and attrs.xml to be the most useful. Many of those styles / attributes / layouts can be

Re: [android-developers] Navigation Drawer Icon Theme/Color?

2014-05-23 Thread Kostya Vasilyev
is that it loads a drawable, which I do not know how to apply a tint to. There could be something that I'm missing, but I've not found a way yet. - Kevin On Thursday, May 22, 2014 5:51:39 PM UTC-4, Kostya Vasilyev wrote: This is the class responsible for that pedestrian crossing icon: https

Re: [android-developers] Re: WrongThread exception - how to analyze/debug?

2014-05-23 Thread Kostya Vasilyev
2014-05-24 0:05 GMT+04:00 plnelson pna...@gmail.com: On Wednesday, May 21, 2014 12:23:32 PM UTC-4, Kostya Vasilyev wrote: Is there more to the message? I grepped the base framework, and came up with these: The entire message is CalledFromWrongThreadException: Only the original thread

Re: [android-developers] Navigation Drawer Icon Theme/Color?

2014-05-22 Thread Kostya Vasilyev
This is the class responsible for that pedestrian crossing icon: https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html It's in the support library. The code as it is just loads an image from a resource resource, but should be easy to change to apply a color

Re: [android-developers] Is there any functionality difference between ViewTreeObserver.removeOnGlobalLayoutListener() and .removeGlobalOnLayoutListener()?

2014-05-22 Thread Kostya Vasilyev
Looks like it was just renamed in API 16 for consistency. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/ViewTreeObserver.java 1. @Deprecated 2. public void removeGlobalOnLayoutListener(OnGlobalLayoutListener victim ) { 3.

Re: [android-developers] Re: WrongThread exception - how to analyze/debug?

2014-05-21 Thread Kostya Vasilyev
2014-05-21 20:02 GMT+04:00 plnelson pna...@gmail.com: On Tuesday, May 20, 2014 11:51:35 PM UTC-4, Jonathan S wrote: Can you copy and paste code in the *MyRemoteActivity class?* It's 700 lines of (mostly proprietary) code, so no I don't think that would be practical.Anyway,* my

Re: [android-developers] Re: position value in getView seems too big

2014-05-16 Thread Kostya Vasilyev
The value returned by AdapterView.getCount is cached. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/AdapterView.java#580 It's also updated after you've called notifyDataSetChanged:

Re: [android-developers] RelativeLayout issue

2014-05-11 Thread Kostya Vasilyev
Yep: a child with alignParentRight / alignParentBottom will cause the parent (the RelativeLayout) to stretch to the entire width / height of *its* parent. -- K 2014-05-11 17:05 GMT+04:00 Piren gpi...@gmail.com: I've come across something like that before. RelativeLayouts do not like their

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-09 Thread Kostya Vasilyev
2014-05-09 16:59 GMT+04:00 Daniel Rindt daniel.ri...@gmail.com: 2014-05-09 0:12 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: Are you absolutely sure that your code does not leak memory? How to be absolutely sure. :-) Just kidding. Have you tried using Eclipse MAT and putting the app

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-09 Thread Kostya Vasilyev
2014-05-09 18:37 GMT+04:00 Daniel Rindt daniel.ri...@gmail.com: 2014-05-09 15:53 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: Well, personally, I usually use the object histogram at the starting point -- filtered by my app's package. When I see something that looks strange, I right

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-08 Thread Kostya Vasilyev
On Friday, May 9, 2014 1:23:12 AM UTC+4, Daniel Rindt wrote: 2014-05-08 17:52 GMT+02:00 Krishna Mahadik krishna...@gmail.comjavascript:: Increase memory allocated to process bitmap. Chunk of code will be more helpful to understand what problem exactly you are facing. Thanks

Re: [android-developers] Re: fromHtml doesn't work for textview font size, any help?

2014-04-09 Thread Kostya Vasilyev
Html.fromHtml also understands header tags, from h1 to h6. The respective relative sizes are: private static final float[] HEADER_SIZES = { 1.5f, 1.4f, 1.3f, 1.2f, 1.1f, 1f, }; -- K 2014-04-09 23:22 GMT+04:00 jraanamo jukka.raan...@gmail.com: As far as I can see, when

Re: [android-developers] Creating public files

2014-04-08 Thread Kostya Vasilyev
This is a nice unofficial write-up: http://www.androidpolice.com/2014/02/17/external-blues-google-has-brought-big-changes-to-sd-cards-in-kitkat-and-even-samsung-may-be-implementing-them/ -- K On Tuesday, April 8, 2014 2:46:47 PM UTC+4, Enrique López Mañas wrote: The best reference is

Re: [android-developers] Re: Rating Hijacking !

2014-03-26 Thread Kostya Vasilyev
2014-03-26 22:28 GMT+04:00 Jose_GD jose.gonzale...@gmail.com: Any news regarding this issue? I don't know if I didn't pay attention before or if it's a brand new feature of the Play app. Now you can rate an app immediately after tapping Install (or Buy), *before* the install completes! How

Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-23 Thread Kostya Vasilyev
I think you're seeing normal Unix (and Linux) file system semantics, with respect to deleting a file that's currently open. This unlinks the name from the underlying file system, but the file itself continues to stay open, and has same content as before unlinking -- until the process that has the

Re: [android-developers] External Storage lockout in 4.4 update on some Samsung devices.

2014-02-20 Thread Kostya Vasilyev
Is it maybe same issue as described below? http://www.androidpolice.com/2014/02/17/external-blues-google-has-brought-big-changes-to-sd-cards-in-kitkat-and-even-samsung-may-be-implementing-them/ The documentation you quoted talks about android.permission.READ_EXTERNAL_STORAGE, and then you went

Re: [android-developers] Re: Android 4.4 WebView cannot load content:// urls in html page

2014-02-19 Thread Kostya Vasilyev
Oh, if that was the only WebView breakage in 4.4 :) -- K 2014-02-20 0:42 GMT+04:00 Henrik Lindqvist henrik.lindqv...@gmail.com: This is a app breaking change. Android's content sharing is built around content:// uri's, this make that impossible. Every one please star:

Re: [android-developers] Checking to see whether my service is running/active

2014-01-31 Thread Kostya Vasilyev
2014-01-31 dashman erjdri...@gmail.com: What's confusing is this. I've got the app and service running. Then using the active app-list option of the launcher, I remove the app. I would think this would kill the app - but not the service. Service.onDestroy() is not called. But now if

Re: [android-developers] Checking to see whether my service is running/active

2014-01-31 Thread Kostya Vasilyev
will use it later on for some work. On Friday, January 31, 2014 3:01:28 PM UTC-5, Kostya Vasilyev wrote: 2014-01-31 dashman erjd...@gmail.com: What's confusing is this. I've got the app and service running. Then using the active app-list option of the launcher, I remove the app. I

Re: [android-developers] Checking to see whether my service is running/active

2014-01-31 Thread Kostya Vasilyev
... but i guess i'll have to use that now. On Friday, January 31, 2014 3:34:41 PM UTC-5, Kostya Vasilyev wrote: How many threads a service / process has inside does not have any effect on how likely it's to be killed. You should expect that your app's entire process, including any services

Re: [android-developers] Re: LocalBroadcastManager.java NullPointerException at line 297

2013-12-22 Thread Kostya Vasilyev
While I can't answer the original question, here is what I would recommend: - Exclude LocalBroadcastManager from obfuscation - Break down the statement where the crash happens into several more simple ones, so you can tell where it goes wrong - Monitor crash reports 1.

Re: [android-developers] Overflow button always on in Kitkat?

2013-12-19 Thread Kostya Vasilyev
Now you'll just need to explain to your users what those three dots are :) -- K 2013/12/19 Nathan nathan.d.mel...@gmail.com Is this true? http://www.phonearena.com/news/Android-menu-button-now-on-by-default-on-all-device-with-KitKat_id50179 If so, it is a long overdue step in the right

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Kostya Vasilyev
I just did a quick test (twice, to be sure) on my Nexus 5 with 4.4.2, and found that: 1 - Having a foreground service does not prevent the process, including the service, from being killed 2 - The killed process does not get automatically restarted, at least not in any reasonable timeframe 3 -

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Kostya Vasilyev
needs fine tuning, and until then requires workaround. The workaround I'm using is very simple: I create a transparent activity from onTaskRemoved to restart my services. How dirtier can it get? Sent from GMail mobile. Rgds, Ç. Le 15 déc. 2013 13:47, Kostya Vasilyev kmans...@gmail.com

Re: [android-developers] Google Drive says Action Bars on the bottom are ok?

2013-12-12 Thread Kostya Vasilyev
Do you mean the panel that slides up and down as you scroll the documents list? Google+ does this too. I guess it's the fashionable UI pattern du jour. -- K 2013/12/12 Ken kenk...@gmail.com Just noticed this recently...Google Drive has a few action bar items at the bottom. I thought we

Re: [android-developers] testing app from PC on attached phone

2013-11-29 Thread Kostya Vasilyev
Not in any particular order: - You need drivers. Sony Ericsson makes their adb drivers available in the Windows Driver Download center (or whatever it's called), but not every manufacturer does this. For those, you'll need to either install their own (manufacturer specific, and potentially

[android-developers] Re: Selected a contact phone number

2013-11-18 Thread Kostya Vasilyev
I use this code to make the system contact picker show only those contacts which have email addresses: Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); intent.setType(Email.CONTENT_TYPE); Just checked that this works too (only contacts with phone numbers

Re: [android-developers] Re: why does SharedPreferences framework allow you to insert a preference with a null key - given it can't reload the preferences afterwards?

2013-10-30 Thread Kostya Vasilyev
Starting over with shared prefs content when something goes wrong -- looks to me like a feature, and a useful one: sometimes storage goes bad, files get corrupted, etc. Being able to put null keys into shared prefs, and it triggering the corruption handing code path later -- looks like a bug to

Re: [android-developers] does executable code change (improve) with increase in minSdkVersion declaration in manifest? is minsdk 11 declaration really needed for tablets?

2013-10-28 Thread Kostya Vasilyev
Firebreather: 2013/10/29 firebreather michaelirvingbr...@gmail.com: i'm developing on version 14 with minsdk declared of 10 (recently up from 8). [snip] http://developer.android.com/distribute/googleplay/quality/tablet.html#android-versions which has a long detailed list of 12 things needed

Re: [android-developers] Re: Google Play Music database

2013-10-28 Thread Kostya Vasilyev
... 2013/10/29 Kostya Vasilyev kmans...@gmail.com: As a developer, I feel your pain, but... ...this group might not be the best place to reach Google Music staff. Try this instead: Sorry, the link: https://support.google.com/googleplay/topic/2999684?hl=enref_topic=2952998# Clicking

Re: [android-developers] Re: Google Play Music database

2013-10-28 Thread Kostya Vasilyev
As a developer, I feel your pain, but... ...this group might not be the best place to reach Google Music staff. Try this instead: 2013/10/29 nakvic nak...@googlemail.com: Need to comment on my post: THIS IS A BUG, introduced in latest Google Play Music App. The one of the previous

Re: [android-developers] Re: Google Play Music database

2013-10-28 Thread Kostya Vasilyev
Sorry for the spam (what is it with my fingers today). Meant to post this link too: https://support.google.com/googleplay/android-developer/ -- K 2013/10/29 Kostya Vasilyev kmans...@gmail.com: ... 2013/10/29 Kostya Vasilyev kmans...@gmail.com: As a developer, I feel your pain

Re: [android-developers] does executable code change (improve) with increase in minSdkVersion declaration in manifest? is minsdk 11 declaration really needed for tablets?

2013-10-28 Thread Kostya Vasilyev
4:38:59 PM UTC-5, Kostya Vasilyev wrote: Firebreather: 2013/10/29 firebreather michaelir...@gmail.com: i'm developing on version 14 with minsdk declared of 10 (recently up from 8). [snip] http://developer.android.com/distribute/googleplay/quality/tablet.html#android-versions which

Re: [android-developers] does executable code change (improve) with increase in minSdkVersion declaration in manifest? is minsdk 11 declaration really needed for tablets?

2013-10-28 Thread Kostya Vasilyev
would not run on a 2.* device. -- K On Monday, October 28, 2013 4:38:59 PM UTC-5, Kostya Vasilyev wrote: Firebreather: 2013/10/29 firebreather michaelir...@gmail.com: i'm developing on version 14 with minsdk declared of 10 (recently up from 8). [snip] http://developer.android.com

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Kostya Vasilyev
Is the XML content maybe compressed (gzipped) by the cellular operator's proxy? Uncompressed, it would look like garbage. You can find out by checking for Content-Encoding: gzip (or maybe deflate). -- K On Thursday, October 3, 2013 2:04:53 PM UTC+4, Gaurav Sharma wrote: @Robert can you

Re: [android-developers] Re: Strange SQLite error, possibly in native code?

2013-09-30 Thread Kostya Vasilyev
. On Sunday, September 29, 2013 1:05:26 AM UTC+3, Kostya Vasilyev wrote: Hello, One of my users reports a crash like this: android.database.sqlite.**SQLiteException: no such column: _id (code 1): , while compiling: SELECT _id, generation, flags, numeric_uid, body_main_size, body_main_fetched_size

Re: [android-developers] Re: Strange SQLite error, possibly in native code?

2013-09-29 Thread Kostya Vasilyev
+3, Kostya Vasilyev wrote: Hello, One of my users reports a crash like this: android.database.sqlite.**SQLiteException: no such column: _id (code 1): , while compiling: SELECT _id, generation, flags, numeric_uid, body_main_size, body_main_fetched_size, body_alt_size, body_alt_fetc

[android-developers] Strange SQLite error, possibly in native code?

2013-09-28 Thread Kostya Vasilyev
Hello, One of my users reports a crash like this: android.database.sqlite.SQLiteException: no such column: _id (code 1): , while compiling: SELECT _id, generation, flags, numeric_uid, body_main_size, body_main_fetched_size, body_alt_size, body_alt_fetc¤ , search_token, op_flags,

Re: [android-developers] Html.fromHtml limitations.

2013-09-27 Thread Kostya Vasilyev
There was an old blog post by Mark Murphy, perhaps it's still on his site. Or just look at the source: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/text/Html.java You will want handleStartTag -- K 2013/9/28 Nathan nathan.d.mel...@gmail.com

Re: [android-developers] Re: Should SQLiteDatabases be limited to 2Gig?

2013-09-20 Thread Kostya Vasilyev
) flash disk controllers that lie to the OS and do not flush/sync properly the FS before crash/reboot, so even with transactions the DB gets corrupted in some cases. Le vendredi 20 septembre 2013 02:34:51 UTC+2, Kostya Vasilyev a écrit : Yes, but if the database can't be opened at sqlite level

Re: [android-developers] Re: Should SQLiteDatabases be limited to 2Gig?

2013-09-19 Thread Kostya Vasilyev
I also get -- rare and very unpleasant -- support emails with this error, also database disk image is malformed. Sometimes it's one of the databases used internally by WebView (and yet, a crash is a crash). Then there are rare cases when the app's database just disappears. The framework has

Re: [android-developers] Re: Should SQLiteDatabases be limited to 2Gig?

2013-09-19 Thread Kostya Vasilyev
UTC-7, Kostya Vasilyev wrote: I also get -- rare and very unpleasant -- support emails with this error, also database disk image is malformed. Sometimes it's one of the databases used internally by WebView (and yet, a crash is a crash). Then there are rare cases when the app's database just

Re: [android-developers] Re: Should SQLiteDatabases be limited to 2Gig?

2013-09-19 Thread Kostya Vasilyev
написал: On Thursday, September 19, 2013 4:31:23 PM UTC-7, Kostya Vasilyev wrote: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/database/sqlite/SQLiteDatabase.java Look for a method called onCorruption. It looks like we could, in 4.0

[android-developers] Re: Android SDK portable app?

2013-09-13 Thread Kostya Vasilyev
Not exactly what you're asking, but... I develop mostly under Ubuntu, but sometimes a bit of work on same projects under Windows. A distributed version control system works great for me. I push my changes under one OS and pull into another as needed (in my case, it's Mercurial). -- K On

Re: [android-developers] Re: Creating a list like the one in android dev guidlines

2013-08-24 Thread Kostya Vasilyev
Last I checked (using Developer Options, show view boundaries), Gmail was not using Android layouts for items inside a message item view. It's one Android view per message list item, the internals are handled internally. Now back to your original question: consider RelativeLayout:

[android-developers] Re: Designed for tablets with both minSdkVersion and targetSdkVersion tags?

2013-08-14 Thread Kostya Vasilyev
You're right, it's: targetSdkVersion = 11 OR minSdkVersion = 11 I must have been blind, and missed the or. Sorry. -- K On Wednesday, August 14, 2013 12:08:50 PM UTC+4, MobileVisuals wrote: I agree that we can't just ignore the older OS versions. I think they mean targetSdkVersion is

[android-developers] Re: Select unselect image on list view

2013-08-14 Thread Kostya Vasilyev
Why not use a state list drawable? http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList -- K On Wednesday, August 14, 2013 12:53:23 PM UTC+4, Amit Mangal wrote: Hi there, i have a list view and in that list view in each row i have image unselectimage.png.

[android-developers] Re: Designed for tablets with both minSdkVersion and targetSdkVersion tags?

2013-08-13 Thread Kostya Vasilyev
Is this the spec you're using? http://developer.android.com/distribute/googleplay/quality/tablet.html#android-versions It says: --- At a minimum, check the uses-sdkhttp://developer.android.com/guide/topics/manifest/uses-sdk-element.html element to make sure that: 1. targetSdkVersion is

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-08-13 Thread Kostya Vasilyev
(I'll do a detailed check tonight or tomorrow). On Wed, Jun 12, 2013 at 4:39 PM, Kostya Vasilyev kmans...@gmail.comwrote: Settings app: https://android.googlesource.com/platform/packages/apps/Settings/+/refs/heads/master/src/com/android/settings/LocalePicker.java Uses this: https

[android-developers] Re: buggy legacy options menu on Samsung S4

2013-08-08 Thread Kostya Vasilyev
Jay, I also downloaded your test and tried it... Had to make one change -- from Google APIs (14) to just Android 14, or it wouldn't install... The bug is there. Samsung Galaxy S4, 9505 International LTE version, comes from Germany, firmware 4.2.2 I9505XXUAMDE (different from what gjs's device

Re: [android-developers] Re: Writing file to app folder

2013-08-06 Thread Kostya Vasilyev
If the device runs Android 3.0 and above, you will need to submit the file to the media scanner before it's picked up by the MTP provider. Oh, and it looks like your file is in the app's private area -- not sure if that's at all accessible via MTP (and definitely requires rooting to see in a file

Re: [android-developers] Re: ContentResolver insert return null on 4.3

2013-08-04 Thread Kostya Vasilyev
But why would you want to directly insert data like that in the first place? The SDK has a helper class, MediaScannerConnection, which submits a file for scanning, and makes sure it's properly indexed by the system. If you're going to use VIEW_ACTION, you can subclass and wait for the scan to

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kostya Vasilyev
The i9000 - oh yeah! The file system freezes alone were a killer, and then when they implemented a fix, it was preventing apps from saving their own shared preferences. Today's top of the line Samsung devices seem to be much better (haven't run into anything on my Galaxy Note 2, myself, but

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Kostya Vasilyev
On Thursday, August 1, 2013 2:01:29 AM UTC+4, Nathan wrote: In older Android versions that error was not treated gracefully and the database file could get corrupted. In newer versions you are greeted with an exception. When the database file gets corrupted, the default behavior of

Re: [android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kostya Vasilyev
Since pretty much everyone agrees that the CTS misses things... Wouldn't it be worthwhile to not only track device specific issues, but to also add tests to a fork of CTS? Google might then accept those enhancement, or might not, it would still be helpful in any case. -- K On Wednesday, July

Re: [android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-28 Thread Kostya Vasilyev
I don't have one, can only share more pain :) Most users are very reluctant to accept explanations like that, because the devices are much more expensive than the typical Android app. It's just psychology: I paid $xxx for this, and it's 'top of the line', do you mean to tell me there is

  1   2   3   4   5   6   7   8   9   10   >