[android-developers] Re: java.io.FileNotFoundException: (Device or resource busy)

2011-05-28 Thread Menion
similar problem for me! I extract one zip file. This is done fine. When I delete extracted directory and want to extract another file, it throw same error! On 9 kvě, 19:00, faah farah.ha...@gmail.com wrote: Can someone tell me how to handle Device or resource busy error? Or how to fix it? On

[android-developers] Re: Paint single Path object with Xfermode

2011-03-16 Thread Menion
Looks that this really have no solution other, then separate Path object every cca 100m to gain effect of darker color when path is overlay one over another. Thanks anyway ... On Mar 14, 12:37 pm, Menion menion.as...@gmail.com wrote: As I expect, wrong description. Sorry Once more

[android-developers] Re: Paint single Path object with Xfermode

2011-03-14 Thread Menion
Hmm, looks that no one have answer. Is problem that my question is not understandable or here is no simple solution? On Mar 13, 1:19 pm, Menion menion.as...@gmail.com wrote: Hi,   I have one path object (for example recorded track). I'm drawing it on canvas. When I set semi-transparent color

[android-developers] Re: Paint single Path object with Xfermode

2011-03-14 Thread Menion
Hmm, looks that no one have answer. Is problem that my question is not understandable or here is no simple solution? On Mar 13, 1:19 pm, Menion menion.as...@gmail.com wrote: Hi,   I have one path object (for example recorded track). I'm drawing it on canvas. When I set semi-transparent color

[android-developers] Re: Paint single Path object with Xfermode

2011-03-14 Thread Menion
. Is there anything I'm missing? Thank you for time to read this! On Mar 14, 10:10 am, Romain Guy romain...@android.com wrote: It's not clear what your problem is? You can draw a Path and apply an xfermode while drawing it. On Mon, Mar 14, 2011 at 1:50 AM, Menion menion.as...@gmail.com wrote

[android-developers] Re: Dynamically Resize Images for different Android devices

2011-03-14 Thread Menion
I'm using something like this ... public static Bitmap resizeBitmap(Bitmap draw, int newWidth) { if (draw == null || newWidth = 0 || draw.getWidth() == newWidth) return draw; int newHeight = (int) (newWidth * draw.getHeight() / draw.getWidth()); return

[android-developers] Paint single Path object with Xfermode

2011-03-13 Thread Menion
Hi, I have one path object (for example recorded track). I'm drawing it on canvas. When I set semi-transparent color to paint object, whole path is colored like this. This is correct. Imagine that you was walking on some rectangle area from one side to another, few times you were on same

[android-developers] Re: searching in HUGE SQLite database

2011-01-15 Thread Menion
that's not true. As I wrote, I cannot change structure of database, but i did my own test and indexes as are PRIMARY KEY (x, y, z, s) are almost twice faster for query on single row by x, y, z values (for reading and mainly for writing), then classic ID INTEGER PRIMARY KEY I'm not database

[android-developers] searching in HUGE SQLite database

2011-01-14 Thread Menion
Hi, this was already discussed here, but I have another problem with database search. I'm testing on one big database, more then 2GB (stored on SD card of course) with around 1 million of rows in table 'tiles'. Database contain X, Y, Z coordinates as INT (map index) and byte[] image data.

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Menion
: On 14 January 2011 15:24, Menion menion.as...@gmail.com wrote: I'm testing on one big database, more then 2GB (stored on SD card of have you please any tip how to solve this?? Maybe consider moving your DB to external machine and exposing via any API. Depending on the purspose, how often data

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Menion
only one info database 1.8GB works fine database 2.5GB do not work! On Jan 14, 4:44 pm, Menion menion.as...@gmail.com wrote: nono, data aren't corrupted when I use SQLite Database Browser 2.0b1 (desktop software) all SQL string done fine, just takes a too much time too. This database

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Menion
Hi guys thanks for your big help! so after I read all answers there is only one solution for me! Deny users to have database bigger then 2GB! why? because structure of database cannot be change. It's something like standart so I have to use it as is! I just wanted to know, if exist any SQL

[android-developers] Re: Clear defaults programmatically

