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

2010-08-04 Thread Kostya Vasilyev
Been there, done that. Didn't use the preprocessor. After the company began switching to Java, the client side was easily ported. Had I been relying on the preprocessor, it would have been difficult. For a system like this, file / line numbers are insufficient anyway. I implemented full

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

2010-08-04 Thread Kostya Vasilyev
This looks likely. I can run Eclipse all day on a 4G Windows 64bit machine, but I edit my layouts by hand, without the visual editor. -- Kostya 04.08.2010 11:00, Mystique пишет: I think there's some memory leak issue if editing XML files. I realise if I only open .java it is ok. So maybe a

Re: [android-developers] Where permissions has to declare in a application.

2010-08-04 Thread Kostya Vasilyev
Sohan, See here: http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms Starting with this sentence: An application can also protect its own components (activities, services, broadcast receivers, and content providers) with permissions -- Kostya 04.08.2010 14:23,

Re: [android-developers] adb

2010-08-04 Thread Kostya Vasilyev
This list is for developing applications. You might have better chance finding the answer to your question here: http://groups.google.com/group/android-porting Such as: http://groups.google.com/group/android-porting/browse_thread/thread/6e952a082ecf0163/ and others. -- Kostya 04.08.2010

Re: [android-developers] UPnP C Library

2010-08-04 Thread Kostya Vasilyev
Kiranmai, By no means an UPnP expert, but I am aware of this: http://miniupnp.free.fr/ It's certainly working code, I have it running on a friend's router under FreeBSD. Perhaps this is a reasonable starting point. If you can use a Java implementation, there is this:

Re: [android-developers] Re: how can we create 9-patch images.

2010-08-04 Thread Kostya Vasilyev
Ummm not quite. They also contains special information about patches, stored as PNG chunks in the file, outside the image data. The SDK tool creates those chunks. Other programs don't. -- Kostya 04.08.2010 19:32, RichardC пишет: Using any paint program that can save a .png file type.

Re: [android-developers] Re: how can we create 9-patch images.

2010-08-04 Thread Kostya Vasilyev
I found that until I ran my nine-patch images through the Android SDK tool, they were not recognized by the resource builder in Eclipse, producing errors. But you're right - I'm not 100% certain. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.08.2010 20:01 пользователь RichardC

Re: [android-developers] Re: how can we create 9-patch images.

2010-08-04 Thread Kostya Vasilyev
Ah. I stand corrected. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.08.2010 20:24 пользователь Romain Guy romain...@android.com написал: 9patches are just standard PNG images that can be created with any tool. There's a compilation phase to embed extra information inside the PNG

Re: [android-developers] Displaying parameterized text in AlertDialog

2010-08-04 Thread Kostya Vasilyev
Andreas, public AlertDialog.Builder setMessage (CharSequence message) Since API level 1. Does this not work for you? -- Kostya 04.08.2010 18:17, livinberlin пишет: Hi everyone, I have a problem with AlertDialogs that seems to be simple, but which puzzles me for quite a while now. I'd like

Re: [android-developers] Re: Displaying parameterized text in AlertDialog

2010-08-05 Thread Kostya Vasilyev
Andreas, If you only need to pass one number parameter, you could include it in the ID. protected Dialog onCreateDialog (int id) { int realId = id 0x; int numFiles = id 16; . } You will want to call removeDialog (int id) as soon as the dialog is dismissed, to avoid building up

Re: [android-developers] Re: A general purpose development phone

2010-08-05 Thread Kostya Vasilyev
I second the recommendation for Eris. Using an HTC Hero (pretty much the same phone) here for testing the lower end of the spectrum as well as HVGA support. You don't really want to go as low as Samsung I5700, for example. Regarding Windows driver support. If worst comes to worst (i.e. no

[android-developers] NullPointerException inside SSLEngine

2010-08-05 Thread Kostya Vasilyev
Hello, I am implementing some NIO based code with SSL support, using SSLEngine. Working nicely along, I ran into a NullPointerException inside SSLEngine during SSL handshaking. This bug is described here: http://code.google.com/p/android/issues/detail?id=4914 and is reported as fixed in

Re: [android-developers] Re: Android Market Abusive developers...

