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

2010-07-15 Thread Kostya Vasilyev
On Jul 15, 9:12 am, Kostya Vasilyev kmans...@gmail.com wrote: Does it show up in AVD Manager in ... -- You received this message because you are subscribed to the Google Groups Android Developers g... -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] access points

2010-07-16 Thread Kostya Vasilyev
Android maintains one type of data connection at a time - either Wifi or cellular (which can vary: CDMA / EDGE / HSDPA, etc). You can obtain current connection info: http://developer.android.com/reference/android/net/ConnectivityManager.html and be notified when connectivity type and/or

Re: [android-developers] Re: access points

2010-07-16 Thread Kostya Vasilyev
It is my understanding that Android maintains only one type of networking connection, so sorry, you don't get to choose. It shouldn't be a problem for HTTP, though, since it's sessionless (connection reuse is an optimization). Note that you can make your code behave differently for Wifi vs.

Re: [android-developers] Re: access points

2010-07-16 Thread Kostya Vasilyev
If you only want the soon to work over Wifi, add code to check connection type at startup, and register a broadcast receiver to watch for changes. See the link to Android docs I posted before. 16.07.2010 20:11 пользователь Lieuwe lieuwe.elger...@gmail.com написал: Thanks for the response. It is

Re: [android-developers] Re: access points

2010-07-16 Thread Kostya Vasilyev
16.07.2010 20:27, Kostya Vasilyev пишет: If you only want the soon to work over Wifi, add code to check connection type at startup, and register a broadcast receiver to watch for changes. Um, that was meant to be app, not soon. Autosuggestions are a nuisance sometimes :) -- Kostya Vasilev

Re: [android-developers] Could a Galaxy S owner give me a hand and test a free app for me?

2010-07-16 Thread Kostya Vasilyev
Robert, I just tried it - Galaxy S, firmware I9000XXJF5, build ECLAIR.XWJFB. Worked perfectly. Do you still want the logcat? -- Kostya 16.07.2010 21:38, Robert Green пишет: So I need someone with a Galaxy S to run Deadly Chambers Demo with logcat up to see what the problem is and email me

Re: [android-developers] Re: App Inventor to Market

2010-07-17 Thread Kostya Vasilyev
backup program on my phone that I liked well enough to pay for. Yet it runs in automatic mode just once a day and only for a few seconds. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 17.07.2010 3:41 пользователь Jonas Petersson jonas.peters...@xms.se написал: On 07/16/2010 05:35 PM, String

Re: [android-developers] Re: App Inventor to Market

2010-07-17 Thread Kostya Vasilyev
like IRL - if you find something you haven't needed for a few years, you can throw it away ;) -- Kostya 17.07.2010 11:46, Jonas Petersson пишет: Privet Kostya, On 07/17/2010 08:09 AM, Kostya Vasilyev wrote: Time spent and number of launches are poor metrics for app quality. Maybe it makes

Re: [android-developers] Re: App Inventor to Market

2010-07-17 Thread Kostya Vasilyev
17.07.2010 13:23, Jonas Petersson пишет: On 07/17/2010 10:48 AM, Kostya Vasilyev wrote: When compared to alternative applications for the same task Right, but how do you come up with alternative applications, given the variety of apps?[...] Yeah, it's hardly trivial, but hey, this is Google

Re: [android-developers] Android Force close dialog

2010-07-17 Thread Kostya Vasilyev
Veradis, You can't prevent the ANR/FC dialog from appearing, since it's there for a reason. But you can eliminate its cause - your application taking up time in the UI thread, making it unresponsive. Android provides an easy to use class to perform lengthy operations in a background thread,

Re: [android-developers] Disabling Java formatting in the Eclipse editor

2010-07-17 Thread Kostya Vasilyev
Look in settings... I believe you can disable it or at least change its key binding. Also Ctrl+S for saving ;) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 18.07.2010 2:24 пользователь A Curious Developer imdb...@yahoo.com написал: Is there a (simple) way to completely and utterly

