Re: [android-developers] Re: Arithmetic error (BUG)

2010-09-04 Thread Kostya Vasilyev
crashed because its controlling software used both metric and imperial units, and someone forgot to add conversion. A good reason for the US to go metric. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.09.2010 17:48 пользователь Churky chu...@gmail.com написал: I was like to make a small

Re: [android-developers] Re: SQLite implementation - need help!

2010-09-04 Thread Kostya Vasilyev
Without the angle brackets, right? adb uninstall com.shootingrange Like that? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 03.09.2010 18:09 пользователь kingh32 horaceb1...@gmail.com написал: Yes that is definately what iI did, replace package with com.shootingrange On Sep 3, 3:03 pm

Re: [android-developers] Re: OpenGL ES - Color Picking - Front/Back Buffer

2010-09-04 Thread Kostya Vasilyev
Agreed, but shouldn't it be: the only thing that's *supposed* to swap buffers? Clearly *something* causes the objects drawn with color for hit testing to be visible... -- Kostya Vasilyev -- http://kmansoft.wordpress.com 05.09.2010 0:59 пользователь Robert Green rbgrn@gmail.com написал

Re: [android-developers] Re: Split Path to get filename and extension

2010-09-05 Thread Kostya Vasilyev
Might want to also check for last forward slash, in case the path portion of the filename contains a dot. E.g.: /sdcard/.myapp/cachefile -- Kostya Vasilyev -- http://kmansoft.wordpress.com 05.09.2010 21:53 пользователь Filip Havlicek havlicek.fi...@gmail.com написал: Well, you got it wrong i

Re: [android-developers] Re: Need project idea

2010-09-05 Thread Kostya Vasilyev
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: Activities I Don't Want the User to be able to go Back to

2010-09-06 Thread Kostya Vasilyev
06.09.2010 2:59, JimBadger пишет: What about part 2? I want a visual refresh of Activity A when returning to it from Activity B (or C, or even G), that reflects how the game data that affects Acitivty A has changed since the user left it... Override onResume or onStart -- Kostya Vasilyev

Re: [android-developers] galaxy s (2.1) and google api 2.2

2010-09-06 Thread Kostya Vasilyev
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Http chunked response and Connection Reset by Peer error

2010-09-06 Thread Kostya Vasilyev
I do to always detect Connection Reset by Peer exception? Thanks for any help, Android 2.1 HTC Desire Cédric -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: Recommendation for an Application with tons of media files

2010-09-06 Thread Kostya Vasilyev
is connected to Wifi. Make sure your network code handles connectivity going away and resumes downloads as necessary. Memory cards use fat32 file system, which does not support Unix permissions, so check for files still being there upon startup. -- Kostya Vasilyev -- http://kmansoft.wordpress.com

Re: [android-developers] Multiple Activites That Share 75% of a Layout...Layouts Within Layouts?

2010-09-06 Thread Kostya Vasilyev
Take a look at include in the resource layout XML spec. Alternatively, you could manage visibility of the variable parts of your layout from code. Look up view.setVisibility. Or use a ViewFlipper to switch the varying views. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 07.09.2010 0:57

Re: [android-developers] launching new instance --- Urgent help needed

2010-09-07 Thread Kostya Vasilyev
in the framework layer rather than application specific by using the singleInstance theme in the launchMode in AndroidManifest file. Please help me in this regard as this is really urgent for me. Any inputs will be really valuable for me. Thanks in advance. Regards, Revathi K J Ramanan -- Kostya

Re: [android-developers] Dynamic Buttons Onclick

2010-09-07 Thread Kostya Vasilyev
/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

Re: [android-developers] How to abort slow array sorting

2010-09-07 Thread Kostya Vasilyev
the sort. You can throw a subclass of RuntimeException, even if the method signature doesn't allow it. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group

Re: [android-developers] Re: ListView OnItemClickListener not working

