Re: [android-developers] Followup questions about detecting install / first launch

2012-03-15 Thread Kostya Vasilyev
Market / Play don't launch apps after the installation - the user is presented with a button to do that, but is not required to press it (except maybe on devices capable of delivering electric shock... :) Starting with Android 3.1 (IIRC) freshly installed apps are in disabled state, which

Re: [android-developers] Connect to an avaible Network

2012-03-14 Thread Kostya Vasilyev
14 марта 2012 г. 20:37 пользователь Robert Greenwalt rgreenw...@google.com написал: I think that addNetwork adds to a persistent database of networks. That's true. Calling it again with the same information may generate an error as it can't add twice. Not sure if that is the case. I believe

Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-14 Thread Kostya Vasilyev
Since I have a Galaxy Nexus and a non-Galaxy non-Nexus (in this case, an HTC Incredible S) laying around, I tried this on both: File root = Environment.getExternalStorageDirectory(); File sub = new File(root, a/b/c/d); boolean res = sub.mkdirs(); The sequence completes

Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-10 Thread Kostya Vasilyev
I just tried this on my Galaxy Nexus with official 4.0.2, and it definitely works, with and without the training slash. mkdirs returns false if the directory already exists - are you sure yours don't? Also, does your app have the permission to write to external storage? IIRC, some really

Re: [android-developers] Re: What to use for supports-screens so that only 10 screens an alternatate APK?

2012-03-10 Thread Kostya Vasilyev
Those are very good questions for the Play team, unfortunately, there seems to be no good place to get them answered. Other than that, looking at your manifest snippet: The dp based attribute: Unsupported, and is documented as such. The large vs. extra large: Is the typical 7 1024 by 600 mdpi

Re: [android-developers] Can not find Standard-Widget in Documentation / Can anybody help?

2012-03-09 Thread Kostya Vasilyev
@googlegroups.com 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 -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] problem in radioGroup.getCheckedRadioButtonId()

2012-03-09 Thread Kostya Vasilyev
=+a); System.err.println(radioGroup.getCheckedRadioButtonId()=+a2); } } } }; -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] WifiManager disables all networks

2012-03-09 Thread Kostya Vasilyev
. -- Kostya Any ideas? -- Kostya Vasilyev -- 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 to android-developers+unsubscr

Re: [android-developers] Problem with Google Play on Android ICS

2012-03-09 Thread Kostya Vasilyev
and it is not updating to Google Play. Why? -- Kostya Vasilyev -- 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 to android-developers+unsubscr

Re: [android-developers] Re: Google Play

2012-03-09 Thread Kostya Vasilyev
9 марта 2012 г. 8:50 пользователь TreKing treking...@gmail.com написал: Not to mention that this app, store, site, center, whatever, is supposed to be a thing (the app) or a destination / place (the site). Naming it after a verb is just awkward and nonsensical. Particularly when the name

Re: [android-developers] images

2012-03-09 Thread Kostya Vasilyev
Since the original question was motivated by the limited amount of internal device storage ... using a SQLite database wouldn't help, since databases are stored in internal memory, and although it's possible to put databases on the memory card, it seems failure-prone. So, using regular

Re: [android-developers] images

2012-03-09 Thread Kostya Vasilyev
On 03/09/2012 07:08 PM, Knutsford Software wrote: Having an external database or space on a server somewhere you mean? I meant the external memory card or the space returned by Environment.getExternalStorageDirectory (and its newer counterparts). As far as the server goes - well, perhaps,

Re: [android-developers] images

2012-03-09 Thread Kostya Vasilyev
On 03/09/2012 07:36 PM, Knutsford Software wrote: Is there a reasonable amount of space on there then? I was thinking there was more in the database I am new to this which must be obvious As I already wrote, databases, by default, are stored in the same old internal memory, so I don't see

Re: [android-developers] How to get view for selected item in a ListView