Re: [android-developers] App Not Showing Up for Some Devices (1.5?)

2010-07-20 Thread Kostya Vasilyev
Scott, Does your app differentiate between 2g and 3g modes? Same operator might have a mix of the two depending on location. If it does, I'd like to give it a try here East of Moscow, Russia. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.07.2010 19:20 пользователь Scott Kennedy

Re: [android-developers] Re: Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread Kostya Vasilyev
Especially when you get contradicting comments on the day some new device becomes available. 'Doesn't work on .. - 1 star followed by 'Works on .. - 5 stars' from a different user a while later. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.07.2010 19:10 пользователь Pent tas

Re: [android-developers] Re: TCP connections from android device as client

2010-07-20 Thread Kostya Vasilyev
Sanju Sam, This is certainly possible. I think you should check your router configuration - maybe a firewall is blocking the connection. Also double-check your IP addresses with respect to the router's local network setup (IP/mask). -- Kostya 20.07.2010 3:01, Sam Miller пишет: I am

Re: [android-developers] Help With AlarmManager Please?

2010-07-20 Thread Kostya Vasilyev
Tommy, You are not going to hold the wakelock the entire time the phone is asleep, are you? That would drain the battery pretty fast. Your alarm already wakes the application up, hopefully you can hold the wake lock just for the duration of whatever periodic task the app needs to perform.

Re: [android-developers] Lifetime of background parent activity after startActivityForResult()

2010-07-20 Thread Kostya Vasilyev
I think the real question is: if Activity A gets killed by the time B finishes, will A be recreated to deliver the result? It seems possible technically, since the information is there (in Android framework), but does it actually work this way? Anyone knows for sure? -- Kostya 21.07.2010

Re: [android-developers] Re: Forwarding ranges of ports to the Android emulator

2010-07-20 Thread Kostya Vasilyev
For FTP you can use 'passive' mode to avoid inbound connections. That should work. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.07.2010 3:41 пользователь FaTZ crve...@googlemail.com написал: It's amazing that this is a problem for alot of people out there but there doesn't seem

Re: [android-developers] HTC tattoo List separators and menu separator lines are not visible

2010-07-21 Thread Kostya Vasilyev
Amit, Did you define supports-screens in the manifest? If not, you need to add it for proper scaling, besides the usual uses-sdk.. -- Kostya 21.07.2010 11:36, Amit пишет: Hi All, I am testing my android application on HTC Tattoo device. I have written some custom list views with my

Re: [android-developers] Re: how centralize view in absolutelayout

2010-07-21 Thread Kostya Vasilyev
Or use something more reasonable - RelativeLayout. With it, you can still position some views at fixed positions using layout_marginLeft (etc) and position others at center, top, bottom, etc. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.07.2010 12:42 пользователь claesh claes.huitti

Re: [android-developers] Medium density resources for v1.5 problems with workaround

2010-07-21 Thread Kostya Vasilyev
Hi, Compile against 1.6 or higher; Put 'regular' resources in 'drawable' Put 'special' resources in 'drawable-hdpi-v4' and 'drawable-ldpi-v4' The latter hides 'special' resources from 1.5 at runtime. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.07.2010 16:00 пользователь richarth

Re: [android-developers] Re: ADB, HTC Hero and 2.1 Update

2010-07-21 Thread Kostya Vasilyev
Kirill, I have an HTC Hero, and altough I've only used it under Windows, I found that I have to initiate HTC Sync on the phone for it to show up on the computer as an adb device. HTC Sync is not installed, so the phone eventually times out, but this is how I am able to debug on this phone.

Re: [android-developers] Re: Widget update problem

2010-07-21 Thread Kostya Vasilyev
Hi, This is what I would do (although I am no Brian Boitano). Make widget update code (that builds RemoteViews) really, really simple - like setting one text view to an increasing number. Then gradually add code back until you find the culprit. -- Kostya 21.07.2010 20:07, NightGospel

Re: [android-developers] can we start application after installing .apk file