2010-09-07 Thread Kostya Vasilyev
this result? Oh, also ... this listview is in a dialog and the listener is in the activity that builds the dialog. Hope to hear from you soon. Thanks, Gabriel Simões -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you

Re: [android-developers] Dynamic Buttons Onclick

2010-09-07 Thread Kostya Vasilyev
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Re: ListView OnItemClickListener not working

2010-09-07 Thread Kostya Vasilyev
that builds the dialog. Hope to hear from you soon. Thanks, Gabriel Simões -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed

Re: [android-developers] Re: ListView OnItemClickListener not working

2010-09-07 Thread Kostya Vasilyev
´s view but it still doesn´t work. Any tips here? Can I archive this result? Oh, also ... this listview is in a dialog and the listener is in the activity that builds the dialog. Hope to hear from you soon. Thanks, Gabriel Simões -- Kostya Vasilyev -- WiFi Manager + pretty widget --http

Re: [android-developers] Re: Trying to diagnose a Resource Not Found exception

2010-09-07 Thread Kostya Vasilyev
results. The Resource Not Found error persists, even if the ArrayAdapter is created in the main thread and then filled in the Async Thread. Anyone have any ideas for other things to try? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received

Re: [android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-09-08 Thread Kostya Vasilyev
it's not our code leaking it (but I could be wrong). And even if it was a leak in our code, the explicit recycle() should have sorted it out. On Sep 7, 1:08 pm, Romain Guyromain...@android.com wrote: It could also be a memory leak in your application. -- Kostya Vasilyev -- WiFi Manager + pretty

Re: [android-developers] Getting source line no after crash

2010-09-08 Thread Kostya Vasilyev
source line number that was executing at the time? I've been able to find the error message, which often leads me to the general area of the faulty code, but it would be nice to get an actual line number (sometimes TMI in the Eclipse windows when I'm looking for the basic facts!). -- Kostya Vasilyev

Re: [android-developers] calling finish() in onResume() a bad idea?

2010-09-08 Thread Kostya Vasilyev
Try calling startActivity first, then finish. Both are processed asynchronously (afaik), after the calling method returns control to the framework. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 08.09.2010 23:51 пользователь OldSkoolMark m...@sublimeslime.com написал: I've been using code

Re: [android-developers] Error: Application not installed

2010-09-08 Thread Kostya Vasilyev
...especially if the already installed version was signed with a different (debug) key, as can easily happen during development. Perhaps it would make sense to try uninstalling first, and repeating the test with the web site. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 09.09.2010 2:00

Re: [android-developers] Re: canvas woe

2010-09-08 Thread Kostya Vasilyev
Matrix transformation methods are cumulative. If you wish to apply absolute transformation values, you need to reset the matrix to identity first. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 08.09.2010 15:19 пользователь dadada ytbr...@gmail.com написал: hello all, i used matrix

Re: [android-developers] Re: TCP Client Issue

2010-09-09 Thread Kostya Vasilyev
://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

Re: [android-developers] Re: Timer in an App

2010-09-09 Thread Kostya Vasilyev
09.09.2010 8:32, chetan пишет: Now my question , would the set alarm persist after reboot of phone ? Thanks Chetan Chauhan No, it won't. The way handle it is to implement code to receive BOOT_COMPLETED broadcast, and start the alarm (and perhaps the service) then. -- Kostya Vasilyev

Re: [android-developers] Notification text expand to two lines

2010-09-09 Thread Kostya Vasilyev
of a notification to two lines instead of 1? The text I am trying to put is too long and it goes over the visible area? Will try something like (text+/n+restOfText) tomorrow but I don't think it's going to work... Thanks, Alberto -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http

Re: [android-developers] Re: How to make screen shoots with an android device?

2010-09-09 Thread Kostya Vasilyev
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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message

Re: [android-developers] Widget Layout Help Please

2010-09-09 Thread Kostya Vasilyev
Home screen Widgets are laid out on a grid, so no matter how compact you make your layout, it won't get any closer to other widgets. Also, you should not be using pixel dimensions in the layout - use device-independent do units. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 09.09.2010 23