2010-04-18 Thread Menion
I'm using this code ... hope it helps PreferenceManager.getDefaultSharedPreferences(context).edit().clear().commit(); On Apr 16, 11:09 am, Bonifaz bonifaz.kaufm...@gmail.com wrote: Does anyone know how to clear defaults of my own app by code. I know that a user can always go to Manage

[android-developers] Re: Performance comparison NDK vs SDK

2010-04-07 Thread Menion
I'm doing some little research school project, together with learning basics of C++ (thanks to JNI) and here is some simple example ... Java function: --- public double doClickAction04J() { double x = 45.0 / (180.0 / Math.PI); double result = 0.5; for

[android-developers] Re: restarting the application

2010-03-31 Thread Menion
Hi Asik I'm trying to find solutin for similar problem, how to restart an application. Your slution is little funny but functional of course. In my code, to force close app I use this In my main activity I call [code] ActivityManager aM = (ActivityManager)

[android-developers] Re: restarting the application

2010-03-31 Thread Menion
Hi Asik I'm trying to find solutin for similar problem, how to restart an application. Your slution is little funny but functional of course. In my code, to force close app I use this In my main activity I call [code] ActivityManager aM = (ActivityManager)

[android-developers] Re: GPS Queueing in LocationListener

2010-03-25 Thread Menion
Hi guys, Mike, please, you wrote that you are pretty sure not to do some direct processing of satellites ephemeris in Java. But my question is, do you know some method (probably thanks to JNI) how to obtain direct measure from GPS receiver? I have some imaginations to do postprocessing

[android-developers] Re: GPS Queueing in LocationListener

2010-03-25 Thread Menion
...@gmail.com wrote: On 03/25/2010 01:07 AM, Menion wrote: Hi guys,    Mike, please, you wrote that you are pretty sure not to do some direct processing of satellites ephemeris in Java. But my question is, do you know some method (probably thanks to JNI) how to obtain direct measure from GPS

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-03-04 Thread Menion
next time, I'll try to read comments also :). Thank you very much, you point me to finally working solution. On Mar 4, 11:41 am, Adrian Vintu adrianvi...@gmail.com wrote: Hi Menion, Yes, you have to set the locale in onCreate. It was written in the comments of the article. BR, Adrian Vintu

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-03-03 Thread Menion
other permanent solution. On Mar 3, 10:38 pm, Adrian Vintu adrianvi...@gmail.com wrote: Hope this will helphttp://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx BR, Adrian Vintu http://adrianvintu.com On Sat, Feb 27, 2010 at 3:09 PM, Menion menion.as...@gmail.com wrote: Hi

[android-developers] Re: Security question: can Android source be decompiled and read?

2010-03-02 Thread Menion
Hi, can you imagine how hard is then to decompile shared library written in C? Or is this even possible? Thanks On Mar 2, 9:17 pm, Greg Donald gdon...@gmail.com wrote: On Tue, Mar 2, 2010 at 12:23 PM, Anna PS annapowellsm...@googlemail.com wrote: So I would like to store a username and

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-02-27 Thread Menion
solution ... On Feb 14, 11:45 am, mot12 martin.hu...@gmail.com wrote: Menion, Ok, now I feel silly because I thought I could figure it out from your post. 1) Settings.getLanguage() is from your own preference settings? It is no android.provider.Settings, right? 2) When my app loads, I read

[android-developers] Re: selecting language from within the app rather than by locale of the system settings

2010-02-14 Thread Menion
Hi mot12, i was fighting with similar problem few days ago and succesfully solved. so my solution which may help you too ... String lang = Settings.getLanguage(); Resources res = activity.getResources(); DisplayMetrics dm = res.getDisplayMetrics(); Configuration config = res.getConfiguration();

[android-developers] Re: Android Performance Monitoring..

2010-01-21 Thread Menion
try look at this ... http://developer.android.com/intl/fr/guide/developing/tools/traceview.html i mean, very usefull ;) On Jan 21, 10:54 am, bharat yeahbha...@gmail.com wrote: Guys, I am working on a project where I need to measure the performance of an app in terms of memory and CPU cycles

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

2009-11-13 Thread Menion
Hi, I have very similar problem, but still not successfully resolved. In first activity during onCreate() I have this code Resources res = activity.getResources(); DisplayMetrics dm = res.getDisplayMetrics(); Configuration conf = res.getConfiguration(); // want to set (force) czech language on