2010-08-06 Thread Kostya Vasilyev
You should report this at b.android.com. -- Kostya 06.08.2010 2:06, samspade79 пишет: A problem I had the other day was an app that once downloaded subscribed you to SMS alerts @ $2.99 a month. I'm not sure how it could do this without some kind of user confirmation but it was very alarming.

Re: [android-developers] Re: Android Market Abusive developers...

2010-08-06 Thread Kostya Vasilyev
You should report this at b.android.com. -- Kostya 06.08.2010 2:06, samspade79 пишет: A problem I had the other day was an app that once downloaded subscribed you to SMS alerts @ $2.99 a month. I'm not sure how it could do this without some kind of user confirmation but it was very alarming.

Re: [android-developers] Re: how to get the screen size in inches...

2010-08-06 Thread Kostya Vasilyev
96 dpi is certainly wrong for Moto Droid / Milestone. Try using Canvas.getDensity(). -- Kosyta 06.08.2010 5:14, sdphil пишет: bump On Aug 4, 2:12 pm, sdphilphil.pellouch...@gmail.com wrote: I am trying to determine the physical size of a screen in inches. Normally, I could do

Re: [android-developers] Re: NullPointerException inside SSLEngine

2010-08-06 Thread Kostya Vasilyev
I know Android uses Apache Harmony for a lot of things, including SSLEngine, but since I was their decision, I consider it to be an issue in Android. Found this SSLEngine test case inside Android source tree:

Re: [android-developers] Re: Did you check out the Nokia X6?

2010-08-06 Thread Kostya Vasilyev
Maybe they hope someone could make it run Android. If that's the case - wrong list, should've posted to android-porting :) -- Kostya 06.08.2010 19:06, Jeroen Kransen пишет: That's for sure ;-) On 6 aug, 14:45, Stringsterling.ud...@googlemail.com wrote: I'm thinking James Baker is a

Re: [android-developers] Re: Content provider doubt

2010-08-09 Thread Kostya Vasilyev
Sohan, Using a ContentProvider has some benefits over using a raw SQLLite database. - The lifetime of a ContentProvider is managed by Android, this helps if data storage is used by several activities. - A ContentProvider implementation can notify open cursors about data changes, this

Re: [android-developers] Re: About external Storage

2010-08-09 Thread Kostya Vasilyev
Patrick, Um, I have a Galaxy S here (European version), and getExternalStorageDirectory returns /sdcard, which is internal memory. The external microSD memory card gets mounted at /sdcard/sd. Maybe this is what you meant, too, but I thought I'd clarify the exact names. As for getting its

Re: [android-developers] how do i change an image at runtime?

2010-08-09 Thread Kostya Vasilyev
See here: http://developer.android.com/reference/android/widget/ImageView.html In particular, a table listing XML attributes and their equivalent Java methods has this line: android:src setImageResource(int) Sets a drawable as the content of this ImageView. So the solution is:

Re: [android-developers] on sdcard, File.canRead() = true, File.canWrite() = false

2010-08-09 Thread Kostya Vasilyev
John, Did you add this to your application's manifest? uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / -- Kostya 09.08.2010 21:59, john brown пишет: Hello, Documentation source http://developer.android.com/guide/topics/data/data-storage.html Every

Re: [android-developers] My app opens a webview, user writes down password and selects remember. How can I clear the remembered password?

2010-08-09 Thread Kostya Vasilyev
You need to clear cookies. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.08.2010 0:29 пользователь t tomers...@gmail.com написал: Hello. I have the following scenario: 1. My app opens a web view, with a web page that requires a username password. 2. The user writes his password

Re: [android-developers] Re: Content provider doubt

2010-08-09 Thread Kostya Vasilyev
, an Activity can start making data queries right inside onStart or onResume. So the delay inherent in the Service pattern is not there, and UI should feel more responsive. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.08.2010 1:12 пользователь Indicator Veritatis mej1...@yahoo.com написал

Re: [android-developers] Re: developing with htc aria

2010-08-09 Thread Kostya Vasilyev
, and displays an error message, but shows up in adb/Eclipse. Now, I wonder why there is no special connect mode just for debugging in any Android phone I've used, and why adb doesn't use a class driver. But I guess that's like asking who shot Kennedy... -- Kostya Vasilyev -- http

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Like Mark already said, you need to create a separate widget_info.xml file for each size/content type, with appropriate attributes for minWidth and minHeight. Essentially, this means declaring separate widgets for all size / content options. The user would see them all when choosing a widget

