[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 : http://schemas.android.com/apk/res/android";> and progressbar defined as : In general it works

[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 se

[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 wrote: > I too would like to know this. > > On Oct 23, 1:31 pm, junker37 wrote: > > > > > I am wondering how to do this as well.  Also, I can't seem to find > > where this is documented. > > > On Oct 19, 4:19 

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

2009-11-17 Thread Alexey Volovoy
Thanks Mark, that is strange - i'll test more tomorrow but Sprint hero with both roms work fine ( or it least it was reported to me that they are ). I'm going to recheck tomorrow morning. On Nov 17, 8:03 pm, Mark Murphy wrote: > Alexey Volovoy wrote: > > With eris behavior

[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 dr

[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 wrote: > Hello, > > I have someone e-mailing me that they can't see my application in the > Market. Is

[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 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 Kartou wrote:

[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 described

[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 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 code, > which is in on

[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 a

[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 wrote: > On Jul 31, 2:46 pm, Alexey Volovoy wrote: > > > Rationale behind frequent updates - if 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 wrote: > On Jul 31, 2:46 pm, Alexey Volovoy wrote: > > > Rationale behind frequent updates - if 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 wrote: > On Jul 31, 2:46 pm, Alexey Volovoy wrote: > > > Rationale behind frequent updates - if i'

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

2009-07-31 Thread Alexey Volovoy
sables updates) and manage your own update alarms without > the WAKEUP flag. > > j > > > > On Mon, Jun 22, 2009 at 2:31 PM, Mark Murphy wrote: > > > Alexey Volovoy wrote: > >> Hi All , i'm looking for the best strategy for the following -- widget > >>

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

2009-07-31 Thread Alexey Volovoy
sables updates) and manage your own update alarms without > the WAKEUP flag. > > j > > > > On Mon, Jun 22, 2009 at 2:31 PM, Mark Murphy wrote: > > > Alexey Volovoy wrote: > >> Hi All , i'm looking for the best strategy for the following -- widget > >>

[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-develo

[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 o

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

2009-07-30 Thread Alexey Volovoy
ublic void onReceive(Context context, Intent intent) { } On Jul 29, 5:20 pm, Mark Murphy wrote: > Alexey Volovoy wrote: > > Hm.. let's say i'm not going to schedule next update via alarm if > > screen is off. Service will shut itself down. Then screens is coming > > bac

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

2009-07-29 Thread Alexey Volovoy
ng the run. On Jul 29, 5:08 pm, Mark Murphy 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

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

2009-07-29 Thread Alexey Volovoy
usb keeps the device 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 wrote: > > > I don't set any WakeLocks . So yes it's s

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

2009-07-29 Thread Alexey Volovoy
will see if that will do the trick. On Jul 29, 2:49 pm, Mark Murphy 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

[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 wrote: > Alexey Volovoy wrote: > > Well.. i've tried to use alarm manager like: > > AlarmManager alarmManager =

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

2009-07-29 Thread Alexey Volovoy
terval. 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 wrote: > Skip the work is not a really good option in m

[android-developers] Re: Linking to apps in the Android Market

2009-07-13 Thread Alexey Volovoy
http://developer.android.com/guide/publishing/publishing.html#marketintent On Jul 13, 2:58 pm, Carl Whalley wrote: > Is it possible to put a link to an app in the market on a webpage? > If not, and the apk is hosted directly, can we assume download stats > in the market will be unaffacted? > Tha

[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 aroun

[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 Imag

[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 wrote: > Is there a way to loop through the values of strings.xml? --~--~-~--~~~---~--~~ You received this message because you are s

[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 wrote: > The current platform doesn't support menus on non-fullscreen windows, sorry. > > > > On Wed, Jul 1, 2009 at 8:31 AM, Alexey Volovoy wrote: > > > bump ? > > > On Jun 22, 8:59 am, Alexey

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

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

[android-developers] Re: Problem with setExtra

2009-06-22 Thread Alexey Volovoy
logs ? On Jun 22, 9:24 pm, Will 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 are subscribe

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

2009-06-22 Thread Alexey Volovoy
very long time - setting it to 0 does the job. On Jun 22, 6:00 pm, Mark Murphy 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 mus

[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 wrote: > One sec.. you might be right - i think i have a dev setting on the > phone that prevents it from sleeping .. > > On

[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 wrote: > Alexey Volovoy wrote: > > Hi All , i'm looking for the best strategy for the following -- widget > > suppose to go through c

[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 changing

[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] Re: postInvalidate not work in non-UI thread

2009-06-16 Thread Alexey Volovoy
do this : http://android-developers.blogspot.com/2009/05/painless-threading.html On Jun 16, 3:38 am, waterblood wrote: > Dear all, > >    I cannot make postInvalidate() work in non-UI thread in sdk1.5. > Below are my code, let me know if i am wrong in some place. It is > supposed to update imag

[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-develo

[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 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 be hard coded

[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 wrote: > Hi, > > i have a: > > public class basal extends GraphicsActivity { > > -- >         @Override    

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

2009-05-22 Thread Alexey Volovoy
setData() is called... > > good luck > > On May 22, 1:41 pm, Alexey Volovoy wrote: > > > 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

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

2009-05-22 Thread Alexey Volovoy
ame. > > You need to make 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 wrote: >

[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 wrote

[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 wrote: > Sorry for that :( > > > > On Fri, May 15, 2009 at 3:21 PM, Alexey Volovoy wrote: > > > Romain, thanks for the expl

[android-developers] Re: 1.5 ListView disabled items

2009-05-15 Thread Alexey Volovoy
e why not drawing the dividers make sense for separators. > > > > On Fri, May 15, 2009 at 12:19 PM, Alexey Volovoy 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. > > &

[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 wrote: > Yes, it is intentional. > > On Fri, May 15, 2009 at 9:02 AM, Alexey wrote: > > > Hi all , i've noticed after i've switched to 1.5 t

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

2009-05-14 Thread Alexey Volovoy
life is beautiful i've discovered ant replace command :) import com.test.prod.R import com.test.dev.R Don

[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 package2-n

[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
On Apr 28, 12:41 pm, Raphael 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 very well aware

[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 wrote: > Hello, > > The new SDK include multiple versions of the Android platforms. > Because newer versions could have slightly different build steps,