2012-03-09 Thread Kostya Vasilyev
The children are always numbered starting at 0. The top position may correspond to, erm, 1812'th adapter item, and still be the zero'th child. int nFirst = mAccountListView.getFirstVisiblePosition(); int nLast = mAccountListView.getLastVisiblePosition(); for (int

Re: [android-developers] What to use for supports-screens so that only 10 screens an alternatate APK?

2012-03-09 Thread Kostya Vasilyev
On 03/10/2012 01:20 AM, jtoolsdev wrote: I probably need to continue the thread where this was discussed back at the start of February. I'm certainly not the only one who is confused about how the supports-screens qualifiers work. I would also ask a way that we can test them before we

Re: [android-developers] How to get view for selected item in a ListView

2012-03-09 Thread Kostya Vasilyev
().getFirstVisiblePosition()); The position of the nextCuePoint is 0 (which is correct since it is the first cue). But I am getting null for itemView... On Friday, March 9, 2012 3:11:21 PM UTC-5, Kostya Vasilyev wrote: The children are always numbered starting at 0

Re: [android-developers] How to get view for selected item in a ListView

2012-03-09 Thread Kostya Vasilyev
On 03/10/2012 02:25 AM, RedBullet wrote: Zactlee. When I load up the view, I want it starting from the first item on the list... At this point, the list view doesn't have any children yet, it has not been layed out on the screen. Or, putting it differently, ListView doesn't start drinking

Re: [android-developers] Re: Help about understanding screen size/density

2012-03-08 Thread Kostya Vasilyev
1280 * 720 by itself doesn't really mean much Do you mean the Galaxy Nexus? That screen is extra high density, so its folder is drawable-xhdpi. A 8-9 tablet could conceivable have a 1280 * 720 screen, but that would be medium density, drawable-mdpi. Android running on a notebook with a 1280 *

Re: [android-developers] How to format a String in an email

2012-03-08 Thread Kostya Vasilyev
Line breaks in emails are represented by CR/LF, not by a single \n. http://www.ietf.org/rfc/rfc2045.txt -- Kostya 8 марта 2012 г. 9:42 пользователь ravi . ravikanth...@gmail.com написал: I'm trying to send an email in Java but when I read the body of the email in Outlook, it's gotten rid of

Re: [android-developers] Re: Help me on selecting a name to a game..

2012-03-08 Thread Kostya Vasilyev
This is what I get after clicking on the link: Мы сожалеем. Таблица по указанному URL не обнаружена. Проверьте правильность URL и убедитесь в том, что владелец таблицы не удалил её. Дополнительную информацию можно найти в справочном центре Документов Google. Владелец Таблицы would be a great

Re: [android-developers] content provider locking?

2012-03-08 Thread Kostya Vasilyev
Using a database transaction should work too. Or a ping/pong generation number. 08.03.2012 18:53 пользователь James Black planiturth...@gmail.com написал: Have the service do a callback to activities during just before starting and after to prevent this, and return an empty list if they are not

Re: [android-developers] ICS's Holo Theme

2012-03-08 Thread Kostya Vasilyev
Galaxy Nexus with 4.0.2 - green Asus Transformer with 4.0.3 - cyan -- K 8 марта 2012 г. 21:22 пользователь Mark Murphy mmur...@commonsware.com написал: On Thu, Mar 8, 2012 at 12:16 PM, Romain Guy romain...@android.com wrote: What version do you have your Xoom? Well, mine is still 3.2, as I

Re: [android-developers] Re: Best Application Data Backup solution?