Re: [android-developers] Re: how to get the screen size in inches...

2010-08-10 Thread Kostya Vasilyev
Rob, Do you have a special case for the Milestone, as well? -- Kostya 10.08.2010 8:41, Rob пишет: Thanks, Mark. That seems to work. I'm using this: float pixels_per_X_inch = displayMetrics.xdpi; float pixels_per_Y_inch = displayMetrics.ydpi;

Re: [android-developers] How to handle OutofMemoryError in a service?

2010-08-10 Thread Kostya Vasilyev
Doug, You can set an alarm before allocating objects that result in the out of memory condition. But this is really just a band-aid - IMHO, you should optimize your service's memory usage. -- Kostya 10.08.2010 3:34, doug пишет: Hello, If my service encounters an OutofMemoryError when

Re: [android-developers] Wifi-UPnP

2010-08-10 Thread Kostya Vasilyev
Try searching / asking here: http://groups.google.com/group/android-porting -- Kostya 10.08.2010 10:30, msnkm пишет: Hi, Im trying to Wifi UPnP(which comes along with froyo source code) but the build is failing. Has anybody tried building wpa_supplicant_6. Any help in this matter is

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
selecting the widget (size) a Configuration Activity can be shown where the user can then select what content he wants. YuviDroid On Tue, Aug 10, 2010 at 9:08 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Like Mark already said, you need to create a separate

Re: [android-developers] Re: developing with htc aria

2010-08-10 Thread Kostya Vasilyev
Vendor/Product ID Pair .. -- Kostya Vasilyev --http://kmansoft.wordpress.com -- Kostya Vasilev -- 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: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Not quite clear on how this code fits in with the rest, and what the error is, but If you're trying to configure a widget when it's added to the home screen, use a configuration activity: http://developer.android.com/guide/topics/appwidgets/index.html#Configuring A configuration

Re: [android-developers] Re: Launching barcode reading from browser

2010-08-10 Thread Kostya Vasilyev
http://tinyurl.com/35o2ell 10.08.2010 16:40, m пишет: Surely someone must know...? On Aug 9, 5:22 pm, mphillip...@gmail.com wrote: On the Google Products page, from an Android device, there is a scan barcode button that launches a 3rd party barcode scanning app, which returns results

Re: [android-developers] Cursor Finalize

2010-08-10 Thread Kostya Vasilyev
The place to start is logcat output, up to and including Caused by line and its output. Is mInflater initialized ? -- Kostya 10.08.2010 18:20, charles berman пишет: i am extending a CursorAdaptor and the first time that newview is called, i constantly come up with a cursor finalize error

