[android-developers] Re: Event flow when adding/removing app widgets

2013-12-19 Thread Andriy Tsykholyas
miércoles, 18 de diciembre de 2013 08:06:20 UTC-3, Andriy Tsykholyas escribió: I have read Google's App Widgets guidehttp://developer.android.com/guide/topics/appwidgets/index.html . I'd like to clarify the event flow in AppWidgetProviderhttp://developer.android.com/reference/android/appwidget

[android-developers] Event flow when adding/removing app widgets

2013-12-18 Thread Andriy Tsykholyas
I have read Google's App Widgets guidehttp://developer.android.com/guide/topics/appwidgets/index.html . I'd like to clarify the event flow in AppWidgetProviderhttp://developer.android.com/reference/android/appwidget/AppWidgetProvider.htmlin following scenario: 0) User installed the app which

[android-developers] How the input method can request 'updateCursor' event

2010-11-10 Thread Andriy Tsykholyas
Hi, we are implementing custom input method service and we are interested in receiving cursor update events. The documentation of InputMethodSession's updateCursor() says: This method is called when cursor location of the target input field has changed within its window. This is not normally

[android-developers] Preferences for input method

2010-03-01 Thread Andriy Tsykholyas
Hi, I'm working on input method. While creating the settings for it I've stuck with the following problem: settings view (which extends PreferenceActivity) fails to show if its package differs from the application's package. So, application package is my.ime, and full name of settings view is

[android-developers] Re: Large data file: how to deal with it?

2009-12-18 Thread Andriy Tsykholyas
not loaddatain the APK. It is best to keep the APK small as possible. On Dec 10, 12:03 pm, Andriy Tsykholyas andriy.tsykhol...@gmail.com wrote: Hi, My application needs to intensively manipulate (read-write) on some structured textdata. The size of thedatais significant ~1Mb

[android-developers] Re: Large data file: how to deal with it?

2009-12-16 Thread Andriy Tsykholyas
much smaller than 1 Mb :) On Dec 16, 5:44 am, Andriy Tsykholyas andriy.tsykhol...@gmail.com wrote: On Dec 10, 7:50 pm, Mark Murphy mmur...@commonsware.com wrote: My idea is to put thisdataas afilein the .apk. Then, on initial application launch to read thisdataand populate Android

[android-developers] Why first call to Cursor.getCount() is so slow?

2009-12-15 Thread Andriy Tsykholyas
Hi, I've noticed quite a strange thing with Cursor object. If I use my own database (with SQLiteDatabase and SQLiteOpenHelper) and run some query on it (using any of SQLiteDatabase query() methods) this query is finished very quickly, in a few milliseconds. But then first call to some of Cursor

[android-developers] Re: Large data file: how to deal with it?

2009-12-15 Thread Andriy Tsykholyas
On Dec 10, 7:50 pm, Mark Murphy mmur...@commonsware.com wrote: My idea is to put this data as afilein the .apk. Then, on initial application launch to read this data and populate Android SQLite database with it. Then just work with this database. But after the database is populated the

[android-developers] Re: Large data file: how to deal with it?

2009-12-11 Thread Andriy Tsykholyas
John and Mark, thanks for your answers :) On Dec 10, 7:50 pm, Mark Murphy mmur...@commonsware.com wrote: My idea is to put this data as a file in the .apk. Then, on initial application launch to read this data and populate Android SQLite database with it. Then just work with this database.

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-11 Thread Andriy Tsykholyas
I've ended up with a 'build' project which is merely a set of symbolic links to 'real' projects. This approach works perfectly for me :) On Dec 10, 9:30 pm, Mark Murphy mmur...@commonsware.com wrote: Well, in this case you have to go java way:  getClassLoader().getResourceAsStream(name it

[android-developers] Re: Large data file: how to deal with it?

