Re: [android-developers] Is anyone able to run the 4.3 emulator under Linux?

2013-07-28 Thread Kostya Vasilyev
It helps, thanks a lot! I feel so special (again) :) -- K 2013/7/28 Yaron Reinharts yaron.reinha...@gmail.com Hi, No problem here (Ubuntu 12.04) Hope this helps /Yaron On 07/27/2013 06:54 PM, Kostya Vasilyev wrote: Just tried to run the 4.3 Android emulator under Linux (mine

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

2013-07-28 Thread Kostya Vasilyev
A testing service still -- focuses only on specific device models, assuming deterministic failures, ignoring weird shit that can happen on seemingly any of them, even the good ones. Going back to my Youtube video of Google Maps causing a device reboot: Is the Galaxy Nexus a bad device? No.

[android-developers] Is anyone able to run the 4.3 emulator under Linux?

2013-07-27 Thread Kostya Vasilyev
Just tried to run the 4.3 Android emulator under Linux (mine is Ubuntu 13.04, x64), not working for me at all: https://code.google.com/p/android/issues/detail?id=58120 Has anyone tried this yet? Is it working for you? -- K -- -- You received this message because you are subscribed to the

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

2013-07-26 Thread Kostya Vasilyev
The conversation so far, and app testing services, assume that there are certain broken device models / firmwares and they are broken in a deterministic way. This implies that those bad devices can be discovered and excluded or workarounds implemented, again, in a deterministic way. From my

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

2013-07-26 Thread Kostya Vasilyev
devices! On Fri, Jul 26, 2013 at 3:19 PM, Kostya Vasilyev kmans...@gmail.com wrote: The conversation so far, and app testing services, assume that there are certain broken device models / firmwares and they are broken in a deterministic way. This implies that those bad devices can

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

2013-07-25 Thread Kostya Vasilyev
My solution: banging my head against the wall really hard. Fed up with it too. Maybe I picked the wrong line of work, and should become a garbage truck driver instead. It's not just crashes, it's things that some devices do, which break the UI in significant (to the users) ways. Nothing like

Re: [android-developers] Check For Internet Connection

2013-07-16 Thread Kostya Vasilyev
You didn't say how exactly this fails in your app, but... - I've seen failures with my app not being able to connect to (external) servers at all, reported by a few users, even when their devices had apparently working Internet access. The magic reinstall fixed it for them. - I've also seen some

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Kostya Vasilyev
The framework code that Piren posted a link to above (below?) accesses the Intent object before calling the receiver's onReceive: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/app/ActivityThread.java#2350 Line 2350:

Re: [android-developers] Re: Large amount of orders not complete over this weekend

2013-07-08 Thread Kostya Vasilyev
me too Almost all of them since June 6th. They show as shipped, but the left circle indicator is just grey, not orange as someone else reported, and not green, as it should be. This is listed on the Google Play status dashboard, under Billing issues

[android-developers] Re: HTC One V getExternalStorageState

2013-06-22 Thread Kostya Vasilyev
Is this yet another phone that has a large built-in memory partition -- *and* a microSD card? This has been a mess for years. Android APIs will return the large built-in memory partition as the external storage, and you're on your own trying to discover the path to microSD.

Re: [android-developers] Socket Connection Timeouts - which SSLSocketFactory is best.

2013-06-20 Thread Kostya Vasilyev
Wouldn't call myself a network programming expert, but here is my code: import javax.net.ssl.SSLSocketFactory; // Create a socket without connecting SSLSocketFactory socketFactory = SSLSocketFactory.getDefault(); Socket socket socket = socketFactory.createSocket(); // Connect, with an explicit

Re: [android-developers] Socket Connection Timeouts - which SSLSocketFactory is best.

2013-06-20 Thread Kostya Vasilyev
seconds because that is used by AndroidHttpClient. I would just trust whatever the defaults are, but somehow I both don't know what they are and, well, I don't trust them. Nathan On Thursday, June 20, 2013 12:38:35 PM UTC-7, Kostya Vasilyev wrote: Wouldn't call myself a network programming

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

2013-06-12 Thread Kostya Vasilyev
Settings app: https://android.googlesource.com/platform/packages/apps/Settings/+/refs/heads/master/src/com/android/settings/LocalePicker.java Uses this: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/com/android/internal/app/LocalePicker.java It's

Re: [android-developers] revision 17 of the Android SDK Tools NoClassDefFoundError

2013-05-22 Thread Kostya Vasilyev
I ran into the same, with a class defined in the application's project (not as a library). Fixed by marking Android Private Libraries as exported (Project props - Java build path - Order and export)... even though the code in question was defined in a .java file under src, not a library.

[android-developers] Re: Exclude files from classpath when building with Ant

2013-05-22 Thread Kostya Vasilyev
Looking at the SDK's build.xml, I don't see any exclude arguments in the javac task. I'd say hack it in if you need it. http://ant.apache.org/manual/Tasks/javac.html -- K On Wednesday, May 22, 2013 7:05:06 AM UTC+4, Deepwinter wrote: In Eclipse I have some sources that I exclude from the

Re: [android-developers] ListView with selected state does not work when list item view has a background

2013-05-21 Thread Kostya Vasilyev
Miha, On Tuesday, May 21, 2013 12:57:38 PM UTC+4, Miha wrote: Kostya, how do you handle checked states then? I see two possible solutions: 1) in OnItemClickListener, call adapter.setChecked(position), which sets the checked item position and then calls notifyDataSetChanged() 2) in

Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-20 Thread Kostya Vasilyev
If your minSdkVersion is now 15 (Android 4.0.3), you might watch to check compatibility with other devices... Unless you've deliberately chosen to focus on Android 4.0.3 and higher. -- K On Monday, May 20, 2013 6:04:09 PM UTC+4, bob wrote: Well, I changed from Android 1.5 to '4.0 and up',

