[android-developers] Re: organizing the code

2010-07-07 Thread Andriy Zakharchuk
Hello Pedro, from my point of view it doesn't make sense to wrap each statement into a try..catch. In you sample if httpclient.execute() fails, then I'm not sure that response.getEntity().getContent() makes sense, since there was no response. I would rewrite your sample as: try {

[android-developers] Android library project custom build

2010-07-07 Thread Andriy Zakharchuk
Hello all, I have a legacy application and need to split it into a library project (common code) and two application projects (paid and free applications). I don't use Eclipse for development, and also don't use Ant builds provided (generated) by Android SDK (there are several reasons for that),

[android-developers] Re: Conventions about using SD card

2010-01-11 Thread Andriy Zakharchuk
Hello Dianne, thank you for clarification. But I have one more question. Everything you've said makes sense when we talk about internal application files (configurations, temporarily storage whatever else). However, there are few other cases. In my case I need to implement backup/restore

[android-developers] Re: Conventions about using SD card

2010-01-04 Thread Andriy Zakharchuk
Thank you! I didn't know about two cards in Samsung. -- Best regards, Andriy. -- 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

[android-developers] Conventions about using SD card

2010-01-03 Thread Andriy Zakharchuk
Hello all, I have a question about SD card usage in Android applications. I need my application to store some files on the SD card. Is there any document (conventions) about how the application should use the SD card? I saw applications create a directory named as the application itself and

[android-developers] Re: Conventions about using SD card

2010-01-03 Thread Andriy Zakharchuk
Thank you, guys, just wanted to be sure that I haven't missed something important (the conventions document). -- 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

[android-developers] ListView and Touch mode

2009-12-29 Thread Andriy Zakharchuk
Hello all, I have a question about ListView behaviour when user is in the touch mode. I have an application which has a list of items (stored in the database, thus I use SimpleCursorAdapter), and user can add new, edit and delete existing items to/from the list. I want to implement following

[android-developers] Re: ListView and Touch mode

2009-12-29 Thread Andriy Zakharchuk
After playing with it a little bit I discovered more interesting thing. Frankly speaking, I used my extension of the ListView, shortly public class MyListView { ... public void setSelection(long theID) { ListAdapter adapter = getAdapter(); if (adapter == null) {

[android-developers] How to detect if the application is in foreground?

2009-11-30 Thread Andriy Zakharchuk
Hello all, I want to protect my application with password. My imagination how it should work: 1. When a user launches the application for the first time from the Home screen, password is requested. 2. When the user launches the application for the 2nd (3rd and so on) time the Home screen,

[android-developers] ListView onSave/RestoreInstanceState.

2009-10-19 Thread Andriy Zakharchuk
Hello all, I have an activity which uses a ListView component. It's not a ListActivity, just a ListView and few other widgets within a LinearLayout. I need the activity to save/restore its state correctly on orientation change. Things mostly work fine, the only problem I encounter is that

[android-developers] Emulator is very slow and CPU consuming

2009-10-10 Thread Andriy Zakharchuk
Hello all, few weeks ago I encountered a problem. My Android SDK 1.5 emulator became very slow and CPU consuming. This happened earlier, but was irregular just removing AVDs usually helped. Few weeks ago I installed Android SDK 1.6, tried to move my dev environment there and noticed that

[android-developers] Android UI guidelines again

2009-05-29 Thread Andriy Zakharchuk
Hello All, I know there were a lot of topics like this created earlier, but most of them haven't got any response. I'd like to raise this topic once again and probably ask more concrete questions. I need to create several forms which allow users entering data. Form allows entering text

[android-developers] Re: Android UI guidelines again

2009-05-29 Thread Andriy Zakharchuk
or using context menu in the contact list; Calendar application: you can delete an event using view event options menu, day view context menu and (!) using delete button in the edit event form. On May 29, 7:05 pm, Andriy Zakharchuk andriy.zakharc...@gmail.com wrote: Hello All, I know there were

[android-developers] Re: Android UI guidelines again

2009-05-29 Thread Andriy Zakharchuk
: Follow what Contacts does :) On Fri, May 29, 2009 at 9:05 AM, Andriy Zakharchuk andriy.zakharc...@gmail.com wrote: Hello All, I know there were a lot of topics like this created earlier, but most of them haven't got any response. I'd like to raise this topic once again and probably

[android-developers] AAPT problem (exit code 139)

2009-05-26 Thread Andriy Zakharchuk
Hello All, I'm using aapt to generate R.java class from resource directories (from an Ant build), I have two resource directories in a project: resources of an application itself, and resources required for unit tests. When I build .apk with unit tests (to launch tests on the emulator) I have to

[android-developers] Touch mode again (CRUD application context).

2009-01-28 Thread Andriy Zakharchuk
Hello all, I have a question about touch mode (probably it was already asked, sorry if so, but I couldn't find a discussion like this). It's not about technical issues, everything more or less is clear here, it's more about philosophy. Hope Romain Guy will have chance to look into this. The

[android-developers] Re: Touch mode again (CRUD application context).

2009-01-28 Thread Andriy Zakharchuk
Thank you for comments, guys. Probably, I was not clear, but I'm still using context menus. However, in my opinion, context menu is a secondary way to perform an action. So, there should always be a primary way (options menu, item click, toolbar button). Context menu is less obvious/intuitive

[android-developers] How to set hint for single line EditText?

2008-12-09 Thread Andriy Zakharchuk
Hello all, I have a screen with a number of widgets. One of widgets is EditText. I need this edit box to be single line and want to set a hint for it. When I write editText.setHint(blah-blah-blah); I see hint, but edit box allows multi line input. When I write editText.setSingleLine(); I

[android-developers] Re: Standard widget styles

2008-12-01 Thread Andriy Zakharchuk
a lot ! On 26 nov, 14:03, Andriy Zakharchuk [EMAIL PROTECTED] wrote: Hello all, I'm trying to implement a view similar to the Contact view (screen with a contact icon, name, favourite checkbox, dial number and send SMS actions) available in the Android emulator. And I'm interesting

[android-developers] GridView

2008-12-01 Thread Andriy Zakharchuk
Hello all, I have a question about grid view: is there any chance to stretch GridView vertically. What I'm trying to do is to create a screen with a limited number of items (6). I need exactly 2 columns and 3 rows (or 3x2 in landscape mode) to fill all the screen. In a grid view I can control

[android-developers] Standard widget styles

2008-11-26 Thread Andriy Zakharchuk
Hello all, I'm trying to implement a view similar to the Contact view (screen with a contact icon, name, favourite checkbox, dial number and send SMS actions) available in the Android emulator. And I'm interesting if there are any standard styles available for that. Particularly, I'm looking

[android-developers] Re: ListView selection highlight size

2008-11-25 Thread Andriy Zakharchuk
Have you tried setting your own list selector via android:listSelector or setSelector(int)? Hmm, when I read documentation first time I thought that it is a kind of an icon (checkbox or smth else) I can use in addition to the selection. Now, I played with it a little bit, and I guess that's

[android-developers] REPOST: ListView selection highlight size

2008-11-21 Thread Andriy Zakharchuk
Hello all, I'm trying to create a list view with small list item views (smth similar to ListView we had in m3_rc37 version of SDK). Yes, I know they are not usable for finger touch mode, however I still want to have it. SDK 1.0_r1 samples contain Views/Lists/6. ListAdapter Collapsed screen. I

[android-developers] ListView selection highlight size

2008-11-21 Thread Andriy Zakharchuk
Hello all, I'd like to create a list with small list items (like it was in m3_rc37). Yes, I know this is not compatible with touch mode, but I'd like to have this anyway :) In the 1.0_r1 samples I see ListAdapter Collapsed example. I don't need collapsed items, but I refer to it since it

[android-developers] Re: ListView selection highlight size

2008-11-21 Thread Andriy Zakharchuk
smaller, whereas selection highlight bar did not. So my question was about selected item highlight, not the list item view. BTW, thank you for links to nice Android resources. On Nov 21, 8:00 pm, Mark Murphy [EMAIL PROTECTED] wrote: Andriy Zakharchuk wrote: Is there any way to make highlight