2012-03-08 Thread Kostya Vasilyev
and Google backup has limitations (it's mostly geared towards saving off settings and preferences not custom data) at least from what I've read. Is this information incorrect? On Wednesday, March 7, 2012 6:56:26 AM UTC-6, Kostya Vasilyev wrote: FWIW, there is a data backup solution built

Re: [android-developers] Re: Best Application Data Backup solution?

2012-03-08 Thread Kostya Vasilyev
On 03/08/2012 10:23 PM, Mark Murphy wrote: In most cases, IMHO, it's not the developer's data. It's the user's data. Agreed. Hence, the backup should be made to something the user controls, such as: -- external storage -- DropBox account (via API or Android client) -- email (via

Re: [android-developers] Re: Google Play

2012-03-07 Thread Kostya Vasilyev
Well, it does say _mindlessly_ simple :-) 07.03.2012 13:48 пользователь Pent supp...@apps.dinglisch.net написал: This may be obvious but someone has to say it Play ? In what sense am I 'playing' while reading a book about quantum physics, listening to Bach or using a calendar app ?

Re: [android-developers] Re: Developer Options on Galaxy Nexus!?

2012-03-07 Thread Kostya Vasilyev
It could be an adb command, or a ddms button, perhaps only enabled for apps in debug mode... But then again, if it's your own app, you can just flip the one line switch in the manifest. So, it sounds more like an option for firmware developers, to test their driver's acceleration implementation.

Re: [android-developers] Re: Best Application Data Backup solution?

2012-03-07 Thread Kostya Vasilyev
FWIW, there is a data backup solution built into Android: http://developer.android.com/guide/topics/data/backup.html On 03/07/2012 04:51 PM, gcstang wrote: Does no one perform these types of backups or am I asking the wrong question? -- You received this message because you are subscribed to

Re: [android-developers] Re: Developer Options on Galaxy Nexus!?

2012-03-07 Thread Kostya Vasilyev
On 03/07/2012 06:29 PM, Chris Stratton wrote: On Wednesday, March 7, 2012 6:01:41 AM UTC-5, Kostya Vasilyev wrote: Instead, there are countless sites r recommending this setting to end users to make things run faster. Can you come up with code to detect it, and point out to the user

Re: [android-developers] Re: Does a device have Wi-Fi or not?

2012-03-04 Thread Kostya Vasilyev
You could try turning it on with WifiManager.setWifiEnabled, and check the return value. With appropriate UI it might not be so bad. Another idea is to check for the presence of low-level WiFi related files (such as /etc/wifi/wpa_supplicant.conf). This is clearly outside the boundaries of what a

Re: [android-developers] How to find how many SSIDs are on one WiFi channel...can i select a channel for hotspot

2012-03-04 Thread Kostya Vasilyev
The channel is selected on the router, not on the client. 1 марта 2012 г. 5:54 пользователь Sonia Gupta simply.myfam...@gmail.com написал: I need to switch to any channel i.e. being least used in Android...I know Access Point gives support to find out channel avaialble...bu tnot sure how to

Re: [android-developers] Re: Display problems with Galaxy Notes?

2012-03-03 Thread Kostya Vasilyev
If your minSdk is at 7, we can pretty much rule out the app is running in the compatibility mode. The Galaxy Note, I believe, presents its screen metrics as large / xhdpi. Do you have any resources using those qualifiers? You may want to read through this:

Re: [android-developers] Re: java.lang.SecurityException: Permission Denial, but my app does not change settings

2012-03-02 Thread Kostya Vasilyev
Blackberry? And I thought that an HTC HD2 running 4.0.3 was weird :) 02.03.2012 5:05 пользователь Nikolay Elenkov nikolay.elen...@gmail.com написал: On Fri, Mar 2, 2012 at 7:34 AM, Kostya Vasilyev kmans...@gmail.com wrote: My advice -- still the same, just ignore. As your app gets mode

Re: [android-developers] Re: Display problems with Galaxy Notes?

2012-03-02 Thread Kostya Vasilyev
This sounds like the app getting displayed in compatibility mode. Is your minSdk or targetSdk set to 4 or above in the manfest? -- K 2 марта 2012 г. 11:46 пользователь Terry terb...@gmail.com написал: I am unable to reproduce the problem using the Android Tools on Eclipse - with the actual

Re: [android-developers] java.lang.SecurityException: Permission Denial, but my app does not change settings

2012-03-01 Thread Kostya Vasilyev
Some firmwares are so nice that they have their own (contrary to what's documented) ideas for permissions. One thing I've came accross is the 3.2.1 for the Samsung Galaxy Tab requires CHANGE_NETWORK_STATE to disable WiFi (but not to enable it). Another was some random permission on the HTC

Re: [android-developers] Re: java.lang.SecurityException: Permission Denial, but my app does not change settings

2012-03-01 Thread Kostya Vasilyev
That's my point: a) the docs for adjustSuggestedStreamVolume doesn't mention this permission, although it does say: This method should only be used by applications that replace the platform-wide management of audio settings or the main telephony application b) you said your code doesn't call this

Re: [android-developers] Android Market - Test Marketing

2012-02-29 Thread Kostya Vasilyev
Just email them the apk files (or links), then bump the version code in the manifest before publishing so Market picks up the update (I know this works for free apps). 01.03.2012 3:29 пользователь JJ B jjbjmanagem...@gmail.com написал: Hello, Is it allowable (or possible) to test market apps

Re: [android-developers] Re: Long click in expandable list group items.