2010-07-21 Thread Kostya Vasilyev
21.07.2010 17:00, A N K ! T пишет: but it is starting .when am installing apk file ..application is starting cause i can see the app by long pressing home button. but its UI is not showing in front... This brings up the most recent applications list - and has nothing to do with running

Re: [android-developers] Re: What is a WeakReference?

2010-07-22 Thread Kostya Vasilyev
I remember seeing somewhere that Dalvik didn't initially support Soft / Weak references, and this was implemented at some point. Can someone clarify: starting with what version of Dalvik / Android these are available? -- Kostya 22.07.2010 23:34, GodsMoon пишет: The blog post is confusing.

Re: [android-developers] Re: Updates from a Web Server

2010-07-22 Thread Kostya Vasilyev
If your intent is to get updates independent of the current activity - then yes, use a service (with a worker thread to do the actual checks). -- Kostya 22.07.2010 23:54, KG пишет: That's what I was thinking. Would this best be done from a background service running on the phone or would I

Re: [android-developers] cannot install USB drivers for HTC Slide, Android 2.1, Windows Vista 32 bit

2010-07-23 Thread Kostya Vasilyev
Anil, I was just doing the same for HTC Hero with 2.1. Ended up manually adding these lines to android_winusb.inf file inside Android usb driver that comes from Google: ;HTC Hero 2.1 %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C99 %CompositeAdbInterface% = USB_Install,

