[android-developers] Re: widget with custom bitmaps
No you can't. Your resources have to be inside the res folder. -Kumar Bibek http://techdroid.kbeanie.com On Oct 4, 10:42 pm, siliconeagle rrmu...@gmail.com wrote: Well as far as i know the resource id's are created at design time (in R.java). Is there a way to tell Android to create a new resource id for my bitmap that is made at runtime? Perhaps this violates the concept of a resource (can they only be in the res or assets folder of a app, or can the exist on the SD card or in memory). rob munro On Oct 3, 10:27špm, Kostya Vasilyev kmans...@gmail.com wrote: Not sure what you mean, could you clarify? -- Kostya Vasilyev --http://kmansoft.wordpress.com 01.10.2010 20:04 ÐÏÌØÚÏ×ÁÔÅÌØ siliconeagle rrmu...@gmail.com ÎÁÐÉÓÁÌ: is it possible to create resource ids programatically? On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote: The issue here is marshalling bitm... 01.10.2010 16:21 ÐÏÌØÚÏ×ÁÔÅÌØ siliconeagle rrmu...@gmail.com ÎÁÐÉÓÁÌ: I am writing a clock widget that uses customised bitmaps (so the widget loads the bitmap from ... android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group... -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: widget with custom bitmaps
Well as far as i know the resource id's are created at design time (in R.java). Is there a way to tell Android to create a new resource id for my bitmap that is made at runtime? Perhaps this violates the concept of a resource (can they only be in the res or assets folder of a app, or can the exist on the SD card or in memory). rob munro On Oct 3, 10:27 pm, Kostya Vasilyev kmans...@gmail.com wrote: Not sure what you mean, could you clarify? -- Kostya Vasilyev --http://kmansoft.wordpress.com 01.10.2010 20:04 пользователь siliconeagle rrmu...@gmail.com написал: is it possible to create resource ids programatically? On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote: The issue here is marshalling bitm... 01.10.2010 16:21 пользователь siliconeagle rrmu...@gmail.com написал: I am writing a clock widget that uses customised bitmaps (so the widget loads the bitmap from ... android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group... -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: widget with custom bitmaps
Not sure what you mean, could you clarify? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.10.2010 20:04 пользователь siliconeagle rrmu...@gmail.com написал: is it possible to create resource ids programatically? On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote: The issue here is marshalling bitm... 01.10.2010 16:21 пользователь siliconeagle rrmu...@gmail.com написал: I am writing a clock widget that uses customised bitmaps (so the widget loads the bitmap from ... android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group... -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: widget with custom bitmaps
is it possible to create resource ids programatically? On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote: The issue here is marshalling bitmap data from your widget process into the launcher process. If you load the bitmap in your process, and specify as a drawable in RemoteViews, then its actual bytes will need to be marshalled into the launcher process. This is not efficient. It's better to specify your drawables as a resource id. Updating every second is kind of questionable, it will eat through the battery pretty fast. -- Kostya Vasilyev --http://kmansoft.wordpress.com 01.10.2010 16:21 пользователь siliconeagle rrmu...@gmail.com написал: I am writing a clock widget that uses customised bitmaps (so the widget loads the bitmap from the sdcard) Just have a couple of questions regarding how updates work: 1. if i want to display seconds on the clock widget will the widget load the bitmaps off the disk every second or can they be cached somehow so it doesn't reload off the disk each time. or If it does reload a bitmap each second, would this use a lot of power? 2. If i load the customised number bitmaps into a static array and then pass them as bitmaps to the widget would this use less power than just loading off the SD card? best regards, rob -- 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en