2012-02-27 Thread Kostya Vasilyev
What you can do is: 1) Add another layout to your group item layout, make sure its size matches the entire group item. FrameLayout is probably easiest. 2) Specify your own state-list background drawable for this layout. 3) In this state-list drawable, specify transparent color for pressed /

Re: [android-developers] Re: Long click in expandable list group items.

2012-02-27 Thread Kostya Vasilyev
On 02/27/2012 06:57 PM, Bluemercury wrote: Didnt change the row layout like you said, but it seems to be working as expected. Any reason to change like you said? regards I remember needing an extra layout in a similar case so that the highlight background used by the list view and the

Re: [android-developers] Re: Long click in expandable list group items.

2012-02-27 Thread Kostya Vasilyev
On 02/27/2012 07:25 PM, Bluemercury wrote: Hi again Kostya, seems that the cursor focus isnt working althought that's not the most important thing it still is default behaviour so im wondering why it doesnt work. Also the extra layout was something like this?: LinearLayout

Re: [android-developers] Re: Long click in expandable list group items.

2012-02-27 Thread Kostya Vasilyev
On 02/27/2012 07:53 PM, Bluemercury wrote: Am i missing something the in selector file? regards, Yes - the selector should only use @andorid:color/transparent for state_pressed or state_focused true. Something like: ?xml version=1.0 encoding=utf-8? selector

Re: [android-developers] Re: Long click in expandable list group items.

2012-02-27 Thread Kostya Vasilyev
On 02/27/2012 08:13 PM, Bluemercury wrote: Okay, even after those changes i still get the focus color behind the gradient background. i just putted round corners in the gradient and i can see it behindlet me show what i have now then: Here is my selector: ?xml version=1.0 encoding=utf-8?

Re: [android-developers] Re: Long click in expandable list group items.

2012-02-27 Thread Kostya Vasilyev
On 02/27/2012 08:33 PM, Bluemercury wrote: Ahh that was it, you only need the state_pressed and state_selected it seems, i had pressed and focused. Many thanks, this was very useful. Still i have the impression this should be more simple than it actually is. :) It would be easier if

Re: [android-developers] bootup app invoking app has error - No Activity found to handle Intent

