[android-developers] Change drawable for indeterminate progress bar

2010-06-29 Thread Alexey Volovoy
Hi all, i'm trying to change standard indeterminate progress bar from rotating wheel to sequence of 3 images ( dots ). What i have is a animation drawable defined as progress.xml : animation-list android:id=@+id/progress_animation android:oneshot=false

[android-developers] Need advice on UI control/feature implementation

2009-12-23 Thread Alexey Volovoy
Hi All , i have a requirement to have a control that visually is similar to the expandable list. However on the expansion of the section it should show something similar to the grid view. GridView should properly respond to itemclicks and should not be scrollable and expanded fully till the next

[android-developers] Re: Shape with open border

2009-12-01 Thread Alexey Volovoy
Anybody figured this out yet ? I need same thing.. On Nov 16, 5:44 pm, Matthew Wardrop mister.ward...@gmail.com wrote: I too would like to know this. On Oct 23, 1:31 pm, junker37 junke...@gmail.com wrote: I am wondering how to do this as well.  Also, I can't seem to find where this is

[android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Alexey Volovoy
Hi all, i'll have more info tomorrow, once i'll have this device again, but i was shown very weird stuff today. We've updated app with hi-res graphics for the Droid ( only drawables ) around 4 days ago . Resources organized res drawable drawable-hdpi-v6 App was tested in working fine on devices

[android-developers] Re: Person using Sprint Hero can't see application?

2009-11-14 Thread Alexey Volovoy
Most of the Heros running 1.5 , although upgrade afaik is available. So minSdk should be 3 ( or you'll run into the same problem with CLIQ users ) target SDK should be 4 On Nov 14, 9:53 am, g1bb corymgibb...@gmail.com wrote: Hello, I have someone e-mailing me that they can't see my application

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-12 Thread Alexey Volovoy
How's your uses-sdk part of manifest looks like ? On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote: Can anyone enlighten me? :) It looks like our app doesnt show up on the market on HTC Tattoo. What else should we specify in the manifest? On Thu, Nov 12, 2009 at 4:01 PM, Klaus

[android-developers] Re: Unexpected Resumes Running Under 2.0

2009-11-11 Thread Alexey Volovoy
I have same issue cause by this line of code i onCreate(); iconView.setImageResource(R.drawable.mylogor); On Oct 29, 9:18 pm, Nmix nepean...@gmail.com wrote: Ok, I found it -- it's my bug. Mark, you were partly right, and that helped. It was related to the configuration. Here is the guilty

[android-developers] Android 2.0 setImageResource(R.drawable.my_icon)

2009-11-11 Thread Alexey Volovoy
hi all , not sure if it's a bug or i'm using that in the wrong place. If i have following line (s ) of code in onCreate () iconView.setImageResource(R.drawable.my_icon); And ONLY if my device(Droid) or emulator running 2.0 in landscape it cause activity go through lifecycle endlessly like

[android-developers] TelephonyManager getDeviceID() in 2.0

2009-10-27 Thread Alexey Volovoy
Hi All getDeviceID() and LineNumber1 return null in th 2.0 emulator. Anybody knows how to fake those ? --~--~-~--~~~---~--~~ 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: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
...@commonsware.com wrote: Alexey Volovoy wrote: Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached headlines. And once a 3 hours or so - pull new ones. Update are scheduled from widget config file. Everything seems to be working, except I

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
...@commonsware.com wrote: Alexey Volovoy wrote: Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached headlines. And once a 3 hours or so - pull new ones. Update are scheduled from widget config file. Everything seems to be working, except I

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
At this moment no - but in new version i've provided ability to refresh content on demand. hopefully it'll solve complains problem On Jul 31, 9:15 am, String sterling.ud...@googlemail.com wrote: On Jul 31, 2:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Rationale behind frequent updates

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
At this moment no - but in new version i've provided ability to refresh content on demand. hopefully it'll solve complains problem On Jul 31, 9:15 am, String sterling.ud...@googlemail.com wrote: On Jul 31, 2:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Rationale behind frequent updates

[android-developers] Re: Widgets ( frequent updates )

2009-07-31 Thread Alexey Volovoy
At this moment no - but in new version i've provided ability to refresh content on demand. hopefully it'll solve complains problem On Jul 31, 9:15 am, String sterling.ud...@googlemail.com wrote: On Jul 31, 2:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Rationale behind frequent updates

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
android:resource=@xml/widget_news / /receiver Strangely i don't receive SCREEN_OFF/SCREEN_ON in my @Override public void onReceive(Context context, Intent intent) { } On Jul 29, 5:20 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Hm.. let's say i'm not going

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
Oh man.. that not going to fly .. I can't do it from the service, because service runs like for a second to update the widget and stopSelf(). So if i register something onStart() i'd have to unregister that onDestroy(). Therefore to actually catch that event while service is running becomes kind

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
is there anyway to get to the state of the phone/screen without listening to broadcasts ? --~--~-~--~~~---~--~~ 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: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
. If it goes a sleep i don't need to do anything. Well after putting devices to sleep i still see updates. It's obviously i'm doing something wrong but have no idea what exactly.. On Jun 22, 9:09 pm, Alexey Volovoy avolo...@gmail.com wrote: Skip the work is not a really good option in my case. I have

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
I see it the logs of course. Every 30 sec it's starting the service as it should if it's not asleep. On Jul 29, 2:35 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Well.. i've tried to use alarm manager like: AlarmManager alarmManager = (AlarmManager)getSystemService

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
the trick. On Jul 29, 2:49 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: I see it the logs of course. Every 30 sec it's starting the service as it should if it's not asleep. Are you holding a WakeLock anywhere? Is anything else perhaps keeping the device/emulator awake

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
awake.  There are also often things that will wake up the device in the background that can allow your own alarm to go off. On Wed, Jul 29, 2009 at 1:06 PM, Alexey Volovoy avolo...@gmail.com wrote: I don't set any WakeLocks . So yes it's seems to be something is preventing device to go

[android-developers] Re: Widgets ( frequent updates )

2009-07-29 Thread Alexey Volovoy
. On Jul 29, 5:08 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Thanks for reply Dianne - my worry is that 30 sec interval for update is not enough to let device fall asleep and my updates basically prevent that. I've tried to disconnect device for an hour or so and it's

[android-developers] Bitmap memory leaks with onClick...

2009-07-13 Thread Alexey Volovoy
Hi All i have strange memory leak with Bitmaps. First what i have - an activity that based on the workspace view from Launcher ( 3 screens current prev + next ) . This layout is supplied with adapter , so then i flipping left/right it loads next view. The views that adapter is providing is an

[android-developers] Re: Error on SharedPreferences for AppWidget

2009-07-13 Thread Alexey Volovoy
I think it's an issue with exiting config activity before saving widget settings. Put some logging around create/delete widget and in the service and see how many widgets you're ended up getting while rotating screen Log.d(TAG, appWidgetId= + appWidgetId); You can put some logging around

[android-developers] Re: loop through strings.xml

2009-07-02 Thread Alexey Volovoy
I didn't check if you'll have an access to that file. If you do - then you can parse it ( SAX ). But WHY ? On Jul 1, 11:41 pm, Josh joshdo...@gmail.com wrote: Is there a way to loop through the values of strings.xml? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Alexey Volovoy
bump ? On Jun 22, 8:59 am, Alexey Volovoy avolo...@gmail.com wrote: Hi All , i have dialog style activity android:theme=@android:style/Theme.Dialog When i attachedcontextmenuto it         @Override         public void onCreate(Bundle savedInstanceState) {                 super.onCreate

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Alexey Volovoy
thanks for reply Dianne. On Jul 1, 11:20 am, Dianne Hackborn hack...@android.com wrote: The current platform doesn't support menus on non-fullscreen windows, sorry. On Wed, Jul 1, 2009 at 8:31 AM, Alexey Volovoy avolo...@gmail.com wrote: bump ? On Jun 22, 8:59 am, Alexey Volovoy avolo

[android-developers] Theme.Dialog Activity and Context Menu

2009-06-22 Thread Alexey Volovoy
Hi All , i have dialog style activity android:theme=@android:style/Theme.Dialog When i attached context menu to it @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);

[android-developers] Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached headlines. And once a 3 hours or so - pull new ones. Update are scheduled from widget config file. Everything seems to be working, except I don't want to running my updates which are simply

[android-developers] Re: Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
One sec.. you might be right - i think i have a dev setting on the phone that prevents it from sleeping .. On Jun 22, 4:31 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: Hi All , i'm looking for the best strategy for the following -- widget suppose to go through cached

[android-developers] Re: Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
hm.. based on the logs from UpdateService onStart - it's still executing update after i've uchecked the setting. On Jun 22, 4:35 pm, Alexey Volovoy avolo...@gmail.com wrote: One sec.. you might be right - i think i have a dev setting on the phone that prevents it from sleeping .. On Jun 22

[android-developers] Re: Widgets ( frequent updates )

2009-06-22 Thread Alexey Volovoy
- setting it to 0 does the job. On Jun 22, 6:00 pm, Mark Murphy mmur...@commonsware.com wrote: Alexey Volovoy wrote: hm.. based on the  logs from UpdateService onStart - it's still executing update after i've uchecked the setting. That's odd. That means they must be using a WAKEUP form

[android-developers] Re: Problem with setExtra

2009-06-22 Thread Alexey Volovoy
logs ? On Jun 22, 9:24 pm, Will wbc...@gmail.com wrote: Sorry, I wasn't clear. That putExtra call actually crashes the program, which is why I'm so stumped. Why would a putExtra() call crash the app? --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Relative layout and include tag

2009-06-15 Thread Alexey Volovoy
anyone ? --~--~-~--~~~---~--~~ 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: Widget(s) and Pending intent

2009-05-22 Thread Alexey Volovoy
Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer crashing, but it always launches the activity with extras were put in the widget that was updated the last. It looks like pending intent is shared among my widget instances . Anyway to avoid that ? On May 22, 12:36 pm, Alexey

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread Alexey Volovoy
them unique, either by having unique actions or unique data. One of the solutions mentioned in one the threads about PendingIntents is to create a custom: data with the current system time in it. On May 22, 11:41 am, Alexey Volovoy avolo...@gmail.com wrote: Then i've tried

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread Alexey Volovoy
, DetailsActivity.class);         detailIntent.setData(appWidgetUri);         PendingIntent pending = PendingIntent.getActivity(context, 0, detailIntent, 0);         views.setOnClickPendingIntent(R.id.widget, pending); the extras are never set, but setData() is called... good luck On May 22, 1:41 pm, Alexey

[android-developers] Re: get intent getStringExtra in a View??

2009-05-22 Thread Alexey Volovoy
why did you declare you View class static ? Move it out of actvity. Create public method init in the view. Get an extra in your activity and pass to View. On May 22, 3:45 pm, guruk ilovesi...@gmail.com wrote: Hi, i have a: public class basal extends GraphicsActivity { --        

[android-developers] Re: How to loading images (assets or resources) dynamically?

2009-05-22 Thread Alexey Volovoy
BitmapFactory.decodeByteArray On May 21, 11:54 am, Kim ksunl...@gmail.com wrote: Hi, How do I load the image dynamically through the code? If its unclear, I mean, I want to load image files by name based on the condition in the code. If I use images as resources, the image names have to

[android-developers] Re: 1.5 ListView disabled items

2009-05-16 Thread Alexey Volovoy
No problem, i got to tell you it means a lot that you guys responding to the questions. Thanks. See you at I/O. On May 15, 5:59 pm, Romain Guy romain...@google.com wrote: Sorry for that :( On Fri, May 15, 2009 at 3:21 PM, Alexey Volovoy avolo...@gmail.com wrote: Romain, thanks

[android-developers] Re: 1.5 ListView disabled items

2009-05-15 Thread Alexey Volovoy
Ok thanks for the answer. Although i must say it really does look ugly if the item happen to be in the middle of the list. On May 15, 12:02 pm, Romain Guy romain...@google.com wrote: Yes, it is intentional. On Fri, May 15, 2009 at 9:02 AM, Alexey avolo...@gmail.com wrote: Hi all , i've

[android-developers] Re: 1.5 ListView disabled items

2009-05-15 Thread Alexey Volovoy
the dividers make sense for separators. On Fri, May 15, 2009 at 12:19 PM, Alexey Volovoy avolo...@gmail.com wrote: Ok thanks for the answer. Although i must say it really does look ugly if the item happen to be in the middle of the list. On May 15, 12:02 pm, Romain Guy romain...@google.com

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
On Apr 28, 12:41 pm, Raphael r...@android.com wrote: Your question isn't quite clear. You might want to rephrase it. How to create to packages from same code base ? For your post subject: what identifies an application is the package name that you provide in the AndroidManifest.xml. I'm

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
We currently don't have a good story for this especially since, as you found and said in your first post, the R class package depends on the project. One solution is to move android-agnostic code in a separate project building a jar library that you then package in your various android

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
Well android resources are in android.R package . always. To pass a resource ID i need to know what it is. To find out what it is - i need reference R. May be i didn't get what exactly you're suggesting. Here is simple example - i have app with package1. i want to use same activity with

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
life is beautiful i've discovered ant replace command :) target name=test mkdir dir=src-temp / copy todir=src-temp overwrite=true fileset dir=src/ /copy replace dir=src-temp includes=**/*.java

[android-developers] Re: Custom android ANT tasks

2009-05-13 Thread Alexey Volovoy
It'll be nice to have this info here as well http://developer.android.com/sdk/1.5_r1/upgrading.html#AntUsers On Apr 14, 2:29 pm, Xavier Ducrohet x...@android.com wrote: Hello, The new SDK include multiple versions of the Android platforms. Because newer versions could have slightly different