Re: [android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-10 Thread Kostya Vasilyev
Doug, What I was getting at, is that Android has certain rules when killing applications in a low memory situation, as well as mechanisms to keep applications functioning. - If your service needs to do work from time to time, on its own schedule, set an Alarm using AlarmManager. Alarms are

Re: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Kostya Vasilyev
thread. I wonder if that might make a difference. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 11.08.2010 1:41 пользователь Tommy droi...@gmail.com написал: So if I were to set requestLocationUpdates(String provider, 6, 0, LocationListener listener, Looper looper) it would be the same

Re: [android-developers] Remote Service - Reconnecting

2010-08-11 Thread Kostya Vasilyev
Markus, You should match up calls to bindService() and unbindService(). If you bind to the service in your Activity's onStart(), call unbindService in onStop(). Next time your activity is started, it will call bindService() again. Service lifecycle is managed by Android, and the service

Re: [android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-11 Thread Kostya Vasilyev
A situation can arise where the user has installed an additional (replacement) Home application, but hasn't made it the default yet. If that's the case, each time the user presses the Home key, he will be choosing between the default and the replacement Home app (s). I've actually done this,

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Kostya Vasilyev
setForeground() is depreciated startForeground(int id, Notification notification) is the replacement, new as of 2.0 http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html -- Kostya 11.08.2010 20:35, Indicator Veritatis пишет: Why are you advising the use of

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Kostya Vasilyev
When you try to stop a service in the 2.0's new running services screen, Android displays a message that includes the name of the application that owns the service. At this point, the user can confirm or back out.

Re: [android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread Kostya Vasilyev
... but that is a Secure setting and, as such, can only be manipulated by applications signed with a special key (that the platform knows about). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 12.08.2010 0:26 пользователь QR qro...@gmail.com написал: usb debugging is another name

Re: [android-developers] connected Motorola Droid not recognized by adb

2010-08-12 Thread Kostya Vasilyev
John, I am developing on a Moto Milestone, which is essentially same phone. Pull down the status area. Select the item with the USB icon (USB connection management, or something like that), not the triangular one. Choose Portal Tools from the list that pops up. This will make the phone

Re: [android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-12 Thread Kostya Vasilyev
...@gmail.com wrote: ... but that is a Secure setting and, as such, can only be manipulated by applications signed with a special key (that the platform knows about). -- Kostya Vasilyev --http://kmansoft.wordpress.com 12.08.2010 0:26 пользователь QRqro...@gmail.com написал: usb debugging

Re: [android-developers] Getting Object from ContentProvider

2010-08-12 Thread Kostya Vasilyev
Natanael, It just really depends on what this data structure is, how big it is, and how it's used. One of the primitive types supposed by Cursor is Blob, so you have: byte[] getBlob(int columnIndex) And a matching method in ContentValues: void put(String key, byte[] value) To convert

Re: [android-developers] Re: Getting Object from ContentProvider

2010-08-12 Thread Kostya Vasilyev
-Statements and Resources, which I want to provide. Do the Objects need to implement Serializable for your first way? Natanael Am 12.08.2010 13:42, schrieb Kostya Vasilyev: Natanael, It just really depends on what this data structure is, how big it is, and how it's used. One of the primitive types

Re: [android-developers] How to start application when bootup complete of emulator

2010-08-12 Thread Kostya Vasilyev
And better change the package so it doesn't start with com.android, or you won't be able to upload the results of your work to Android Market. -- Kostya 12.08.2010 18:30, { Devdroid } пишет: receiver android:name=com.android.exchange.BootReceiver is your package really named

Re: [android-developers] Re: Mouse interaction on 3D object

2010-08-12 Thread Kostya Vasilyev
the sample code you find, and make meaningful modifications. Without it, it's just copying and pasting while keeping your fingers crossed. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 13.08.2010 1:13 пользователь Indicator Veritatis mej1...@yahoo.com написал: Have you looked at the OpenGL

Re: [android-developers] Detect Wifi Enabled/Disabled

2010-08-12 Thread Kostya Vasilyev
Look up WifiManager and its broadcast action definitions. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 13.08.2010 2:10 пользователь KG kevinconca...@gmail.com написал: Hi Everyone, This seems like a common issue developers have yet I couldn't find anything on it (searched through

Re: [android-developers] Widget update on some event. Is it possible?

2010-08-12 Thread Kostya Vasilyev
A widget provider (the class you define in the manifest) is a subclass if BroadcastReceiver. As such, it can receive any broadcast action (from the driver), you just need to declare it alongside the update action in the manifest. No polling is necessary. -- Kostya Vasilyev -- http

Re: [android-developers] Re: How do you create a custom Preference which needs to invoke a activity for result like RingtonePreference?

2010-08-13 Thread Kostya Vasilyev
Pino, You can always implement your own subclass of Preference. The same thing can be done differently inside Android and in regular applications, that's Ok. Subclassing Preference is actually quite nice, since the base class handles the drawing of title and subtitle strings, so your own

Re: [android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-13 Thread Kostya Vasilyev
If that's the case, nothing's preventing those other people from doing unspeakably terrible things to the device. Like uninstalling your application altogether. Nothing - short of building your own firmware, that is. -- Kostya 13.08.2010 18:41, Mathias Lin пишет: This non-technical client

Re: [android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread Kostya Vasilyev
implementations out there, and it's only about 20-30 lines of code. Just Google for gluLookAt source. -- Kostya 13.08.2010 19:36, souza пишет: @ Kostya Vasilyev I already started studying some basics but thanks for the advice. I'll consider your suggestions. I'm also going to search for non

Re: [android-developers] source code

2010-08-13 Thread Kostya Vasilyev
You can probably build Android under Linux running inside a virtual machine hosted on Windows. There are free ones out there, for example Virtual Box - http://www.virtualbox.org Might also subscribe to this Google group: http://groups.google.com/group/android-porting -- Kosyta 13.08.2010

Re: [android-developers] onActivityResult and the Settings Menu

2010-08-13 Thread Kostya Vasilyev
Not quite a direct answer to your question, but: An ordinary Android application can enable Wifi subsystem if not already enabled. This requires a special permission. Look up WifiManager.setWifiEnabled(). After enabling Wifi, you can watch broadcast actions defined in WifiManager or

Re: [android-developers] Re: Application state when Home pressed

2010-08-14 Thread Kostya Vasilyev
Try onStart() -- Kostya Vasilyev -- http://kmansoft.wordpress.com 15.08.2010 0:24 пользователь TreKing treking...@gmail.com написал: On Sat, Aug 14, 2010 at 3:04 PM, viktor victor.scherb...@gmail.com wrote: I try call my method... WHY does it matter if you're returning from Home screen

Re: [android-developers] Best way to swap activities

2010-08-15 Thread Kostya Vasilyev
Sure. Call finish() on the activity you need, after launching the new activity. So in A you'd have: void launchB() { startActivity(new Intent(this, ActivityB.class)); finish(); } And in B: void launchA() { startActivity(new Intent(this, ActivityA.class)); finish(); } 15.08.2010 18:04,

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-15 Thread Kostya Vasilyev
So what should be used for the new licensing service on this device? Any ideas? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 15.08.2010 23:20 пользователь Seni Sangrujee sangru...@gmail.com написал: have the same ANDROID_ID: 9774d56d682e549c That's not good. This is not going to be fun

Re: [android-developers] Re: persistence storage...........

2010-08-16 Thread Kostya Vasilyev
Huh? Writing to the sdcard or sdcard-like internal storage is possible for any application. You just need to have the right permission in the manifest. -- Kostya 16.08.2010 11:24, pramod.deore пишет: You can't create file or database outside the application. So if you want to store

Re: [android-developers] Alarm manager for multiple pending intent are not working.

2010-08-16 Thread Kostya Vasilyev
Setting an alarm cancels any previous alarms that have the same intent as the new one. In your code, the old and new intents only differ by their extras, which are not considered (I believe). What you could do is calculate the next point in time when an alarm is needed, set one alarm, and

Re: [android-developers] Re: How to write ContentProvider for content not stored in a file nor DB?

2010-08-16 Thread Kostya Vasilyev
Sereja Pavel, It should be just a little bit more involved than writing a SQL-based one. For structured data, you'd need to create your own Cursor subclass, and return it from the provider's query method. If query results are small enough to fit in RAM, then it's easiest to use

Re: [android-developers] Re: position add remove imageview

2010-08-16 Thread Kostya Vasilyev
Nikhil, The default position of child views with RelativeLayout is indeed at 0,0. You need to do something to position the child view. Use RelativeLayout.LayoutParams and and specify some values. You can use layoutParams.setMargins (correspond to XML layout_marginLeft, layout_marginTop,

Re: [android-developers] Re: XML parsing slow ... cache!

2010-08-16 Thread Kostya Vasilyev
David, XML parsing options available in Android were discussed here within the last month. I recall that Dianne Hackborn posted some interesting performance comparisons. Try finding that thread, I think it should be quite interesting w.r.t. to your question. Android also includes the

Re: [android-developers] Email client with Exchange /or Lotus Domino mail server

2010-08-16 Thread Kostya Vasilyev
Might want to look at K9 Mail. It's open source, and is based on the standard Android email client (not Gmail). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 16.08.2010 22:40 пользователь RKJ (Android developer) rkjhaw1...@gmail.com написал: I wants to create a Email client with Exchange

Re: [android-developers] Bar Code scanner - Android 2.1

2010-08-16 Thread Kostya Vasilyev
Chetan, Might want to look at this: http://code.google.com/p/zxing/ An open source bar code scaner written in Java, has Android support. -- Kostya 14.08.2010 20:16, Chetan Saxena пишет: Hello All, This is Chetan Saxena, I am new to Android world. Me and one of my friend, we both were

Re: [android-developers] Using Custom Views in XML

2010-08-16 Thread Kostya Vasilyev
Michael, Is Drawing your full package name? Sounds like it's not. Unlike other places (e.g. the manifest), you need to use fully-qualified class names in layout files. So if your application is defined in (for example) package named org.MichaelAquilina.EZPaint, and your DrawingLayout in

Re: [android-developers] Android, OpenGL, and EGL woes

2010-08-16 Thread Kostya Vasilyev
Works for me on a Samsung Galaxy S. Scrolling is waaay too fast, though. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 16.08.2010 23:01 пользователь Aaron Rudolph aanrudol...@gmail.com написал: Hi, all. I'm having a major issue here; I'll try to explain it in as little code and in as few

Re: [android-developers] Email client with Exchange /or Lotus Domino mail server

2010-08-17 Thread Kostya Vasilyev
Google finds this: http://code.google.com/p/k9mail/ 17.08.2010 9:53, Rocky пишет: Exactly I want like K9 mail, from where i can access the source code of K9 2010/8/17 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com Might want to look at K9 Mail. It's open source

Re: [android-developers] How to make this layout in programming?

2010-08-17 Thread Kostya Vasilyev
Take a look at LayoutInflater: http://developer.android.com/reference/android/view/LayoutInflater.html It might be easier than building all these views from code, but still you can inject the inflated view hierarchy into an existing layout. -- Kostya 17.08.2010 13:41, CMF пишет: I have a

Re: [android-developers] Re: LVL and Settings.Secure.ANDROID_ID - how secure?

2010-08-17 Thread Kostya Vasilyev
Reading the IMEI and its CDMA equivalent requires a special permission (READ_PHONE_STATE). This can be confusing to users. Still, no comment from Google. Trevor? Anyone? -- Kostya 17.08.2010 15:40, DanH пишет: Why not use the IMEI instead? On Aug 17, 2:21 am,

Re: [android-developers] tea time

2010-08-17 Thread Kostya Vasilyev
Elka, I doubt anyone is going to debug your application for you. Your first action with debugging crashes should be looking at logcat - Android's log messages. The log contains information about various system events, including crashes. A full stack trace is included for those (starting

Re: [android-developers] Emulator networking

2010-08-17 Thread Kostya Vasilyev
. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 17.08.2010 23:00 пользователь kypriakos demet...@ece.neu.edu написал: Hi all, looking over the online guide for the emulator and after some googling i still have some questions on this - the guide focuses on emulator instances running on the same

Re: [android-developers] Can Java code be replaced with XML

2010-08-17 Thread Kostya Vasilyev
Are they in a list view? +1 for the screenshot. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 17.08.2010 21:51 пользователь TreKing treking...@gmail.com написал: On Tue, Aug 17, 2010 at 11:49 AM, Bhavya Siddappa bhavs...@gmail.com wrote: I have an activity... I would avoid having 50

Re: [android-developers] Re: WifiInfo. getLinkSpeed : uplink or downlink?

2010-08-18 Thread Kostya Vasilyev
I've seen my Milestone connect to the router at anything from 24 Mbit to 64 Mbit. However, getLinkSpeed always returns 54. So it's sort of a technical specifications page value, since Milestone officially only supports 802.11g and that's 54 Mbit / second. It also has very little relation

Re: [android-developers] How to position buttons in a linear layout?

2010-08-18 Thread Kostya Vasilyev
RelativeLayout is more flexible, and can do what AbsoluteLayout can do, and more. http://developer.android.com/reference/android/widget/RelativeLayout.html To place views on top of one another you can also use FrameLayout, positioning these frame layouts in their parent layout:

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev
Nathan, The docs say that getDeviceId is the IMEI for GSM or its equivalent for CDMA devices. Glad it works for you, but I have two issues with this: 1 - It requires a special permission, for no good reason from users' point of view (unless the app already needs this). 2 - There might be

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev
No, this is different. IMEI is assigned to every phone before it leaves the factory, and doesn't change during its lifetime. It's often printed on the box. ANDROID_ID is generated by Android, and can change (e.g. when settings are reset). If it works for you, it's great, but I would like

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev
How do they connect to the cellular network if they all have the same IMEI? Or do they? -- Kostya 18.08.2010 21:02, Sarwar Erfan пишет: On Aug 18, 10:25 pm, Kostya Vasilyevkmans...@gmail.com wrote: IMEI is assigned to every phone before it leaves the factory, and doesn't change during

Re: [android-developers] Alarm Clock with specific ringtones

2010-08-18 Thread Kostya Vasilyev
Two things: - don't use getApplicationContext, use the activity - change the intent for the alarm from using a class to using an action string - set up a broadcast receiver to receive the action, with an intent filter matching the action's string identifier Oops, that was three... -- Kostya

Re: [android-developers] Re: Exception on Pending Intent

2010-08-18 Thread Kostya Vasilyev
That message can occurr if the receiving code crashes or takes too long. Check your logcat. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 18.08.2010 23:22 пользователь satish bhoyar getsatonl...@gmail.com написал: Hi , does any one knows this issue. Please help ... thanks, satish

Re: [android-developers] Dalvik VM vs Sun JVM - compabillity

2010-08-18 Thread Kostya Vasilyev
with date formatting, and may be others. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 18.08.2010 23:19 пользователь Per-Jarle Sæther per.jarle.saet...@gmail.com написал: Hi all I am new to Android development Are there any compability issues between a standard JVM and Dalvik VM

Re: [android-developers] Re: Can Java code be replaced with XML

2010-08-18 Thread Kostya Vasilyev
Dan, Nice try, but that's only 48!!! :) LOL 18.08.2010 23:54, DanH пишет: http://www.flickr.com/photos/danhicks/4905530574/ On Aug 18, 2:44 am, Лоикlamers...@gmail.com wrote: Still looking forward to the screenshots! 2010/8/18 Bhavyabhavs...@gmail.com @Dianne: U made my day :)

Re: [android-developers] Re: Emulator networking

2010-08-18 Thread Kostya Vasilyev
poorly, or not at all (except over Wifi). Cellular operators can NAT their data networks, and then you won't be able to accept inbound socket connections. -- Kostya Vasilyev --http://kmansoft.wordpress.com 17.08.2010 23:00 пользователь kypriakosdemet...@ece.neu.edu написал: Hi all, looking over

Re: [android-developers] Re: Can Java code be replaced with XML

2010-08-18 Thread Kostya Vasilyev
Oh, see them now. Good job! -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.08.2010 0:14 пользователь DanH danhi...@ieee.org написал: Ya gotta give me credit for the refresh/save/done buttons at the bottom! On Aug 18, 3:02 pm, Kostya Vasilyev kmans...@gmail.com wrote: Dan, Nice

Re: [android-developers] Re: Problem computing the free space on the external card - only with a single installation

2010-08-18 Thread Kostya Vasilyev
The code above multiplies two ints and casts them to long. If the intermediate result is over 2Gb, you'll get a negative number. Try multiplying long values instead: long byteCount = blockSize * (long) avlBlocks; -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.08.2010 0:09 пользователь

Re: [android-developers] Re: Android Appwidget resolveUri failed on bad bitmap uri

2010-08-18 Thread Kostya Vasilyev
with a ContentProvider. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.08.2010 0:58 пользователь Adam Becker ajbec...@gmail.com написал: I'm having almost the exact same problem - I've tried external and internal - it works fine on some phones, but I get the resolveUri failed on bad bitmap on other phones

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev
It's my understanding this company doesn't make Android based phones, and if they did, they won't be submitting them to Google for Android certification. So no Market and no LVL for these. It *is* pretty amazing, though. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.08.2010 0:58

Re: [android-developers] Which Eclipse?

2010-08-19 Thread Kostya Vasilyev
It's better to use version 3.5 (Galileo) at this point. The links on eclipse.org by default go to 3.6 (Helios), so check the archives: http://www.eclipse.org/downloads/packages/release/galileo/sr2 Eclipse IDE for Java Developers is one of the smaller ones, and works just fine for me. --

Re: [android-developers] ATT Samsung Captivate mExternalStorageAvailable == false;

2010-08-19 Thread Kostya Vasilyev
John, What state does the code return? Perhaps logging the actual value would be a good place to start. System.out.println(in cksdcard, Something else is wrong, state = + state); The output from ls -l does seem weird. On my Galaxy S (not quite the same thing, but close), I get this:

Re: [android-developers] Re: Which Eclipse?

2010-08-19 Thread Kostya Vasilyev
notice But then I'm using 3.5 (Galileo), with Java u20 (stayed away from u21) and not affected by any of this. -- Kostya 19.08.2010 11:28, Alessandro Pellizzari пишет: Il Thu, 19 Aug 2010 10:25:40 +0400, Kostya Vasilyev ha scritto: It's better to use version 3.5 (Galileo) at this point

Re: [android-developers] Paid vs Free, My Early Experience

2010-08-19 Thread Kostya Vasilyev
Agreed. It would be great if the developer could maintain a per-application changelog accessible via Market. That would make the description just that - a description of what the app is about. The changelog could be brought up by a UI element, the way user feedback is now. I know that

Re: [android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-19 Thread Kostya Vasilyev
19.08.2010 22:01, Ben Pellow пишет: I have not found the Portal Tools menu Kostya is talking about... Ben, See screenshots posted here: http://kmansoft.wordpress.com/2010/08/19/enabling-adb-on-the-motorola-milestone/ Hope this helps. -- Kostya Vasilev -- WiFi Manager + pretty widget --

Re: [android-developers] Explicit intent in custom Preferences screen

2010-08-19 Thread Kostya Vasilyev
The intent tag is actually underdocumented, which kind of makes it look like it might be one of those unsupported internal APIs. You might want to look at implementing your own Preference subclass. Shouldn't be too difficult. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.08.2010 0:07

Re: [android-developers] Paid vs Free, My Early Experience

2010-08-19 Thread Kostya Vasilyev
this is just a guess. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.08.2010 0:22 пользователь TreKing treking...@gmail.com написал: On Thu, Aug 19, 2010 at 2:54 PM, Natalie Hooper nataliehoo...@virginmedia.com wrote: A more ... If you don't think so, I don't think your app is very

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-19 Thread Kostya Vasilyev
So there is hope that this issue can be fixed before the release, correct? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.08.2010 0:54 пользователь suzanne.alexandra suzanne.alexan...@motorola.com написал: I'm looking into this from Motorola - thanks to Mark for calling it to my

Re: [android-developers] SSLException: Not trusted server certificate

2010-08-20 Thread Kostya Vasilyev
Ajay, This can happen because the certificate is not signed by a trusted certificate authority (e.g. self-signed), or because the certificate is just plain wrong. Try accessing the URL with a desktop browser to find out what the actual reason is. If the certificate is good, but is

Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Kostya Vasilyev
What do you mean by technical info? A short blurb on how to get started with the application? -- Kostya 20.08.2010 12:43, Natalie Hooper ?: On 19 August 2010 23:09, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: This is why there should be a technical note

Re: [android-developers] Cannot use the sdcard while connected by means of USB - problems testing

2010-08-20 Thread Kostya Vasilyev
Fabrizio, You can try changing USB connection mode to Portal Tools. I've posted screenshots here: http://kmansoft.wordpress.com/2010/08/19/enabling-adb-on-the-motorola-milestone/ -- Kostya 20.08.2010 18:43, Fabrizio Giudici пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When I

Re: [android-developers] Re: SSLException: Not trusted server certificate

2010-08-20 Thread Kostya Vasilyev
Ajay, You being able to open the site in desktop browser and on a Blackberry seems to imply that the certificate is valid (not corrupted) and is not self-signed. Perhaps the certificate was issued by an authority whose certificate is not installed in Android? Take a look here:

Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Kostya Vasilyev
And a free Android app should have no description at all, then? 20.08.2010 19:31, Bret Foreman пишет: There's a reason why advertising copy is short. Research going back more than 50 years has shown that shoppers spend only a few moments evaluating a product. An application that costs no more

Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Kostya Vasilyev
One more thing to consider here: to many users, Market is Center of The Universe. I believe from experience with my app that users see Market as the primary, often only way to interact with the application. This explains why users often prefer to leave negative feedback rather than sending

Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-20 Thread Kostya Vasilyev
Suzanne from Motorola - did you see the info from Trevor, below? Trevor - perhaps testing for properly set ro.* should be added to CDD / CTS? -- Kostya 20.08.2010 23:57, FrankG пишет: Hi Trevor, This was my impression too on the 16th August Try to set ro.serialno with setprop .. But I

  1   2   3   4   5   6   7   8   9   10   >