2012-02-27 Thread Kostya Vasilyev
The Android runtime is entirely correct. This code: public class SubLauncher extends Activity { /** Called when the activity is first created. */ private static final String TAG = NSubLauncher1; public void onCreate(Bundle savedInstanceState) { * Intent

Re: [android-developers] SensorManager constants

2012-02-27 Thread Kostya Vasilyev
On the other hand, this one: http://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION is real. upon completing the dispatch, the object must make a cup of tea, return it to the caller, and exclaim jolly good message old boy! I have a little app with a button that

Re: [android-developers] Debugging on a Pantech Pocket?

2012-02-27 Thread Kostya Vasilyev
This: http://www.pantechusa.com/support/download/3NOS_kY1bCHDAseCRcCbfelrK_CZNWT4xkcTnbz3mvxehigVV5lpz0EgIcqbxKI- seems to be in English, not Korean ... This does too: http://androidforums.com/pocket-all-things-root/476448-pantech-pocket-rooted.html ... see the bottom message. 28.02.2012

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-26 Thread Kostya Vasilyev
Launcher starts activites with: Flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED Action = Intent.ACTION_MAIN Category = Intent.CATEGORY_LAUNCHER You can see it in the logcat: 02-26 18:55:39.863 I/ActivityManager( 273): Starting: Intent {

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-26 Thread Kostya Vasilyev
On 02/26/2012 07:15 PM, Jim Graham wrote: On Sun, Feb 26, 2012 at 07:06:28PM +0400, Kostya Vasilyev wrote: Market and Eclipse use intents with slightly different flags. So in this case, side-loading using the tablet's installer, would that be considered as the same as launching via

Re: [android-developers] Re: How to WRAP_CONTENT of a Dialog on ICS?

2012-02-25 Thread Kostya Vasilyev
(layout_weight and such). -- Kostya Vasilyev -- 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 to android-developers+unsubscr

Re: [android-developers] database close error

2012-02-25 Thread Kostya Vasilyev
You are leaking the database object, not a cursor. I recommend you save the database object for reuse which will provide better performance. 25.02.2012 14:45 пользователь Jagruti Sangani jagruti.sang...@inextrix.com написал: Hello, i have use the sqlite for android database and use the cursor

Re: [android-developers] Re: Color-Ring

2012-02-24 Thread Kostya Vasilyev
be used pretty much as is. You might want to make ti scale automatically though, because, it rather small on higher density screens. -- Kostya Vasilyev -- 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: Does a device have Wi-Fi or not?

2012-02-24 Thread Kostya Vasilyev
timestamp just in case, and save the result into persistent storage for later reuse. -- Kostya 24.02.2012 15:16, RLScott пишет: Can anyone tell me how to determine if a device has WiFi even if that WiFi is turned off? -- Kostya Vasilyev -- You received this message because you

Re: [android-developers] configuration qualifiers xhdpi vs xlarge

2012-02-24 Thread Kostya Vasilyev
there, i am working on a app that need to support tablets and for that i am keeping image resource under drawable-xhdpi it shows small images but if i rename the folder to drawable-xlarge it shows me big images can anybody explain this behavior? -- Kostya Vasilyev -- You received this message

Re: [android-developers] Working with AsynchTask - need help badly.

2012-02-24 Thread Kostya Vasilyev
There is a null pointer exception somewhere in your async tasks's doInBackground. I'm guessing it's the in - input stream. And you don't need those runnables and a thread - AsyncTask handles all of that for you. -- K On 02/25/2012 02:08 AM, IS SOA wrote: 02-24 17:01:00.641:

Re: [android-developers] Eclipse plugin can no longer render layout

2012-02-23 Thread Kostya Vasilyev
You can try removing code from your view class, piece by piece, to get it to work in the layout editor... ... then add back the removed pieces, wrapped in if(! isInEditMode()), which returns true in the layout editor. 23.02.2012 18:45 пользователь rdietrick rdietr...@gmail.com написал: I've

Re: [android-developers] tabwidget not present in 3.2 ?

2012-02-22 Thread Kostya Vasilyev
Layout XML tag names are case sensitive. 22.02.2012 10:35, Jags пишет: com.codrezheaven.tabbar}: android.view.InflateException: Binary XML file line #2: Error inflating class TABHOST -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] LVL and Developer Transfer Account

2012-02-22 Thread Kostya Vasilyev
against the old key? I thought that once they get the new build update which holds the new developer public key, then the license would still be valid for whoever bought the app with the old account developer key. -- Kostya Vasilyev -- You received this message because you are subscribed

Re: [android-developers] Re: Windows 7 tablet

2012-02-22 Thread Kostya Vasilyev
the inf file involves? Thanks. -- Kostya Vasilyev -- 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 to android-developers

Re: [android-developers] Windows 7 tablet

2012-02-21 Thread Kostya Vasilyev
Don't almost all of them work? Some may require hacking the driver's inf file, some have official drivers. Out of the ones I have, Sony tablet S requires hacking, while Asus Tf101 has official drivers. I recommend the Sony over the Asus because of separate power and usb connectors. 21.02.2012

Re: [android-developers] Problem with manual positioning of RelativeLayout childs

2012-02-21 Thread Kostya Vasilyev
You need use a subclass of LayoutParams specific to the enclosing layout's class. In this case, RelativeLayout.LayoutParams (IIRC, typing this from a phone). Also note: top/left alignment is the default. 21.02.2012 18:46 пользователь Marcin Orlowski webnet.andr...@gmail.com написал: Hi, I

Re: [android-developers] How should one make an SQL database correctly send/receive booleans

2012-02-20 Thread Kostya Vasilyev
Sqlite implements data typing somewhat differently from big sql databases, you can find the details on their site. For a boolean, you typically use: cursor.getInt(column) != 0 20.02.2012 20:20 пользователь Jeresam515 jeremyschiff...@gmail.com написал: I created a database with the following

Re: [android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Kostya Vasilyev
Ruled out? Is seems your log output shows the opposite. IIRC, view focusing is only applied if the enclosing window is in activated state (not sure about the exact name), you might want to look into this. 20.02.2012 14:26 пользователь Jan Burse janbu...@fastmail.fm написал: The blinker runs

Re: [android-developers] Manifest Not Building : android:configChanges=screenOrientation

2012-02-20 Thread Kostya Vasilyev
build giving me this error: error: Error: String types not allowed (at 'configChanges' with value 'screenOrientation'). -- Kostya Vasilyev -- 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] ProxyProperties?

2012-02-18 Thread Kostya Vasilyev
ProxyProperties, along with a bunch of other classes and methods, belongs to the new, improved WiFi / networking code that first appeared in Android 3.0 and was revised in 4.0. And yes, all of it is undocumented and marked with @hide. On some firmwares (the original 3.2.1) those undocumented

Re: [android-developers] Dynamic icon == widget?

2012-02-18 Thread Kostya Vasilyev
App icons (shortcuts) are drawn by *a* launcher, and there is no way to control / modify their appearance. So yes, if you need to display dynamic info, you build a widget. -- K 18 февраля 2012 г. 22:55 пользователь Ted Scott t...@hootinholler.com написал: I'm running a service that monitors a

Re: [android-developers] AlarmManager - getAlarms or similar

2012-02-18 Thread Kostya Vasilyev
Regrettably, no - you will need to keep track of alarms in your code, including saving this data to persistent storage in case the process gets killed / restarted. -- K 18 февраля 2012 г. 22:52 пользователь Ted Scott t...@hootinholler.com написал: Is there a way to find out if I have an

Re: [android-developers] Re: Same codebase, 2 apks, one free, another paid ?

2012-02-18 Thread Kostya Vasilyev
18 февраля 2012 г. 19:08 пользователь androidmediadeveloper kamathaj...@gmail.com написал: [snip] One other general issue is the apk size. If all these features are offered as inapp pieces, the free app will have to ship with every feature built in, but locked. This is both a security risk as

Re: [android-developers] Same codebase, 2 apks, one free, another paid ?

2012-02-17 Thread Kostya Vasilyev
To build separate APKs while maintaining a more-or-less common code base, look into using an Android Library project: http://developer.android.com/guide/developing/projects/index.html Market lets you upload multiple APKs for the same package name, targeting distinct API levels or screen

Re: [android-developers] Re: Need help with relativelayout

2012-02-16 Thread Kostya Vasilyev
Have you tried android:layout_alignWithParentIfMissing ? http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html#attr_android:layout_alignWithParentIfMissing 16 февраля 2012 г. 14:45 пользователь Kristoffer kris.isak.v...@gmail.com написал: Maye i should try to

Re: [android-developers] Workaround NullPointerException TabWidget?

2012-02-16 Thread Kostya Vasilyev
You could try extending the framework class and overriding relevant methods. 16 февраля 2012 г. 15:58 пользователь Jan Burse janbu...@fastmail.fm написал: Dear All, Is there some workaround for a null pointer exception in TabWidget. It basically happens in the following code:        

Re: [android-developers] Hello Everyone, i am developing an android App with Bluetooth.

2012-02-16 Thread Kostya Vasilyev
I'm having a sense of deja vu all over again :) The issue is in your layout XML. The first ListView android:id=@+id/paired_devices... has children - a TextView and another ListView. ListView does not allow child views (other than those it creates itself). To resolve this, move the TextView and

Re: [android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev
though, since the code is really minimal. -- Kostya Vasilyev -- 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 to android

Re: [android-developers] Re: Android 2.2.1 Galaxy S I9000 I9000XWJS3

2012-02-15 Thread Kostya Vasilyev
2.2.1 Galaxy S I9000 I9000XWJS3 Here reference to the problem: http://narod.ru/disk/40240083001/SC20120210-032158.png.html -- Kostya Vasilyev -- 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: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev
On 02/15/2012 05:37 PM, Olof Hedman wrote: I don't expect it to. But I do though expect it to call it a sensible amount of times, and not call it when it is absolutely unnecessary. That may not be the ListView's definition of sensible. Why would it for example have to bind all my list items

Re: [android-developers] whole file dose not load always

2012-02-15 Thread Kostya Vasilyev
To add my $0.02 to everything Daniel wrote -- -- why use BufferedHttpEntity? http://developer.android.com/reference/org/apache/http/entity/BufferedHttpEntity.html A wrapping entity that buffers it content if necessary. The buffered entity is always repeatable. If the wrapped entity is

Re: [android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev
On 02/15/2012 08:02 PM, Olof Hedman wrote: Perhaps it's populating a cache of some kind? That theory doesn't hold. It would only need to cache the views once, and if you look at what is actually happening, you will se it binds the_same_view_ over and over with different list item data.

Re: [android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev
On 02/15/2012 10:45 PM, Olof Hedman wrote: Thanks for the log! Which version of android did you run it on? 2.3.4 and 4.0.2 It made my try one more thing... I simplified my layout as much as I could, and this actually got rid of the extreme weirdness, and made my log look like yours. I don't

Re: [android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev
On 02/15/2012 11:09 PM, Olof Hedman wrote: Wait a while after the power turns off and check your logs, I'm pretty sure you will se a couple of getView:s in your logs too. It doesn't come right away, but within a minute or so after the screen goes black. I took a break for over 10 minutes,

Re: [android-developers] TextView: How to make non-breaking string?

2012-02-15 Thread Kostya Vasilyev
Have you tried using non-breaking space? On 02/16/2012 12:11 AM, Karim Varela wrote: Is there a way to designate a substring within a string as non breakable? i.e. to designate a part of a string that won't word wrap, but the entire substring would be displayed on the next line? -- You

Re: [android-developers] Re: Eclipse Version: 3.7.0 Driving me NUTS

2012-02-14 Thread Kostya Vasilyev
14 февраля 2012 г. 4:35 пользователь Zsolt Vasvari zvasv...@gmail.comнаписал: That's possible if you've been editing resources - Android tools occasionally fail to regenerate correct resource identifiers, which can cause your app to crash with mysterious illegal typecast exceptions,

Re: [android-developers] Re: Eclipse Version: 3.7.0 Driving me NUTS

2012-02-14 Thread Kostya Vasilyev
Saving too often, esp. while the project is still rebuilding after a prior save, is exactly what causes the id mix up. On 02/14/2012 05:07 PM, Ajeet pal wrote: you must save the changes every time you make change in the layout. after saving ( findViewById ) will work okay. -- You received this

Re: [android-developers] AlarmManager cancel does not work

2012-02-14 Thread Kostya Vasilyev
Are you sure that text_of_last_alarm is still valid between set() and cancel()? Unless you save it into persistent storage and restore later, it will be lost if the process is killed (which does happen :) Other than that, setting an alarm automatically cancels any previous alarms set for an

Re: [android-developers] AlarmManager cancel does not work

2012-02-14 Thread Kostya Vasilyev
On 02/14/2012 07:32 PM, Mark Murphy wrote: On Tue, Feb 14, 2012 at 10:29 AM, Kostya Vasilyevkmans...@gmail.com wrote: Also worth noting: setType() is for specifying a mime type, not arbitrary text data (although it shouldn't matter here). If it is not the same, it definitely matters, as

Re: [android-developers] Re: WI-FI Direct Sample Code

2012-02-14 Thread Kostya Vasilyev
Even when using Java SDK 1.6, your compiler setting may be for targeting 1.5. To check: - right click on your project in Eclipse - bring up Properties - select Java Compiler Command line builds with ant (just in case that's what you're using) default to 1.5 Java compliance level, unless

Re: [android-developers] Re: In-App Billing always fails with “Reason: Took too long to deliver”

2012-02-14 Thread Kostya Vasilyev
On 02/15/2012 12:00 AM, John Coryat wrote: Call me crazy, but wouldn't it be a lot more helpful to the user if the error message displayed to them contained the line: Attempting the purchase again 24 hours later should work correctly. Hmm... And sending a new in-app purchase notification

Re: [android-developers] Re: In-App Billing always fails with “Reason: Took too long to deliver”

2012-02-14 Thread Kostya Vasilyev
Here is another idea: If a user has an existing order that's been placed on hold, and tries to place another one (and another and another, as some try to do)... ... Market could display a message explaining what's going on. Oh, no-one from the Market team reads this list. Sorry, I got

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Kostya Vasilyev
Let's see: 2048 * 1536 * Bitmap.Config.ARGB_ = 12 megabytes. I'd guess that you are running into a memory allocation failure. -- Kostya 13 февраля 2012 г. 8:51 пользователь Jim Graham spooky1...@gmail.com написал: Background:  what I'm trying to do here is create a bitmap with only one

Re: [android-developers] multiline EditText: setting cursor position to top of widget

2012-02-13 Thread Kostya Vasilyev
Use android:gravity=top|left on the second EditText. 13 февраля 2012 г. 15:55 пользователь John Goche johngoch...@googlemail.com написал: Hello, I have the following in my layout XML file. Basically I want the address EditText to take up all the space available below the other name EditText

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Kostya Vasilyev
Jim Graham spooky1...@gmail.com написал: On Mon, Feb 13, 2012 at 03:30:32PM +0400, Kostya Vasilyev wrote: Let's see: 2048 *  1536 * Bitmap.Config.ARGB_ = 12 megabytes. I'd guess that you are running into a memory allocation failure. Well, I reduced the bitmap size drastically

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Kostya Vasilyev
написал: On Mon, Feb 13, 2012 at 04:56:52PM +0400, Kostya Vasilyev wrote: I'd try reducing the image size further, say down to 16 by 16, just for testing purposes - to see if the error is in fact, still, an out of memory error. Ok, it's now a 4x3 filter which will be an overlay for first

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Kostya Vasilyev
Yes, the flags have scary names as a warning, but using them with createPackageContext definitely does work (is 4.0.2 recent enough?) 13 февраля 2012 г. 17:19 пользователь Kristopher Micinski krismicin...@gmail.com написал: On Mon, Feb 13, 2012 at 3:34 AM, Doug beafd...@gmail.com wrote: On Feb

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Kostya Vasilyev
Oh, I agree that using those is most likely a bad idea. But, for the record, even though the technique is described in a thread from 2008, it still works today. -- Kostya 13 февраля 2012 г. 17:41 пользователь Kristopher Micinski krismicin...@gmail.com написал: 2012/2/13 Kostya Vasilyev kmans

Re: [android-developers] Hello Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Kostya Vasilyev
Rather than posting your entire code and then bumping the thread three times... ...you could have tried reading the error message. It spells out the error quite clearly: java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView -- K 13 февраля 2012 

Re: [android-developers] How to simulate ConnectivityManager.CONNECTIVITY_ACTION?

2012-02-13 Thread Kostya Vasilyev
How about adding your own alias action, and broadcasting that from another app? 13 февраля 2012 г. 18:52 пользователь Ali Chousein ali.chous...@gmail.com написал: Hi, I have a broadcast receiver which is registered to ConnectivityManager.CONNECTIVITY_ACTION. I'm looking for a simple way to

Re: [android-developers] Hello Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Kostya Vasilyev
be very appreciated... On Mon, Feb 13, 2012 at 6:46 PM, Kostya Vasilyev kmans...@gmail.com wrote: Rather than posting your entire code and then bumping the thread three times... ...you could have tried reading the error message. It spells out the error quite clearly

Re: [android-developers] Hello Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Kostya Vasilyev
This has nothing to do with API level. As for line numbers, here they are: 02-13 13:02:11.538: E/AndroidRuntime(196): Caused by: java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView 02-13 13:02:11.538: E/AndroidRuntime(196): at

Re: [android-developers] Re: Eclipse Version: 3.7.0 Driving me NUTS

2012-02-13 Thread Kostya Vasilyev
13 февраля 2012 г. 12:25 пользователь JJ B jjbjmanagem...@gmail.comнаписал: My code runs fine for a few days with no changes and then...boom! doesn't play nice anymore by forcing me to import android.R for no reason whatsoever. I've increased the memory allocation as recommended, carefully

Re: [android-developers] Re: Hello Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Kostya Vasilyev
14 февраля 2012 г. 2:37 пользователь Indicator Veritatis mej1...@yahoo.comнаписал: So the REAL question is: why are you trying to call addView on an AdapterView? He's not, the framework is -- since the ListView in the XML has children (and one of those is another ListView, oh my). -- You

Re: [android-developers] Re: Where can I find installed Apps/Widgets sources?

2012-02-12 Thread Kostya Vasilyev
github, grepcode the Chrome plugin (links to github): http://blog.lardev.com/2011/03/21/android-sdk-reference-search-in-chrome/ Or try VirtualBox with a minimal Linux distro. -- Kostya 9 февраля 2012 г. 20:26 пользователь BobF bobf8...@gmail.com написал: For those of us that would

Re: [android-developers] practical experience with internationalization.

2012-02-12 Thread Kostya Vasilyev
it for other languages. I would like to hear about people's practical experience of the process.. for example, were there any unexpected problems to look out for. What languages were most/least successful. Was it worth effort? Has someone written about three process in a blog somewhere? -- Kostya

Re: [android-developers] Re: How to hide three-dot indicator(Option menu indicator) on ICS handsets?

2012-02-12 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 -- You received this message because you are subscribed to the Google Groups Android Developers

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