2009-12-11 Thread Andriy Tsykholyas
have a place to host your data. On 12/11/09 11:35 AM, Andriy Tsykholyas wrote: John and Mark, thanks for your answers :) On Dec 10, 7:50 pm, Mark Murphymmur...@commonsware.com  wrote: My idea is to put this data as a file in the .apk. Then, on initial application launch to read

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-11 Thread Andriy Tsykholyas
are interested in more details just let me know :) On Dec 11, 2:39 pm, Andriy Tsykholyas andriy.tsykhol...@gmail.com wrote: I've ended up with a 'build' project which is merely a set of symbolic links to 'real' projects. This approach works perfectly for me :) On Dec 10, 9:30 pm, Mark Murphy

[android-developers] Re: Large data file: how to deal with it?

2009-12-11 Thread Andriy Tsykholyas
On Dec 11, 9:59 pm, Mark Murphy mmur...@commonsware.com wrote: 2) Keeping unnecessary data in /assets is also bad because of wasting memory. Using compression would reduce the problem but won't eliminate it... Bear in mind that APK files are ZIP files, so most content gets compressed by

[android-developers] Project dependency: reusing code and resources from another Android project

2009-12-10 Thread Andriy Tsykholyas
Hi, * In short: Is it possible to reuse classes and resources from A.apk in B.apk? * Explanation and my problem: I have project A with some classes and some resources (used for classes configuration). I'd like to reuse its classes (and resources necessary for them) in another project B (and

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-10 Thread Andriy Tsykholyas
Mark, thanks for your answers. On Dec 10, 3:12 pm, Mark Murphy mmur...@commonsware.com wrote: * In short: Is it possible to reuse classes and resources from A.apk in B.apk? Classes, no. Resources, sorta, but I'm not sure it's a good idea, since you have no way of ensuring that each device

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-10 Thread Andriy Tsykholyas
. I'd like to avoid such solution :) On Dec 10, 8:00 am, Andriy Tsykholyas andriy.tsykhol...@gmail.com wrote: Hi, * In short: Is it possible to reuse classes and resources from A.apk in B.apk? * Explanation and my problem: I have project A with some classes and some resources (used

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-10 Thread Andriy Tsykholyas
:-) ) On Dec 10, 8:42 am, Andriy Tsykholyas andriy.tsykhol...@gmail.com wrote: On Dec 10, 3:28 pm, WoodManEXP woodman...@gmail.com wrote: If they need to reference resources, well, it just seems it is not possible at this point. That's what I was afraid of :( For the parts

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-10 Thread Andriy Tsykholyas
On Dec 10, 4:29 pm, Mark Murphy mmur...@commonsware.com wrote: According to http://developer.android.com/guide/publishing/versioning.html B can check if A is installed. It can even check which version of A is installed :) Which gets you little, since you cannot force the user to install

[android-developers] Re: Project dependency: reusing code and resources from another Android project

2009-12-10 Thread Andriy Tsykholyas
On Dec 10, 4:49 pm, Mark Murphy mmur...@commonsware.com wrote: Which gets you little, since you cannot force the user to install A. But you can: Which will irritate your users. I agree :) Hence, I stand by my assessment that, while there are ways for B to access A's resources at

[android-developers] Large data file: how to deal with it?

2009-12-10 Thread Andriy Tsykholyas
Hi, My application needs to intensively manipulate (read-write) on some structured text data. The size of the data is significant ~1Mb. And there is initial data available for the user to start with. My idea is to put this data as a file in the .apk. Then, on initial application launch to read

[android-developers] Re: How to read a float value form resources?

2009-12-04 Thread Andriy Tsykholyas
Thanks :) On Dec 3, 8:08 pm, Dianne Hackborn hack...@android.com wrote: You can use dimensions, with pixel units. On Thu, Dec 3, 2009 at 3:46 AM, Andriy Tsykholyas andriy.tsykhol...@gmail.com wrote: Hi, Reading values like integers, strings, colors, etc. from resources (xml files

[android-developers] How to read a float value form resources?

2009-12-03 Thread Andriy Tsykholyas
Hi, Reading values like integers, strings, colors, etc. from resources (xml files) is easy and well defined at http://developer.android.com/guide/topics/resources/available-resources.html. But what about a float value, like 0.1 or 1.4? How can such float value be defined in resource file and