Re: [android-developers] Re: Adding checkboxes to a LinearLayout

2010-09-09 Thread Kostya Vasilyev
I don't think you can push views to the bottom of a LinearLayout, either with XML or from code. I'd recommend you try a RelativeLayout, use its LayoutParams class. Set the first button as parent bottom, and others to above the previous one, one by one. -- Kostya Vasilyev -- http

Re: [android-developers] Re: Adding checkboxes to a LinearLayout

2010-09-09 Thread Kostya Vasilyev
) is a better, perhaps only option. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.09.2010 0:31 пользователь TreKing treking...@gmail.com написал: 2010/9/9 Kostya Vasilyev kmans...@gmail.com I don't think you can push views to the bottom of a LinearLayout, either with XML or from code

[android-developers] Smarter widget updates

2010-04-28 Thread Kostya Vasilyev
Hi, I have a widget that displays detailed WiFi state (SSID, signal, etc). It registers in the manifest to receive various android.net.wifi.* notifications. So far so good. However, these notifications are not sent if the home screen is side- scrolled, or phone is locked. This is good - Android

[android-developers] Problem updating widget in emulator

2010-05-04 Thread Kostya Vasilyev
. The code works fine on the HTC Hero 1.5. I converted the layout to avoid using AbsoluteLayout and using FrameLayout instead. Evrything looks good to me, and still, no updates. Any thoughts on this? Thanks, -- Kostya Vasilyev -- You received this message because you are subscribed

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
Nine-patch described here: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch -- Kostya Alok Kulkarni kulsu...@gmail.com писал(а) в своём письме Wed, 05 May 2010 12:25:11 +0400: For 9 patch images i suppose they need to be stored under drawable folder. I need

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
works fine if i have only one image for a Widget.But in case of button i have three images which is not working 1.6 onwards.. Thanks, Alok. 2010/5/5 Kostya Vasilyev kmans...@gmail.com Nine-patch described here: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch

Re: [android-developers] Problem updating widget in emulator

2010-05-05 Thread Kostya Vasilyev
Answering my own question. I had two emulators running side by side (1.6 QVGA and 2.1 WVGA800). Closing one of them gets rid of the problem, and my widget updates just fine. I submitted an issue about this: http://code.google.com/p/android/issues/detail?id=8160 -- Kostya Kostya Vasilyev

Re: [android-developers] Where to Check for files/data created in emulator?

2010-05-05 Thread Kostya Vasilyev
Aren't they in the .img files - inside the respective avd directory? Now, the file format of those .img files is another matter. saify.zeenwala saifyzeenw...@gmail.com писал(а) в своём письме Wed, 05 May 2010 13:17:28 +0400: use ddms tool to check create files and dir. On Tue, May