Re: [android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread Kostya Vasilyev
That's quite understandable. But it would really help if Android Market supported more countries for buying and selling apps. The issue would just go away. -- Kostya 24.07.2010 13:22, Pent пишет: Obviously (and reasonably) Google don't want you using market for advertising your product and

Re: [android-developers] Andriod Email Flaw

2010-07-24 Thread Kostya Vasilyev
24.07.2010 18:58, Raymond C. Rodgers пишет: I'm not an expert on IMAP, though I'm some what familiar with it. It's my understanding that IMAP clients are supposed to stay connected to the mail server and receive live or periodic updates as they occur on the server, where all the action is

Re: [android-developers] Log in a file

2010-07-24 Thread Kostya Vasilyev
There are applications in Market that can show logcat (the log output you see in DDMS) and make emailing it really easy. Perhaps you can ask your user to install one of these apps and email you the log. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 24.07.2010 21:52 пользователь ReyLith

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Kostya Vasilyev
Why not prefix the number with some arbitrary, predefined character? Sort of like the leading single quote in Excel. Then remove it after getting the value from the database. Just make sure it's not a valid phone number character - like, any letter from A to Z will work... -- Kostya Vasilyev

Re: [android-developers] Re: Eclipse debugger is skipping instructions!

2010-07-26 Thread Kostya Vasilyev
FYI - these compiler optimizations especially affect scope-local variables. Sometimes it helps if you move variable declaration from local scope to function scope. 26.07.2010 21:46, ClarkBattle пишет: Great insights. I had broken everything out onto separate lines just to force the compiler

Re: [android-developers] Wifi getScanResults() on Emulator

2010-07-27 Thread Kostya Vasilyev
There is no Wifi in the emulator. What I've done for my app is implemented a switch that generates fake scan results just for debugging. -- Kostya 27.07.2010 10:58, elham пишет: Hi All, is there a solution for getting getScanResults() work on the emulator . All i want is to read the access

Re: [android-developers] Re: What is a WeakReference?

2010-07-27 Thread Kostya Vasilyev
Java also gives you enough rope to hang yourself. Just have to try a little harder to find it. Here is an example from production code ummm u some 12 years ago (written by someone else). class Item { String myKey; Hashtable myHashtable; . Item (Hashtable table, String key) {

Re: [android-developers] Application looking stretched

2010-07-27 Thread Kostya Vasilyev
Johan, I think you got it backwards. supports-screens android:anyDensity=*true*/ is the good value to use. If the app still looks ugly after this (and android:smallScreens and friends are set as well), it means that application's layouts have to be re-done with device-independent units.

Re: [android-developers] Re: What is a WeakReference?

2010-07-27 Thread Kostya Vasilyev
Java also gives you enough rope to hang yourself. Just have to try a little harder to find it. Here is an example from production code ummm u some 12 years ago (written by someone else). class Item { String myKey; Hashtable myHashtable; . Item (Hashtable table, String key) {

Re: [android-developers] Background in PreferenceScreen

2010-07-27 Thread Kostya Vasilyev
It's certainly possible to change the corresponding PreferenceActivity theme in the manifest, e.g.: activity android:name=.PrefsActivity android:label=@string/prefs_activity_title *android:theme=@android:style/Theme.Light* /activity where public class PrefsActivity extends

Re: [android-developers] Re: Wifi getScanResults() on Emulator

2010-07-27 Thread Kostya Vasilyev
Hi, I've written up the way I handle debugging Wifi-specific application in the emulator here: http://kmansoft.wordpress.com/2010/07/27/debugging-wifi-in-the-emulator/ Hope this is useful. -- Kostya 27.07.2010 12:08, elham пишет: Ok . Will it be possible share the snippet which sets the

Re: [android-developers] How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5?

2010-07-27 Thread Kostya Vasilyev
Hi, The offending line is this: ContactsContract.Contacts Even though you're not referencing this nested member on the execution path, the Java VM still tries to resolve all external references made by your code. This is done when your code is first loaded into memory for execution, before

Re: [android-developers] Android not taking up full screen size

2010-07-27 Thread Kostya Vasilyev
John, See here: http://developer.android.com/guide/practices/screens_support.html 27.07.2010 22:01, RespeckKnuckles (John Licato) пишет: Hey guys, Tried to search for this one but the search terms I used didn't seem to find worthwhile results. I'm creating an application to run on a device

Re: [android-developers] Android Market Licensing: Now Available!

2010-07-27 Thread Kostya Vasilyev
What's great is that it's available on all Android versions starting with 1.5 (i.e. it's not a Froyo only feature). -- Kostya 27.07.2010 21:55, Trevor Johns пишет: Android fans, For those of you who haven't already heard through our blog, we've just launched the Android Market licensing

Re: [android-developers] Licensing

2010-07-27 Thread Kostya Vasilyev
The docs specifically mentions two interesting things (from brief reading): 1 - The work is done by Android Market app, which has higher privileges. Exactly what those privileges are isn't spelled out, but it sort of sounds like the stuff that would be easy to break by examining the library

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-07-27 Thread Kostya Vasilyev
Is caching implemented in the library or in the Market app? I am concerned about potential abuse, such as replacing cache contents. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 28.07.2010 0:23 пользователь Trevor Johns trevorjo...@google.com написал: Developers can chose whether

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-07-27 Thread Kostya Vasilyev
OK, great. Thanks for the info. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 28.07.2010 0:55 пользователь Trevor Johns trevorjo...@google.com написал: It's implemented in the library. Cache contents are protected using a swappable Obfuscator class. We include a standard obfuscator

Re: [android-developers] Re: How to prevent Runtime exception from SlidingDrawer onMeasure???

2010-07-28 Thread Kostya Vasilyev
It's all right there: E/AndroidRuntime( 2624): java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED dimensions Seems like you forgot to specify layout_width and layout_height in the XML file. -- Kostya 28.07.2010 12:33, pnk444 пишет: Hi , Thanks for your replay. I am

Re: [android-developers] Re: Understanding how Activities work

2010-07-28 Thread Kostya Vasilyev
Use startActivityForResult to properly sequence activities. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 28.07.2010 19:33 пользователь Chris Stewart cstewart...@gmail.com написал: It appears to be an issue with my intermediate step of OAuth. When I call finish on the second activity

Re: [android-developers] API 1.5 to API 2.1

2010-07-29 Thread Kostya Vasilyev
Muhammad, I have a step by step guide here: http://kmansoft.wordpress.com/2010/05/05/supporting-devices-multires/ -- Kostya 29.07.2010 1:28, { Devdroid } пишет: On 28 July 2010 09:33, Muhammad Alizaandr...@gmail.com wrote: Hi All, I am working on an application which targets the

Re: [android-developers] XML issue

2010-07-29 Thread Kostya Vasilyev
Eclipse's XML editor sometimes goes crazy if you make a lot of changes. Try deleting these errors from the error window. If they don't reappear, then it's just one of those glitches. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.07.2010 19:15 пользователь Pedro Teixeira pedroteixeir

Re: [android-developers] Re: Shared library

2010-07-29 Thread Kostya Vasilyev
Make the library interface be intent-based, and there you have it. Just an .apk without main activity. As added bonuses, it can contain resources and be distributed and upgraded via Market. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.07.2010 19:25 пользователь { Devdroid

Re: [android-developers] Re: XML issue

2010-07-29 Thread Kostya Vasilyev
Have you tried cleaning the project? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.07.2010 21:22 пользователь Pedro Teixeira pedroteixeir...@gmail.com написал: Thank you for your replies. @Toomy: I added the + in all the missing places and still didn't solved. @Kostya: I actually

Re: [android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Kostya Vasilyev
to instantiate (due to unresolved references or variable initializers). If the object can't be created, it will never get to onCreate. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 0:21 пользователь Jeroen Kransen jer...@kransen.nl написал: This is the only serious logging I get

Re: [android-developers] benchmarking /stress testing android applications

2010-07-29 Thread Kostya Vasilyev
How many users? I thought it was always one? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 0:24 пользователь rahul jain jainwolver...@gmail.com написал: Hi there ! What are the third party tools available for benchmarking mobile applications. I mean stress testing, measuring

Re: [android-developers] Windows unable to recognize the HTC evo device

2010-07-29 Thread Kostya Vasilyev
You could try editing the driver's inf file and adding proper USB vendor and device id's for this phone. Search list archives for 'windows device manager', this came up within the last few days. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 1:59 пользователь Arjun arjunf

Re: [android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Kostya Vasilyev
Not all services are local. I guess that's the main reason for async protocol, which assumes the most general case. But then again, only developers of Android know for sure :-) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 1:01 пользователь Jeroen Kransen jer...@kransen.nl

Re: [android-developers] Re: Widget problems after application update.

2010-07-29 Thread Kostya Vasilyev
What does updateMessageCount do? Post simplified source. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 2:48 пользователь Subba raochoud...@gmail.com написал: Any help or suggestions? On Jul 28, 6:28 pm, Subba raochoud...@gmail.com wrote: Application haswidgetwhich basically

Re: [android-developers] Re: benchmarking /stress testing android applications

2010-07-29 Thread Kostya Vasilyev
And no users with this many fingers, I guess :-) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 2:54 пользователь Jeroen Kransen jer...@kransen.nl написал: The onTouchListener API supports up to 256 simultaneous finger movements on the screen, but so far, there are no phones

Re: [android-developers] Clarity on Wi-Fi Based application !!??

2010-07-30 Thread Kostya Vasilyev
Since your intent is to launch something on the phone, I don't see why you would want to detect connection on the Wifi router side. In your app, watch for broadcast actions defined here: http://developer.android.com/reference/android/net/wifi/WifiManager.html In particular,

Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??

2010-07-30 Thread Kostya Vasilyev
Hi, Registering to receive Wifi notifications (either via the app manifest, or registering a receiver in a service) is not inherently inefficient. There isn't anything special about them - so all the usual rules regarding process management apply. Your process will get killed if necessary,

Re: [android-developers] My Eclipse 3.5 always lag and have to force close - why?

2010-07-30 Thread Kostya Vasilyev
You guys running Java update 21 by any chance? If so, revert back to 20 - someone posted within last week that update 21 has issues with Eclipse. -- Kostya 30.07.2010 16:36, Kwan Cheng ?: I have the same issue On Jul 30, 2010 7:22 AM, Mystique joven.ch...@gmail.com

Re: [android-developers] Extending multiple classes

2010-07-30 Thread Kostya Vasilyev
This is called multiple inheritance, and Java - the language - doesn't have this feature, regardless of the platform (Android or not). Break up your code logic into more fine-grained pieces. You can bind to the service from multiple activities, as many as necessary. Also, you don't need to

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Kostya Vasilyev
Stacy, You might want to look at the source for Android's built-in email client. It groups messages by date, i.e. today, yesterday, more recent. Don't know for sure if its source is available, but I think it is (K9 mail is based on it). -- Kostya 30.07.2010 22:32, Mark Murphy пишет: On

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Kostya Vasilyev
of the client it doesn't use any type of headers in its list ...but thanks for the suggestion! On Fri, Jul 30, 2010 at 2:38 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Stacy, You might want to look at the source for Android's built-in email client. It groups

Re: [android-developers] Re: Correct way to kill the application

2010-07-30 Thread Kostya Vasilyev
Technical details aside, I think it's just human nature. Some percentage of users just have a strong desire to have something magical that *supposedly* makes their device (Android phone or desktop OS) work much better. Remember - there used to be all kinds of memory optimizers for Windows?

Re: [android-developers] AlertDialog changes sequence of events

2010-07-30 Thread Kostya Vasilyev
AlertDialog is not modal - the call to show() returns immediately, leaving the dialog on the screen and button callbacks active. This is the reason for the sequence change you're seeing. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.07.2010 1:37 пользователь TreKing treking

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-31 Thread Kostya Vasilyev
(( blush )) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.07.2010 23:34 пользователь Connick oconn...@gmail.com написал: For anyone looking to dynamically add a header to a sorted cursor in a list, Kostya's suggestion worked brilliantly. In getView override check the column value

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread Kostya Vasilyev
The absence of preprocessor has to do with Java, not Android. And tlhere is a lot of Java software out there... -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.08.2010 0:00 пользователь sblantipodi perini.dav...@dpsoftware.org написал: ah ah... it's incredible... I develop on Windows

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
Logcat? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.08.2010 12:32 пользователь Victoria Busse victoriasarabu...@gmail.com написал: Update, just found a mistake within the ViewStub declaration as I forgot to specify a layout, here is the updated code because the error is still

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
), which is the Image Button onClickListener 2010/8/1 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com Logcat? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.08.2010 12:32 пользователь Victoria Busse victoriasarabu...@gmail.com

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Kostya Vasilyev
You are confusing Java the language and platforms that use Java. There are in fact serveral platforms where Java is used - J2ME, Servlets, Java Beans (and more). These platforms have one thing in common - applications are written in Java the language. But other than that, they have little on

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
(); } });}catch (Exception e){ Log.e(ERROR, Error in Code: +e.toString()); } but I don't get any output at all... 2010/8/1 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com Victoria, Judging by logcat, it looks like stub variable

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Kostya Vasilyev
Leigh, I don't think anyone is against it. There happens to be no support for it in Eclipse, the development environment chosen by the Android team. It just doesn't seem like a show-stopper (see Android Market), and it's certainly an overstatement to say (or imply) that Android is a

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
) ViewStub android:id=@+id/stub_exposure android:inflatedId=@+id/NO_ID android:layout=@layout/exposureview android:layout_width=fill_parent android:layout_height=wrap_content android:background=#7700 /ViewStub On Sun, Aug 1, 2010 at 4:07 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans

Re: [android-developers] How to test OpenGL?

2010-08-02 Thread Kostya Vasilyev
I wonder if the emulator uses the system OpenGL drivers. If it does, you could try updating them. -- Kostya 02.08.2010 6:31, SChaser пишет: After a frustrating day of having the Emulator render lines strangely, and then discovering that my G1 renders them exactly as I expect, I am left to

Re: [android-developers] Re: How to populate a ViewStub using different ImageButtons?

2010-08-02 Thread Kostya Vasilyev
Victoria, You can use a ViewFlipper, it can hold as many child views as necessary, displaying one child view (== layout) at a time. Or you can use a FrameLayout, and manage child view visibility from code (initially - hidden or gone, then change the ones you need to visible). Or, if your

Re: [android-developers] I want Activity,Service to communicate with Intent.

2010-08-02 Thread Kostya Vasilyev
The intent is passed to the service's onStart / onStartCommand (Android 1.x / 2.x). onCreate is only called for service creation (once, at least until the process is killed), while onStart / onStartCommand are called every time you call startService, and are passed the intent you used with

Re: [android-developers] Re: How to populate a ViewStub using different ImageButtons?

2010-08-02 Thread Kostya Vasilyev
!!! On Mon, Aug 2, 2010 at 10:19 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Victoria, You can use a ViewFlipper, it can hold as many child views as necessary, displaying one child view (== layout) at a time. Or you can use a FrameLayout

Re: [android-developers] Re: How to populate a ViewStub using different ImageButtons?

2010-08-02 Thread Kostya Vasilyev
that with the same result... nothing shows up :( It seems that the View inside the Flipper doesn't call the layout via android:layout=@layout/exposureview On Mon, Aug 2, 2010 at 12:12 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: setDisplayedChild takes

Re: [android-developers] I want Activity,Service to communicate with Intent.

2010-08-02 Thread Kostya Vasilyev
null; } } 02.08.2010 15:51, 汪健飞 пишет: In my program into OnCreate method after Activity startService method,dont't run onStart method after OnCreate.I use android 1.5.I don't know why? 2010/8/2 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com The intent is passed

Re: [android-developers] Checking internet connection failed

2010-08-02 Thread Kostya Vasilyev
You probably want to use connectityManager.getActiveNetworkInfo And watch out for this: http://code.google.com/p/android/issues/detail?id=1232 As for application unexpectedly stop - check the logcat. -- Kostya 02.08.2010 19:55, coy пишет: Hi, I am trying to check the internet connection.

Re: [android-developers] If I want to dynamically display graphics or text in layout, can I still use xml or I have to hard code?

2010-08-03 Thread Kostya Vasilyev
If there are only two variants, you can add them both (a TextView and an ImageView) in your layout xml. Then manage their visibility from code (see View.setVisibilty) -- Kostya 03.08.2010 11:10, Mystique пишет: As per subject, any idea? Many thanks. -- Kostya Vasilev -- WiFi Manager

Re: [android-developers] Changing project build target

2010-08-03 Thread Kostya Vasilyev
03.08.2010 14:32, Teo пишет: If i were to treat all users alike i'd have to write some kind of transition from the old db structure to the new one in the app, and tying all the loose ends would be a pain Android supports database versioning.

Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??

2010-08-03 Thread Kostya Vasilyev
I see. You are in a closed environment, the routers are under your control, and you need centralized administration. Personally, I would set it up like this: - Phone app: BroadcastReceiver watches for WifiManager.NETWORK_STATE_CHANGED_ACTION. When it sees that a Wifi connection has been

Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??

2010-08-03 Thread Kostya Vasilyev
03.08.2010 16:04, StillALearner пишет: Unless the router is under your control Yes, am trying with a Router that is configurable and controlled by us. Also, a lot depends on whether this means that you can configure a router with manufacturer-provided firmware, or you can add your own

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-03 Thread Kostya Vasilyev
The main reason to need these is logging / debugging, so runtime overhead is acceptable. Or am I missing something? On the other hand, __FILE__ and __LINE__ are only valid where they are used - there is no way to get the caller's file and line info, so it has to be passed to whatever

Re: [android-developers] My game runs much slower if i DO specify *any* min SDK version in Manifest.xml

2010-08-03 Thread Kostya Vasilyev
Did you declare support for varying screen sizes? http://developer.android.com/guide/practices/screens_support.html 03.08.2010 17:19, mrqzzz пишет: ...and if i don't specify any min SDK version, it runs smooth. I get average 30 fps vs. 12 fps. I am using Canvas to render and a JBox jar for

Re: [android-developers] Re: Deploying Custom Configuration with My Android App

2010-08-03 Thread Kostya Vasilyev
I can think of a few solutions. 1 - Discover the web service automatically. For example, through UPnP (don't know if there is a client library for Java). Or - this is a hack - set up your server at a known address, relative to the client's network. That is, network is xxx.yyy.zzz.0/24 - look

Re: [android-developers] Re: Deploying Custom Configuration with My Android App

2010-08-03 Thread Kostya Vasilyev
not be difficult. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 03.08.2010 23:07 пользователь droidbm droi...@gmail.com написал: I was thinking now about using a well-known DNS prefix and using the WiFis default DNS Suffix to load the initial config. Once a config has been loaded though

Re: [android-developers] Re: Sqlite segfault anyone ever see this??

2010-08-03 Thread Kostya Vasilyev
This is a Samsung Spica. It has very little memory. Perhaps the user is running some kind of memory optimization hack? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.08.2010 0:05 пользователь Greg Giacovelli miyamo...@gmail.com написал: Thanks now I know I am not crazy, I was like

Re: [android-developers] Widget Layout Help Please

2010-09-10 Thread Kostya Vasilyev
- 3 grid spacesHTC Aria shows you the grid space and mine is massive 2010/9/9 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com 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

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

2010-09-10 Thread Kostya Vasilyev
://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android

Re: 回复: [android-developers] Re: TCP Client Is sue

2010-09-10 Thread Kostya Vasilyev
/ seconds on a Motorola Milestone over Wifi. I think it's pretty good for a modest device like that. -- 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

Re: [android-developers] Re: Know if my Alarm is active

2010-09-10 Thread Kostya Vasilyev
receiver for BOOT_COMPLETED. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.09.2010 13:39 пользователь Albert albert8...@googlemail.com написал: Anyone? No hidden code to achieve the above? Thanks -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Working Around Samsung Double-SD Problem

2010-09-10 Thread Kostya Vasilyev
else if ( dirExists( /emmc ) ) // use that one } else { // usual procedure getExternal... } Does that look right ? I don't have any talkative users for testing yet. Thanks, Pent -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

Re: [android-developers] Re: Working Around Samsung Double-SD Problem

2010-09-10 Thread Kostya Vasilyev
whatever was in that directory before (in the parent file system). What I actually saw is that My Backup Pro writes its data to /sdcard/sd/rerware/., even though I don't have an external memory card in this phone. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http

Re: [android-developers] Re: J2ME to Android

2010-09-10 Thread Kostya Vasilyev
be greatly appreciated. Thanks -- 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 to the Google Groups Android Developers group

Re: [android-developers] problem with accented letters

2010-09-10 Thread Kostya Vasilyev
mark is displayed. How can I solve this? Simone -- 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: problem with accented letters

2010-09-10 Thread Kostya Vasilyev
10.09.2010 20:39, Simone пишет: Thank you so much, that helped a lot. The substring() call was just temporary, but thanks anyway;) Simone Sure, you are welcome. p.s. the language was Italian :D All I could tell - it wasn't English or Russian :) -- Kostya Vasilyev -- WiFi Manager + pretty

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-10 Thread Kostya Vasilyev
it make sense to make this information available to applications? I'm thinking additional versions of getExternalStorageDirectory / getExternalStorageState that could deal with there being more than one large storage area? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http

Re: [android-developers] Widget Layout Help Please

2010-09-10 Thread Kostya Vasilyev
10.09.2010 20:43, Tommy пишет: O SNAP!! Im an idiot I forgot about the app widget provider XML file.I left the width/height the same from the tutorial 150 x 150 lol spasiba my friend Pozhaluysta, drug! -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http

Re: [android-developers] Re: J2ME to Android

2010-09-10 Thread Kostya Vasilyev
URL, the one whose connection is *not* cast to an HttpConnection. Knowing what scheme (http, datagram, etc) it uses should help you come up with a suitable Android replacement. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message

Re: [android-developers] Re: Can android support more than one sdcard?

2010-09-10 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

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