Re: [android-developers] ListView with selected state does not work when list item view has a background

2013-05-20 Thread Kostya Vasilyev
Maybe it's just me, but... On Monday, May 20, 2013 6:39:14 PM UTC+4, MagouyaWare wrote: On Thu, May 16, 2013 at 3:14 AM, Miha miha.v...@gmail.com javascript:wrote: One possible solution I see is modifying the backing adapter implementation and providing a different view based on the

Re: [android-developers] Get context of PopupMenu like ContextMenu

2013-05-18 Thread Kostya Vasilyev
You should be able to associate the group position, or group object using final variables and/or view tags... Something like: getGroup() ... { final int groupPosFinal = groupPos; imageView.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { ...use

Re: [android-developers] What is wow factor about android studio in compare to Eclipse.

2013-05-16 Thread Kostya Vasilyev
TreKing treking...@gmail.com 16 мая 2013 г. 20:06:34 написал: On Thu, May 16, 2013 at 10:18 AM, Justin Anderson magouyaw...@gmail.comwrote: I've never liked Eclipse workspaces... It just doesn't make sense to me. Why would I want to have all my projects open at the same time? Just feels

Re: [android-developers] Re: Launch Mode : singleTop FAILS on first time app start of signed build

2013-04-26 Thread Kostya Vasilyev
Eclipse launches apps with slightly different flags in the intent, this can sometimes cause subtle lifecycle differences. Fresh from my logcat (Galaxy Nexus, 4.2.2 stock): - Launch from Eclipse: 04-26 20:51:38.274 I/AccountListActivity(17735): * onCreate: Intent {

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
Robert, Could you elaborate on the issues like these part? Are there changes in Android that developers should be made aware? I also have an app that uses long persistent server connection, and using GCM is not an option either. It seems that with Android 4.1 and 4.2, connections often go dead

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Robert Greenwalt rgreenw...@google.com On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev kmans...@gmail.comwrote: Robert, Could you elaborate on the issues like these part? Are there changes in Android that developers should be made aware? By issues like these I just meant

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: I've seen GTalk's service menu, it seems it has separate keep-alive logic for mobile vs. WiFi Why? I can't tell just by reading the Android networking docs. I

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Robert Greenwalt rgreenw...@google.com Most ipv4 is behind nats. Even on the carrier side. Each NATing agent will have a timeout - no activity and they forget the connection state and your connection is broken. Keeping the device from going into deep sleep helped avoid the

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev kmans...@gmail.comwrote: Should there be a system level setting to turn off those power optimizations, if they're known to not be compatible with all (taken as a metaphorical term) access point

Re: [android-developers] Re: How to compile APK using different constant

2013-04-08 Thread Kostya Vasilyev
This certainly can be done with ant, by hacking on the build scripts. In my app, I'm including different additional source folders depending on what market I'm building for. The rest of the app's code uses abstract base classes, whose concrete subclasses are implemented in those additional

Re: [android-developers] Are developers keen on using the latest Android 4.2 and stop supporting Android 4.0 and 4.1?

2013-03-30 Thread Kostya Vasilyev
Android is a work in progress. Something's always broken, and then you have device manufactures screwing with things on top of it. What versions you support is a judgement call. Right now, according to Google's own metrics, Android 2.1 - 2.3 is still 50% of actual user's devices, and 4.2 is only

Re: [android-developers] Re: App works on Samsung Galaxy Note ONLY when I debug it with eclipse

2013-03-26 Thread Kostya Vasilyev
domenica 24 marzo 2013 23:49:40 UTC+1, Kostya Vasilyev ha scritto: If I were to guess, I'd say there might be a thread race issue I suppose a race issue too but usually race issues are random, in this case with 2.3.6 it always works with galaxy it always not work (apart with debugger) When

Re: [android-developers] Re: App works on Samsung Galaxy Note ONLY when I debug it with eclipse

2013-03-24 Thread Kostya Vasilyev
If I were to guess, I'd say there might be a thread race issue, and the debug build works because of slower performance (== different timing of events in the app). When it hangs, use the Eclipse DDMS perspective to attach the debugger (select the device, then your app on it, then tap the green

[android-developers] Re: Deadlock running app on Nexus 10, Android 4.2.2

2013-03-20 Thread Kostya Vasilyev
Are you able to repeatedly reproduce the issue? Is the suspended thread always stuck in the same place? If it does, have you considered removing the call to validate the key (which calls into, apparently native, regular expression code)? -- K On Wednesday, March 20, 2013 2:25:35 AM UTC+4,

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Kostya Vasilyev
On Friday, March 15, 2013 5:29:03 AM UTC+4, Lew wrote: Kristopher Micinski wrote: I guess the bigger problem that in Android static data members cannot be statically checked to be alive. [...] if (gInstance != null) not working in Android for some reason? Moreover, in Android it's

Re: [android-developers] Re: Can this variable become null?

2013-03-14 Thread Kostya Vasilyev
I really think everyone should stop using the Android Framework, since it has more than a handful of singletons. http://developer.android.com/develop/index.html#q=singleton This is despite research that conclusively proves singletons causing baldness in males and infertility in women. Oh the

[android-developers] Re: Eclipse or Intellij.. what's the verdict?

2013-03-12 Thread Kostya Vasilyev
On Tuesday, March 12, 2013 10:59:55 PM UTC+4, Martin Krischik wrote: Am Dienstag, 12. März 2013 17:51:41 UTC+1 schrieb b0b: Each time someone bashes Eclipse, it is generally followed by stating how awesome Intellij is. Have you ever considered that this is so because is truly Intellij

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Kostya Vasilyev
2013/3/6 Latimerius l4t1m3r...@gmail.com On Tue, Mar 5, 2013 at 6:25 PM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 5:41 PM, Piren gpi...@gmail.com wrote: - Dont use a different Activity to show Prefs (you can re-use your current one, i personally always disliked the

Re: [android-developers] Android library project with non-default bin directory

2013-02-23 Thread Kostya Vasilyev
I've done this -- keeping ant builds completely separate from Eclipse's -- by hacking on the project's and the SDK's build.xml files. Not an ant expert either (last I used was some ten years ago), but it wasn't too difficult either. The modification that deals with library references (in the

Re: [android-developers] Re: Refund

2013-02-18 Thread Kostya Vasilyev
I've had reports from users that side-loaded apps will update through Play. (and reports of it occasionally not happening for some, although they seem to be in a minority). It's not necessary to rely on it though, and one could build an independent update notification mechanism. Now, license

Re: [android-developers] Re: Refund

2013-02-18 Thread Kostya Vasilyev
Um, yes, sorry, that probably makes all the difference. I'm just so used to the free base / paid unlocker scheme that seems to be so popular these days. Then again, a good reason to implement it that way. -- K 2013/2/19 TreKing treking...@gmail.com: On Mon, Feb 18, 2013 at 2:45 PM, Kostya

Re: [android-developers] Google Play Licensing Testing Problem

2013-02-15 Thread Kostya Vasilyev
Have you tried entering deanblakelyu...@gmail.com into the Test accounts edit control above and pressing Save below? -- K 2013/2/16 g...@deanblakely.com g...@deanblakely.com I think I have a catch-22 problem with Google Play Licensing. 1. My Android device account must be setup with a Gmail

Re: [android-developers] ExpandableListView Expand icon overlays the text titles of the items

2013-02-14 Thread Kostya Vasilyev
Are you trying to set the margin on the outermost level of your item layout? I don't think that's supported. Setting a margin on a view nested inside your item layout should work though. -- K 2013/2/14 Aleksey Grichenko griche...@gmail.com Thanks, it's a good hint. But setting margin does not

Re: [android-developers] error message

2013-02-12 Thread Kostya Vasilyev
I'm getting the same message on my Galaxy Nexus with 4.2.1 if I open an action bar menu with the Overflow Affordance Button and then close it. Tried three or four apps. Also this: 02-12 23:19:48.043 W/InputMethodManagerService( 390): Window already focused, ignoring focus gain of:

[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Kostya Vasilyev
That's half of it. The other half is calling WifiManager.startScan() to actually trigger the {re}connect. -- K On Thursday, February 7, 2013 8:52:05 PM UTC+4, bob wrote: I think you call this function in WifiManager: boolean *enableNetwork*(int netId, boolean disableOthers) Allow a

[android-developers] Re: market? issue

2013-02-07 Thread Kostya Vasilyev
Did you check how many devices your app is compatible with in the Play console? Especially if you're using the new UI -- which seems to 1) be more strict with its manifest parsing and 2) has poor error reporting. I once got burned by this, where a small omission in the manifest (IIRC, I forgot

[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Kostya Vasilyev
). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 17962-17968). John Wiley and Sons. Kindle Edition. On Thursday, February 7, 2013 11:50:42 AM UTC-6, Kostya Vasilyev wrote: That's half of it. The other half is calling WifiManager.startScan

Re: [android-developers] Galaxy Nexus has died - did my app kill it?

2013-02-06 Thread Kostya Vasilyev
Mine would reboot launching Google Maps -- this was a almost a year ago, but still, official firmware, flagship device, a Google app... http://www.youtube.com/watch?v=mC4EegjeWZA A software reset fixed the issue back then, but my point is, weird things happen. Are you able to boot into the

[android-developers] Re: my app won't die

2013-02-05 Thread Kostya Vasilyev
That's standard Android system behavior, AFAIK. Makes sense to me -- if an activity crashed, restart the app in last known good state, at activity granularity level. -- K On Tuesday, February 5, 2013 2:43:46 AM UTC+4, bob wrote: No. Basically, the activity I am killing is a Blue Screen of

Re: [android-developers] Re: Unpublishing an APK

2013-02-05 Thread Kostya Vasilyev
On Tuesday, February 5, 2013 8:46:59 AM UTC+4, TreKing wrote: On Mon, Feb 4, 2013 at 4:08 AM, Kostya Vasilyev kman...@gmail.comjavascript: wrote: But you can Both the new and the old publishing UIs have an expert (detailed?) mode with a list of uploaded .apk's

Re: [android-developers] Re: my app won't die

2013-02-05 Thread Kostya Vasilyev
well still be down. On Tuesday, February 5, 2013 4:57:51 AM UTC-6, Kostya Vasilyev wrote: That's standard Android system behavior, AFAIK. Makes sense to me -- if an activity crashed, restart the app in last known good state, at activity granularity level. -- K On Tuesday, February 5, 2013

Re: [android-developers] Re: my app won't die

2013-02-05 Thread Kostya Vasilyev
, 2013 10:26:29 AM UTC-6, Kostya Vasilyev wrote: I thought you mentioned killing the activity (which I understood as killing the app's process)? bob 5 пїЅпїЅпїЅпїЅпїЅпїЅпїЅ 2013пїЅпїЅ. 19:16:44 пїЅпїЅпїЅпїЅпїЅпїЅпїЅ: The activity did not crash. The BSOD was because the TCP server is down

Re: [android-developers] Re: my app won't die

2013-02-05 Thread Kostya Vasilyev
No, the system does that, because your app was in the foreground when it died, and so --- you must have been doing something important, let's take you back to what you were doing, stopping just one activity short, hoping it doesn't crash again. -- K 2013/2/6 bob b...@coolfone.comze.com You are

[android-developers] Re: Unpublishing an APK

2013-02-04 Thread Kostya Vasilyev
But you can Both the new and the old publishing UIs have an expert (detailed?) mode with a list of uploaded .apk's and there are buttons to deactivate / active them as needed. As for enabling some code only for release builds (or the opposite) -- Android build tools generate a

[android-developers] Re: Alpha ordering ListPreference values to suit current locale

2013-02-04 Thread Kostya Vasilyev
Editing the values / entries lists for each locale is going be error prone... I'd consider a Preference subclass that works like ListPreference but sorts the values and entries arrays, keeping in sync, before presenting the entries list to the user. You might want to refer to the source code

[android-developers] Re: My game has cloned/stolen, how has this happend?

2013-02-01 Thread Kostya Vasilyev
Happens all the time, I guess. Your best bet is to contact Play support with a DMCA notice. -- K On Friday, February 1, 2013 12:15:40 PM UTC+4, Adam wrote: I'd love the 100k+ hits accredited to the original. PS: If this is in the wrong group, feel free to move it. I just feel as if I need

[android-developers] Re: Dynamic Application Theme

2013-02-01 Thread Kostya Vasilyev
Chrome (and Contacts) prevents its activity from being destroyed when he user presses Back (the normal code, in the framework, is to call finish then). If you did the same, the mismatched animation won't happen so often, since when resuming an existing activity, the system will animate its

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
While TreKing's advice to profile is of course excellent... ...rebuilding the entire {expandable} list view just to update one item is more work that necessary. When performance is important, you can walk the list of visible item views, find the one you need to update, and do it right there. You

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
UTC+1, Kostya Vasilyev escribió: While TreKing's advice to profile is of course excellent... ...rebuilding the entire {expandable} list view just to update one item is more work that necessary. When performance is important, you can walk the list of visible item views, find the one you need

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
... did you know? thanks El viernes, 1 de febrero de 2013 12:37:51 UTC+1, Kostya Vasilyev escribió: Might look something like this: final int nFirst = mAccountListView.**getFirstVisiblePosition(); final int nLast = mAccountListView.**getLastVisiblePosition(); for (int position = nFirst

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
Urm, for an expandable list view -- getChildView or getGroupView. -- K 2013/2/1 saex elpablos...@gmail.com i didn't understand you, the adapter doesn't have a getView method El viernes, 1 de febrero de 2013 12:50:46 UTC+1, Kostya Vasilyev escribió: Is that it? You could call

Re: [android-developers] Re: can you debug?... here error: syntax error : insert ( to complete expression

2013-02-01 Thread Kostya Vasilyev
Sometimes Java compile errors stick after they've been corrected. I just saw this today (Eclipse 3.7.2, latest ADT). Not sure if it's an issue with Eclipse or ADT. -- K 2013/2/1 bob b...@coolfone.comze.com Why would that have fixed the problem? On Friday, February 1, 2013 2:54:14 AM

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
And if you can't call getChildView, just copy the code from there to where you need it. (Can't believe I wrote copy the code... will my developer license be revoked now?) -- K 2013/2/1 skink psk...@gmail.com saex wrote: argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it

[android-developers] Re: AppWidgetProvider onDeleted vs onDisabled

2013-02-01 Thread Kostya Vasilyev
There was a bug in Android 2.* where doing what you described (canceling the widget config activity) caused the Android framework (or the Launcher?) to still save the assigned widget id. Another case for ghost widget IDs was when there was not enough room on the home screen. On one of my

Re: [android-developers] Re: AppWidgetProvider onDeleted vs onDisabled

2013-02-01 Thread Kostya Vasilyev
On Saturday, February 2, 2013 12:10:54 AM UTC+4, TreKing wrote: I checked the bug database and I think you're suffering from this: http://code.google.com/p/android/issues/detail?id=2539 According to the last comment on that page, it's still not fixed in 4.2? And that comment is correct, I

Re: [android-developers] eclipse logcat problem

2013-02-01 Thread Kostya Vasilyev
Better way -- running adb logcat -v time in a command line window / terminal of your operating system :) 2013/2/2 dashman erjdri...@gmail.com sometimes eclipse logcat stops working and i have to restart both eclipse and the emulator. any better way? -- -- You received this message

Re: [android-developers] Re: GooglePlay changes their payout schedule to 15 days after the end of the month!

2013-01-31 Thread Kostya Vasilyev
At least they're making it gradual, with two payouts for February 2013... 2013/1/31 John Coryat cor...@gmail.com doesn't google have a high-water mark where if you reach that, there's an automatic immediate payout? No. I can't see how this will be good for anyone but Google as well but

[android-developers] Re: Dynamic Application Theme

2013-01-31 Thread Kostya Vasilyev
I see this in every app with theme switching, mine included. My guess is that when Android performs an activity launch from nothing, it runs the launch animation using whatever theme is specified in the manifest, before any of the app's code is executed. You can easily test this by setting a

Re: [android-developers] New activity when I lock my screen

2013-01-30 Thread Kostya Vasilyev
Are you locking the device in landscape mode? On phones, locking the screen represents an orientation change, a locked screen is always in portrait mode. This means that if your activity is the top-most one on the screen, it will be destroyed and re-created, and then again when you unlock the

[android-developers] Re: Fragment Transition Animation Crashes

2013-01-28 Thread Kostya Vasilyev
The native fragment API uses the new (since 3.0) animators. http://developer.android.com/guide/topics/graphics/prop-animation.html You can see the difference in the source, too:

Re: [android-developers] ArrayAdapter in background thread

2013-01-28 Thread Kostya Vasilyev
Directly modifying an adapter's data (especially changing the number of items) from a background thread is a recipe for disaster. The data can be loaded on a thread, but should be switched in the adapter on the UI thread, followed by a call to notifyDatasetChanged, also on the UI thread. -- K

[android-developers] Re: In-app billing V3 - Error while retrieving information from server. [RPC:S-7:AEC-0]

2013-01-28 Thread Kostya Vasilyev
A Google search for RPC:S-7:AEC-0 shows a lot of discussions of this error. Not sure if any magic fixes would work though -- I think your best bet is to report this to Google developer support. https://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 -- K

Re: [android-developers]

2013-01-28 Thread Kostya Vasilyev
The description appears to have been copied from the Open Intents file manager: *OI File Manager* allows you to browse your SD card... -- K On Monday, January 28, 2013 5:44:29 PM UTC+4, Kristopher Micinski wrote: You have made a mistake in your app's description: you say it does not

[android-developers] Re: Change Overscroll Glow Color in a theme

2013-01-25 Thread Kostya Vasilyev
If you look here: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/EdgeEffect.java you'll see references (in the constructor) to R.drawable.overscroll_glow and R.drawable.overscroll_edge, without a theme indirection. Those are included

Re: [android-developers] ListView select a row

2013-01-25 Thread Kostya Vasilyev
On Friday, January 25, 2013 11:57:17 PM UTC+4, dashman wrote: Thanks I will do that. There seems to be api for selectedIndex etc - but not sure what they're for?? They're for keeping track of user selected items. For example, listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE) will

Re: [android-developers] ListView select a row

2013-01-25 Thread Kostya Vasilyev
You need to set this on list items as the background, not on the list view. And the syntax is ?android:attr/blahblah, you want to reference a theme attribute. -- K 2013/1/26 dashman erjdri...@gmail.com: having trouble setting it. ListView android:id=@+id/listView

Re: [android-developers] ExpandableListView Expand icon overlays the text titles of the items

2013-01-22 Thread Kostya Vasilyev
There is a theme attribute exactly for this: http://developer.android.com/reference/android/R.attr.html#expandableListPreferredItemPaddingLeft so one could do: android:layout_marginLeft=?android:attr/expandableListPreferredItemPaddingLeft or

Re: [android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread Kostya Vasilyev
Windows (dot net) and Unix (android) default to different ways to represent line breaks. Are line breaks in the xml you're signing encoded the same way on both sides? 17.01.2013 20:24 пользователь mbarbiero marco.barbi...@gmail.com написал: Hi Nikolay... In the XMLs that I post the

Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-16 Thread Kostya Vasilyev
Heh. Looks like it *is* intentional. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java Lines 693-707: final boolean isSystemToast = (android.equals(pkg)); if (ENABLE_BLOCKED_TOASTS

Re: [android-developers] Correct way to implement Activity onDestroy()?

2013-01-15 Thread Kostya Vasilyev
A weak reference may not be collected by the time of onPostExecute, even though that activity instance may have been destroyed (orientation change, etc.). The task would then, presumably, attempt to deliver the results and update the UI of the old activity instance. Really, a better way is to

Re: [android-developers] Correct way to implement Activity onDestroy()?

2013-01-15 Thread Kostya Vasilyev
2013/1/15 G. Blake Meike blake.me...@gmail.com: I should think that would be pretty easy to do with an IntentService: There is only one job running at any time. Just interrupt the thread or flag the job. IntentService uses HandlerThread for its implementation. Even though there can be at

Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-13 Thread Kostya Vasilyev
2013/1/14 William Ferguson william.fergu...@xandar.com.au: If it's an Android version specific limitation of chooser behaviour then I'm all ears, and I'll definitely go back and test on some old versions now. but there is nothing in the doco to suggest that. I recently had a Play crash report

Re: [android-developers] why couldn't create webservice using android?

2013-01-09 Thread Kostya Vasilyev
2013/1/9 Larry Meadors larry.mead...@gmail.com: On Wed, Jan 9, 2013 at 6:43 AM, Kristopher Micinski krismicin...@gmail.com wrote: Because running a server on a battery powered device wouldn't work all that well, and running a server would be against most carriers' terms of service as well.

Re: [android-developers] Re: how to fix the error: android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 522) ?

2013-01-09 Thread Kostya Vasilyev
http://comments.gmane.org/gmane.comp.db.sqlite.general/69438 2013/1/9 ironox iro...@gmail.com: it happen only on one device。 this device 's storage is very special,, it has two storage ,,sdcard is mounted under /storage/sdcard0 , internal storage for users is mounted under

Re: [android-developers] AVD GPU acceleration on Ubuntu/Linux w/Intel graphics? (Or OpenGL ES somehow?)

2013-01-08 Thread Kostya Vasilyev
Yes -- Ubuntu 12.10, 64 bit, Intel i7 3770 (built-in video, whatchacallit -- HD 4000?) It worked on the same system under Debian / Wheezy 64 bit before, and stopped working after the update to Android tools 21. Issue filed as: http://code.google.com/p/android/issues/detail?id=40001 Right now,

Re: [android-developers] How to turnoff wifi when device goes to sleep mode or ideal mode

2013-01-08 Thread Kostya Vasilyev
The system already does this, except since 2.3 the default out-of-the-box setting is to not switch off WiFi when the device goes to sleep (I assume it's because the hw can be put into some sort of low-power mode). This can be changed in system settings - wireless - WiFi - Menu - Advanced - Keep

Re: [android-developers] Re: AutoCompleteTextView behaves differently in different versions of android

2013-01-07 Thread Kostya Vasilyev
Using height = fill_parent / match_parent for list view items, as your code does, seems weird. I usually use wrap_content, combined with android:minHeight=?android:attr/listPreferredItemHeight (or even android:minHeight=48dp). For the minHeight to work, you've got to call inflate() in your

Re: [android-developers] Re: Setting Widget B/G Color of the B/G Resource

2013-01-07 Thread Kostya Vasilyev
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/RemoteViews.java #setDrawableParameters NB: marked with a @hide. -- K 2013/1/1 Jake Colman col...@ppllc.com I don't think it helps to get access to the drawable resource and use

Re: [android-developers] Replacement for MODE_WORLD_READABLE

2013-01-07 Thread Kostya Vasilyev
One usual answer - write a small content provider. Another one - save your file on the memory card, under the directory returned by Context.html#getExternalCacheDir() or Context.html#getExternalFilesDir() so as to not clutter the root of the memory card. -- K 2012/12/31 William Ferguson

Re: [android-developers] Re: How can an app cause a hard freeze?

2013-01-07 Thread Kostya Vasilyev
Maps don't (didn't -- this is 4.0.2) need any panning to cause a reboot: http://www.youtube.com/watch?v=mC4EegjeWZA -- K 2012/12/29 lbendlin l...@bendlin.us I can second the map panning effect. That seems to be able to lock up some older devices (with less RAM, or poorly managed RAM?)

Re: [android-developers] Re: How can an app cause a hard freeze?

2013-01-07 Thread Kostya Vasilyev
Not every system-level issue can be caught with app-side logging. Consider this one as an example: http://code.google.com/p/android/issues/detail?id=42107 This one is not a freeze or a device reboot, but still -- -- there is no unhandled exception in the application (which could be trapped and

Re: [android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-08 Thread Kostya Vasilyev
To answer your question number 2: The highlighting is called activated background and is logically different from checked item, one of possibly several to perform actions on. Marking an item checked, at least with your MODAL selection mode, will start the action mode, that's just how it works by

Re: [android-developers] Forum very slow

2012-11-08 Thread Kostya Vasilyev
People are making sites about Android because they want to, you can't stop them. Mark is just trying collect links on an index page, is that really so wrong? 2012/11/7 Sergey Ivanov si94@gmail.com I think it's not a good idea to create sites as SO. It will be much better if a lot of

Re: [android-developers] Re: random Resource$NotFoundException reports

2012-11-08 Thread Kostya Vasilyev
Yep. Some are literally of the 2+2=5 variety. 2012/11/8 William Ferguson william.fergu...@xandar.com.au Exactly what Bob said. Have an app around long enough ad you will see all kinds of weird shit show up in your crash reports. William On Thursday, November 8, 2012 10:08:05 PM UTC+10,

Re: [android-developers] DatePicker update via EditText rather than Spinner

2012-11-07 Thread Kostya Vasilyev
Yes, this seems like an Android bug (can't say which versions are affected). I have the following in my DialogPreference subclass. Note the call to clearFocus. @Override protected void onDialogClosed(boolean positiveResult) { super.onDialogClosed(positiveResult); if (positiveResult) {

Re: [android-developers] Launch Behavior Issues, 2.3 vs. 4

2012-11-07 Thread Kostya Vasilyev
Evan, Eclipse uses a slightly different intent when launching your app than the Launcher does. The following are log lines from my current project. Launcher: 11-07 22:39:50.309 I/AccountListActivity(25660): * onCreate: Intent { act=android.intent.action.MAIN

Re: [android-developers] Problem while Testing in Debugging Mode on Real Android Device

2012-11-03 Thread Kostya Vasilyev
This message is coming from the system time sync code, not your app. Just ignore it. 03.11.2012 10:18 пользователь Aadi Rockzz sakzk...@gmail.com написал: Hi, I'm developing a Application which will sync with local-server database. I used jtds.jdbc jar file to connect to Database on my Server.

Re: [android-developers] broken breakpoint

2012-11-02 Thread Kostya Vasilyev
Hold on a second. Calling start() on a thread surely keeps a reference somewhere that would prevent the thread from being GC'd while it's still running. As for the breakpoint, quoting Bob's original message: Now put a breakpoint on this line in the thread: BluetoothAdapter bluetoothAdapter =

Re: [android-developers] Re: (Http)URLConnection.setUseCaches(false) isn't working

2012-11-02 Thread Kostya Vasilyev
There could be an overzealous cache somewhere in the middle - either intentionally, or misconfigured, or an old buggy version. For example: http://squid-web-proxy-cache.1019090.n4.nabble.com/Problem-with-cached-entries-w-ETag-and-request-without-If-None-Match-header-td1048627.html I also

Re: [android-developers] broken breakpoint

2012-11-02 Thread Kostya Vasilyev
UTC-5, Kostya Vasilyev wrote: Hold on a second. Calling start() on a thread surely keeps a reference somewhere that would prevent the thread from being GC'd while it's still running. As for the breakpoint, quoting Bob's original message: Now put a breakpoint on this line in the thread

Re: [android-developers] broken breakpoint

2012-11-02 Thread Kostya Vasilyev
2012/11/2 Latimerius l4t1m3r...@gmail.com On Fri, Nov 2, 2012 at 6:15 PM, Kostya Vasilyev kmans...@gmail.com wrote: Hold on a second. Calling start() on a thread surely keeps a reference somewhere that would prevent the thread from being GC'd while it's still running. I would hope

Re: [android-developers] Re: Creating OpenGL shaders from an alternate class

2012-11-02 Thread Kostya Vasilyev
It's pretty weird to see the \n-s make it into the log as is... Do your shader files perhaps contain those two symbols (the backslash and the n) at the end of each line? Are they really supposed to be there if they do? -- K On 11/03/2012 03:04 AM, Braindrool wrote: Tried a different shader

Re: [android-developers] Using Service without startService(), bindService()?

2012-11-01 Thread Kostya Vasilyev
Seems like it was just a way to reuse code which sometimes runs inside a proper service, and sometimes is called from an activity. -- K 2012/11/1 Kristopher Micinski krismicin...@gmail.com Ah, good.. I had simply assumed that was a commonish pattern I had never read about, but it makes

<    1   2   3   4   5   6   7   8   9   10   >