Re: [android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread Kostya Vasilyev
. 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 athttp://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

Re: [android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread Kostya Vasilyev
+0400: In my case the checkboxes do not show up at all. (Attaching the screenshot) Should I uninstall ADT plugin and install again. Would that seem to help. - Harjeet. 2010/5/5 Kostya Vasilyev kmans...@gmail.com Ok, so you do have SDKs installed. Back to project creation - after selecting

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
wrote: On May 5, 11:30 am, Kostya Vasilyev kmans...@gmail.com wrote: Alok, Found this discussion about creating nine-patches programmatically. Hope this is useful. also NinePatchDrawable sources will be useful, see inflate() method http://www.netmite.com/android/mydroid/donut/frameworks

Re: [android-developers] Re: Adding child views

2010-05-05 Thread Kostya Vasilyev
, 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 athttp://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget

Re: [android-developers] JUnit testing: Question; How the 'unlock' screen be avoided/closed?

2010-05-05 Thread Kostya Vasilyev
Regular Android devices (not emulator) have a setting to never lock the screen if the phone is charging. I use it on my development phone, it works. I believe emulators make it look like the emulated phone is charging. Perhaps this setting would work there, too? It's under developement settings,

Re: [android-developers] Re: Error trying to use XML Layout and extended GLSurfaceView

2010-05-05 Thread Kostya Vasilyev
Just a wild guess. Could be wrong. Perhaps when Android views are instantiated from XML, there is a parser involved, and at construction time it is positioned at that view's XML tags. Then it's time to instantiate the view's children, and they are in turn passed bridge XML parsers that appear to

[android-developers] HowTo: Supporting devices with different resolutions

2010-05-06 Thread Kostya Vasilyev
Hello all, I've written a simple HowTo on supporting devices with different resolutions. All the information is available elsewhere, still, I put it all together in one place for convenience. Posted here: http://kmansoft.wordpress.com/ Hope this might be useful. -- Kostya Vasilyev

Re: [android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Kostya Vasilyev
-- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Quick logcat question

2010-05-06 Thread Kostya Vasilyev
com.myappname.*:V *:S to no avail. I have a feeling I might have to log in a more constant fashion. Or I might just use log4J. Any help/suggestions appreciated - perhaps you use a static log class? Let me know, Cheers, ~redders -- Kostya Vasilyev - WiFi Manager + pretty widget - http

Re: [android-developers] ProgressBar/thumb height

2010-05-06 Thread Kostya Vasilyev
Just add transparent areas at the top and bottom of your progress image. This way, when it's scaled, it will appear shorter than the thumb. 7 мая, 2010 12:46 AM пользователь cvance383 cvance...@yahoo.com написал: Ok so I am getting a huge headache trying to do a pretty simple thing, I want to

Re: [android-developers] Re: Wifi drop Issues on Motorola Droid

2010-05-07 Thread Kostya Vasilyev
Google use it's own APIs? Or is there an additional bug on the Droid/Milestone? -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

Re: [android-developers] How to secure passwords

2010-05-07 Thread Kostya Vasilyev
. http://steven.bitsetters.com/articles/2007/11/20/android-password-safe/ Does anybody know how to encrypt/decrypt password using Android supporting secure algorithm? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com/sw -- You received this message because

Re: [android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread Kostya Vasilyev
27.06.2010 21:25, Streets Of Boston пишет: Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it:-) If you have an HDTV of 1080p, then the max resolution is 1920*1080 (about 2MPixels). There's no need to go larger. Besides, the phone's real output

Re: [android-developers] What are the advantages of an Android Developers Device?

2010-06-28 Thread Kostya Vasilyev
28.06.2010 9:56, sagare пишет: Also i want to know is motorola droid a good device to be selected for android application testing? Yes, it works (I have the Milestone). Had to install their own driver in Windows 7 instead of the one that comes with Android SDK. Not sure if

Re: [android-developers] App failing to load on Nexus One

2010-06-28 Thread Kostya Vasilyev
Can you post your manifest file? 29.06.2010 0:45 пользователь TreKing treking...@gmail.com написал: On Wed, Jun 23, 2010 at 6:59 PM, SilverStr d...@vulscan.com wrote: Anyone have any ideas? The log also says: Make sure to create a MAIN intent- filter for the corresponding activity or...

Re: [android-developers] Re: User comments available in the developer console!

2010-06-30 Thread Kostya Vasilyev
Yeah, I noticed this too. However, I would like to suggest that uninstall notices go to a separate comment thread, available only in the Developer Console. As far as responding to comments - I am with everyone on this one 1000%. Would be great to have two ways to respond - to the same

Re: [android-developers] Re: User comments available in the developer console!

2010-06-30 Thread Kostya Vasilyev
Or else they tried it for a bit then disabled, thinking it was a bad idea. -- Kostya 30.06.2010 20:59, TreKing ?: On Wed, Jun 30, 2010 at 11:48 AM, String sterling.ud...@googlemail.com mailto:sterling.ud...@googlemail.com wrote: Didn't make myself clear, apparently... I'm seeing

Re: [android-developers] Re: User comments available in the developer console!

2010-06-30 Thread Kostya Vasilyev
/forum/p/Android+Market/label?lid=6c2f25659505b63dhl=en On 30 June 2010 19:12, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Or else they tried it for a bit then disabled, thinking it was a bad idea. -- Kostya 30.06.2010 20:59, TreKing пишет: On Wed

Re: [android-developers] Pre-defined text styles?

2010-06-30 Thread Kostya Vasilyev
In your sdk root\platforms\android-platform id\data\res\values styles.xml -- Kostya 30.06.2010 21:45, paladin пишет: Where can I see what typeface, size, color, etc. are used for Android's pre-defined text styles? Like the default text style or textAppearanceMedium, for example? --

Re: [android-developers] Re: User comments available in the developer console!

2010-07-01 Thread Kostya Vasilyev
Joe all, Yes, very much true that user comments are not the same as a support forum. Still, very often users express their wishes for application features and/or tweaks. Such comments are directed not only at the app author, but also at other users. This has a community feel, which I think

Re: [android-developers] Re: Emulator keeps slowing down after a couple of deployments/Run as Android Application in Eclipse

2010-07-02 Thread Kostya Vasilyev
Marco, Do you have enough physical memory in your computer? -- Kostya 02.07.2010 17:15, MarcoAndroid пишет: Small update: I even created a new 1.6 avd, but that starts up as slow as the old one. Then I finally did a reboot of my machine -- all ran fine again for a few hours. So apparently

Re: [android-developers] Simple Question about Res folders

2010-07-02 Thread Kostya Vasilyev
02.07.2010 18:37, B Woods пишет: What are the differences between drawable-hdpi, drawable-ldpi, and drawable-mdpi? Do I need to place my graphics in each of these folders? They are versions of the same graphics files for different screen resolutions. If you don't provide hdpi and ldpi

[android-developers] Memory mangement - GC infinite loop

2010-07-02 Thread Kostya Vasilyev
Hello, I ran into what seems to be a memory management issue in my app. After running for a while, dalvik gc is triggered, but never finishes. I get an endless stream of these messages in logcat: D/dalvikvm(24822): GC freed 22018 objects / 528920 bytes in 49ms D/dalvikvm(24822): GC

Re: [android-developers] Memory mangement - GC infinite loop

2010-07-02 Thread Kostya Vasilyev
error which relates to handler in a looping condition. During destroy the the handler has to be freed of messages and set to null. I found this using MAT. --- * On Fri, Jul 2, 2010 at 10:00 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Hello, I ran into what

Re: [android-developers] Memory mangement - GC infinite loop

2010-07-02 Thread Kostya Vasilyev
Roman, Thanks. Great to know these objects are not using up precious heap space. -- Kostya 02.07.2010 20:33, Romain Guy пишет: Every Android app is spawned from a process called zygote. In this process we preload the most commonly used classes and resources. Those preloaded chunks of memory

Re: [android-developers] Memory mangement - GC infinite loop

2010-07-02 Thread Kostya Vasilyev
Well, at least they are taking up physical ram just once - if they did it in every app, it would be really sad. Is this preload set dependent on the actual firmware? -- Kostya 02.07.2010 20:47, Romain Guy пишет: That said, it's probably still counted towards the max heap limit of your app

Re: [android-developers] Choosing resolution over density for drawables

2010-07-04 Thread Kostya Vasilyev
Stephen, There is a whole bunch of qualifiers for resource folder names, described here: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources You can do things like res/drawable-large, which should match both 480x800 and 480x854. -- Kostya

Re: [android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread Kostya Vasilyev
If you allow the user to configure individual widgets, then you need to store settings separately for each widgetId. I recently implemented this for my widgets, here is how: http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/ -- Kostya 04.07.2010 21:22, Premier пишет:

Re: [android-developers] Re: User comments available in the developer console!

2010-07-05 Thread Kostya Vasilyev
In my experience, when a user has left a negative comment AND emailed me, Unfortunately, that and is a big if ... -- Kostya 05.07.2010 15:36, Mark Carter пишет: In my experience, when a user has left a negative comment AND emailed me, then after a (polite :) ) response from me, they have

Re: [android-developers] Re: User comments available in the developer console!

2010-07-05 Thread Kostya Vasilyev
:45, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: In my experience, when a user has left a negative comment AND emailed me, Unfortunately, that and is a big if ... -- Kostya 05.07.2010 15:36, Mark Carter пишет: In my

Re: [android-developers] Re: How to force App Widget in portrait mode???

2010-07-05 Thread Kostya Vasilyev
Gulfam, This is kind of non-obvious to get right, although really pretty simple. When home screen orientation is changed (is this a Moto Droid / Milestone, by any chance?) Android uses the most recent RemoveViews object to recreate widgets, since there is no onCreate() equivalent. If the

Re: [android-developers] Re: How to force App Widget in portrait mode???

2010-07-05 Thread Kostya Vasilyev
As a follow-up: I also have some info about this in my blog. http://kmansoft.wordpress.com/2010/05/23/widgets-and-orientation-changes/ 05.07.2010 19:18, Gulfam пишет: Hi Mark thanks for your reply, I have developed a home screen widget.its working fine. When i touch items on widget like

Re: [android-developers] Question about parcelable object

2010-07-05 Thread Kostya Vasilyev
Jul, Parcelable implementation looks good, except for the questionable cast to ArrayListRestaurant, but that shouldn't have any effect. What error are you getting, exactly? -- Kostya 05.07.2010 20:20, jul пишет: Hi, I want to save a list of Parcelable Restaurant objects on

Re: [android-developers] Re: Question about parcelable object

2010-07-05 Thread Kostya Vasilyev
Jul, This is the heart of the problem in logcat: 07-05 19:34:28.647: ERROR/AndroidRuntime(808): Caused by: java.lang.ClassCastException: java.util.LinkedList 07-05 19:34:28.647: ERROR/AndroidRuntime(808): at org.digitalfarm.atable.Atable.onSaveInstanceState(Atable.java:254) My guess is

Re: [android-developers] Re: Question about parcelable object

2010-07-06 Thread Kostya Vasilyev
Jul, What is the code around line 254 in Atable.java? 07-06 16:09:30.066: ERROR/AndroidRuntime(930): at org.digitalfarm.atable.Atable.onSaveInstanceState(Atable.java:254) And, what does restaurantList.getRestaurants() really return, when called from onSaveInstanceState ? -- Kostya

Re: [android-developers] Re: Question about parcelable object

2010-07-06 Thread Kostya Vasilyev
Jul, The definition in your class only says that the restaurant list is a ListRestaurant. List is an interface: http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html Actual implementations are, among others, ArrayList and LinkedList. The only thing they have in common is that they

Re: [android-developers] how do I create an executable file from a working android project with eclipse?

2010-07-07 Thread Kostya Vasilyev
Exporting Android app to a .jar will never work, since .jars run in a different environment. The emulator is just like a phone - it runs Android, which runs your app packaged as an .apk. If you just use run or debug commands in Eclipse, it will run your app in the emulator, if there is no

Re: [android-developers] Custom ListView complex item does not appear correctly

2010-07-07 Thread Kostya Vasilyev
Tudor, You can use RelativeLayout, and set android:layout_alignParentRight=true in the image. -- Kostya 07.07.2010 20:05, Tudor Tihan пишет: Hi guys and gals, I am having a very difficult time with making complex listview items show properly. I am using the following layout xml for the

Re: [android-developers] Re: Custom ListView complex item does not appear correctly

2010-07-07 Thread Kostya Vasilyev
Tudor, You should try using a RelativeLayout as the only Layout tag in the list item. It's certainly powerful enough to arrange both text and image the way you intend. Off top of my head: For the TextView - layout_alignParentLeft=true layout_width=wrap_content and margins, if any For the

Re: [android-developers] device not recognised

2010-07-08 Thread Kostya Vasilyev
Jags, I am also using a Moto Milestone. Getting it to work requires two things: 1 - Set connection mode to Portal Tools in the phone, besides enabling usb debugging 2 - Install a Motorola driver -- Kostya 08.07.2010 17:33, Jags пишет: Hi all I am trying to add my motorola milestone device

Re: [android-developers] Re: Socket connection question

2010-07-08 Thread Kostya Vasilyev
Alex, If you mean 3G vs. Wifi - I think the answer is no. I believe Android maintains only one data connection option at a time, although it can be either Wifi, or, in its absence, cellular (HSDPA / 3G / EDGE / GPRS, depending on the phone and the network). -- Kostya 08.07.2010 19:34,

Re: [android-developers] How to define some smart layout?

2010-07-09 Thread Kostya Vasilyev
You can achieve this by using a RelativeLayout: http://groups.google.com/group/android-developers/browse_thread/thread/f88b83d3b453a981/db595fb356a92467 (substitute height / bottom for width / right in the thread above) -- Kostya 09.07.2010 13:35, Jeruliu пишет: I will have a list view on

Re: [android-developers] Re: screen occasionally goes blank on Milestones

2010-07-09 Thread Kostya Vasilyev
Second that. What's weird, is that defective light sensors get confused in _bright_ light. http://kmansoft.wordpress.com/2010/05/16/motorola-milestone-light-sensor-problems/ -- Kostya 09.07.2010 18:32, Alain пишет: This issue is not caused by your app but instead is a Milestone problem and

Re: [android-developers] problem of creating SQLite database on SDCard

2010-07-12 Thread Kostya Vasilyev
Kenneth, Does your app have WRITE_EXTERNAL_STORAGE permission? -- Kosyta 12.07.2010 13:21, Kenneth WON пишет: Dear all, I want to create a database storing on the SDCard, but there is error occurred. The following is the error: ERROR/Database(605): sqlite3_open_v2(/sdcard/LyodsGPS.sqlite,

Re: [android-developers] findViewById returns null

2010-07-12 Thread Kostya Vasilyev
Conny, The first line should have android:id, yours has android.id. The symbol between android and id should be :, not .. But wouldn't it be better to use a ListView - it recycles item views, so as not to hog memory? -- Kostya 12.07.2010 14:15, Conny пишет: TextView android.id=@+id/price

Re: [android-developers] Best Approach to implementing Polling in Android

2010-07-12 Thread Kostya Vasilyev
It is possible to check if Wifi is enabled, and if so, wait a few seconds for it to connect (or time out) before initiating a network connection. -- Kostya 12.07.2010 15:36, Mark Murphy пишет: Be careful of connectivity changes. If you woke up the device, WiFi will be off, and so if you try

Re: [android-developers] Re: device not recognised

2010-07-12 Thread Kostya Vasilyev
Jags, Try this: http://developer.motorola.com/docstools/USB_Drivers/ -- Kostya 12.07.2010 14:46, Jags пишет: where do i get a motorola driver from ? the usb_driver in sdk does not work, and my packet did not come with a cd ! On Jul 8, 7:00 pm, Kostya Vasilyevkmans...@gmail.com wrote:

Re: [android-developers] Attach debugger to a process running in the emulator via eclipse.

2010-07-13 Thread Kostya Vasilyev
Is debugging enabled in your application's manifest? You can only debug applications that are marked for debugging. -- Kostya 13.07.2010 11:44, MB пишет: Hi, Is there some way to attach debugger to a process running in the emulator via eclipse? I am trying to debug the following scenario.

Re: [android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Kostya Vasilyev
I believe this: new ComponentName( com.example.test, TsandCs.class ) is supposed to be either: new ComponentName( context, TsandCs.class) or new ComponentName( com.example.test, TsandCs) Use the first case if the activity is in the same application as the service, the second case if not.

Re: [android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Kostya Vasilyev
Boozel, The second parameter should be without quotes - i.e. a reference to the actual Java class object of your activity. new Intent(BbService.this, TsandCs.class); startActivity(intent); If specifying class name by string, the .class should not be there, since you're not making a

Re: [android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread Kostya Vasilyev
To original poster: I am guessing you are already using reflection to use Android 1.5 Bluetooth APIs vs. 2.0 APIs, similar to this: http://code.google.com/p/backport-android-bluetooth If that's the case, seems like you don't have to rely on Market to only make your app available to phones

Re: [android-developers] AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
Are you calling updateAppWidget from the worker thread? If so, don't. UI calls can only be made from the UI thread. Use a Handler / Runnable to post data calculated by the worker thread to the UI thread and call updateAppWidget from there. -- Kostya 14.07.2010 12:37, TjerkW пишет:

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
But what about the thread? 14.07.2010 14:09, TjerkW пишет: B.t.w it worked fine on the Emulator intially (no widget where loaded previously) On Jul 14, 10:44 am, Kostya Vasilyevkmans...@gmail.com wrote: Are you calling updateAppWidget from the worker thread? If so, don't. UI calls can

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
From what thread are you ultimately calling AppWidgetManager.updateAppWidget ? It has to be the UI thread, I think you should check to make sure. -- Kostya 14.07.2010 16:35, TjerkW пишет: Works on the emulator.. but on my nexus one i still get the nasty nullpointerexception deep inside the

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
Mark, AFAIK, all UI methods are supposed to be called from the UI thread, are widget calls an exception to this rule? -- Kostya 14.07.2010 17:12, Mark Murphy пишет: On Wed, Jul 14, 2010 at 9:01 AM, Kostya Vasilyevkmans...@gmail.com wrote: From what thread are you ultimately calling

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
Right, actual views live in a separate process altogether and RemoteViews is marshalled to this process... That's understood. But an AppWidgetProvider is a broadcast receiver, and its methods are called on a certain thread within the containing process. Is it safe to call updateAppWidget and

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
... which is in turn caused by a crash: 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): FATAL EXCEPTION: Thread-16 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): java.lang.NullPointerException 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): at android.widget.RemoteViews

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
It does - 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): java.lang.NullPointerException How more specific can you get? -- Kostya 14.07.2010 19:42, TjerkW пишет: Thanks... it was not a threading issue... i was calling views.setImageViewBitmap(R.id.profile_image, icon); with a null

Re: [android-developers] Re: Motorola Droid - QCIF Camera Preview and Capture

2010-07-15 Thread Kostya Vasilyev
And when is that? Any info? 15.07.2010 10:50 пользователь Ignas ignas.limanaus...@gmail.com написал: According to Motorola support, the problem will be gone once 2.2 update kicks in. On Jul 14, 3:44 pm, Ignas ignas.limanaus...@gmail.com wrote: I have heard rumors that this prob... -- You

Re: [android-developers] hello

2010-07-15 Thread Kostya Vasilyev
Google groups doesn't send a posted message back to sender. So you kind of have to go on faith :) 15.07.2010 12:30, hat...@gmail.com пишет: how come I can never see my questions in any emails from this group? is the group email filtered me or my gmail hate this group? -- You received this

Re: [android-developers] the emulator doesnt show up

2010-07-15 Thread Kostya Vasilyev
Have you created an emulator? Installing Android tools doesn't create any, you are supposed to create them yourself, with the specific options you require for development (Android version, screen size density, etc.) http://developer.android.com/guide/developing/eclipse-adt.html#AVD --

Re: [android-developers] Re: the emulator doesnt show up

2010-07-15 Thread Kostya Vasilyev
Does it show up in AVD Manager in Eclipse? If not, what happens when you try to create a new one, either there or with android avd create? Also, have you tried doing the magic thing - avd kill-server followed by avd start-server? -- Kostya 15.07.2010 20:08, Harsha пишет: Yes i have. i

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