Re: [android-developers] How to get physical screen size reliably for all devices?

2014-01-31 Thread Latimerius
On Fri, Jan 31, 2014 at 8:25 PM, pskr pskrt...@gmail.com wrote: Is there a better way? Works for few other devices I have. Is SGH-I727 reporting incorrect values? Yes, I'm afraid. I have tried to solve the same problem and failed to find a solution. The issue has been discussed here already

Re: [android-developers] App description localisation

2013-10-18 Thread Latimerius
You can localise the app and the description independently. We localised our app listing months before the app itself was localised. I guess the worst you're risking that way is someone disappointed after download to see the app doesn't speak their language after all, and we did have a bunch of

Re: [android-developers] Re: Detecting the presence of a menu button.

2013-10-18 Thread Latimerius
I strongly disliked the way the Menu button was treated, too. For a while I tried to figure out a rule like the one you mention to allow me to use the button at least where it's available but after several failures we decided we couldn't afford using our users to test on the vast array of Android

Re: [android-developers] On which Android version is it safe to use Hindi?

2013-09-17 Thread Latimerius
I was looking for a reasonably reliable way of knowing whether the device we're currently running on supports displaying text in a particular language. I found none. What I ended up doing is that I only display Hindi if Hindi is the current active language in device settings. It's not my ideal

[android-developers] SurfaceHolder.setFormat() only working when called from the *wrong* thread?

2013-08-23 Thread Latimerius
In a testing program I'm playing with currently, I want to use setFormat() to adapt the pixel format of my surface to the chosen EGL config before I pass the surface holder to eglCreateWindowSurface(). Now, I call EGL from my render thread and I know SurfaceHolder.setFormat() is documented to

Re: [android-developers] Re: SurfaceHolder.setFormat() only working when called from the *wrong* thread?

2013-08-23 Thread Latimerius
that? On Friday, August 23, 2013 1:11:57 PM UTC-5, latimerius wrote: In a testing program I'm playing with currently, I want to use setFormat() to adapt the pixel format of my surface to the chosen EGL config before I pass the surface holder to eglCreateWindowSurface(). Now, I call EGL from my

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-08-14 Thread Latimerius
On Tue, Aug 13, 2013 at 11:45 PM, Kostya Vasilyev kmans...@gmail.comwrote: So you have an HTC... I've got two on my desk, and the language / locale list on both of them is region-specific: Russian (Russia, Ukraine, Georgia, other former Soviet republics) English (same list of countries)

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-08-13 Thread Latimerius
to display. On Thu, Jun 13, 2013 at 6:22 PM, Latimerius l4t1m3r...@gmail.com wrote: Thanks, that's good info. The reason I didn't check the source in this case is, first, with min sdk of 7 that's a lot of source to check ;-) , and second that this whole issue is fairly peripheral to our app. I'm

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-08-13 Thread Latimerius
which is *not* on the list, it worked anyway! On Tue, Aug 13, 2013 at 10:50 PM, Latimerius l4t1m3r...@gmail.com wrote: Admittedly it took a bit ;-) but I finally got around to taking a closer look. My HTC Desire show the following languages in its LanguagesInput menu: English (United Kingdom

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-06-13 Thread Latimerius
, June 12, 2013 3:56:39 PM UTC+3, latimerius wrote: Thanks for the reply. To explain a bit further: the reason I'm trying to get something similar to what the user sees in Language input is, I just consider it unlikely that a device would offer a language that's it's not capable to handle

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-06-13 Thread Latimerius
, latimerius wrote: Thanks for the reply. To explain a bit further: the reason I'm trying to get something similar to what the user sees in Language input is, I just consider it unlikely that a device would offer a language that's it's not capable to handle, or that it would *not* offer

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-06-13 Thread Latimerius
...@gmail.com wrote: latimerius wrote: Thanks for the reply. To explain a bit further: the reason I'm trying to get something similar to what the user sees in Language input is, I just consider it unlikely that a device would offer a language that's it's not capable to handle, or that it would

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

2013-06-12 Thread Latimerius
:53 PM UTC+3, latimerius wrote: I understand this is a FAQ but after googling for hours and finding nothing but forum questions with no answers and a heap of bad (non-functional) advice, I figured I'd ask. I'd like to allow our users to set a locale independent of the system-wide one

[android-developers] how to get a list of locales supported by device we're running on

2013-06-11 Thread Latimerius
I understand this is a FAQ but after googling for hours and finding nothing but forum questions with no answers and a heap of bad (non-functional) advice, I figured I'd ask. I'd like to allow our users to set a locale independent of the system-wide one. To construct the menu of available

Re: [android-developers] Including custom permissions in client app

2013-06-07 Thread Latimerius
12:11:33 UTC+2 schrieb latimerius: That's strange. We have a setup where we have a bunch of Bs that are paid (and not necessarily cheap) so the assumption is we'd hear from people who buy a B and cannot access its contents due to a SecurityException. Probably a majority of our users

Re: [android-developers] Including custom permissions in client app

2013-06-02 Thread Latimerius
, marten marten.ga...@googlemail.com wrote: Am Samstag, 1. Juni 2013 17:28:31 UTC+2 schrieb latimerius: On Sat, Jun 1, 2013 at 3:39 PM, Marten Gajda mar...@dmfs.org wrote: I have an existing app A that's already installed by a couple of users and I have developed a new app B that has a content

Re: [android-developers] Including custom permissions in client app

2013-06-01 Thread Latimerius
On Sat, Jun 1, 2013 at 3:39 PM, Marten Gajda mar...@dmfs.org wrote: I have an existing app A that's already installed by a couple of users and I have developed a new app B that has a content provider and custom permissions for access control. Now I want to add optional support for that new

Re: [android-developers] Opera App Store?

2013-05-24 Thread Latimerius
Yes, we got it too. I haven't yet got around to sorting out what my opinion is. :-) On Fri, May 24, 2013 at 11:57 AM, reaktor24 stevebruc...@gmail.com wrote: Has anyone else had an email from Opera trying to get you to develop for their app store? *One of the leading independent app

Re: [android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values

2013-05-24 Thread Latimerius
I for one have to say though that it's a shame [xy]dpi are not guaranteed to be correct. We are sometimes balancing our UI element sizes within rather narrow limits and if we need something to be 9mm across it'd better turn out that way - 11mm might look crammed or even collide with something

[android-developers] TextView's line breaking algo leaves whitespace at line beginnings (?)

2013-05-22 Thread Latimerius
Hello, I just noticed that some lines in my multi-line TextViews (line breaks added by TextView itself) can occasionally turn out slightly indented to the right. I'm not sure what the cause is but it does look a lot like there was a space at the beginning of the line. Is this how TextView

Re: [android-developers] Re: TextView's line breaking algo leaves whitespace at line beginnings (?)

2013-05-22 Thread Latimerius
/AhM/WklR-yaiAvQ/s1600/cnr2.png Thanks. On Wednesday, May 22, 2013 10:50:33 AM UTC-5, latimerius wrote: Hello, I just noticed that some lines in my multi-line TextViews (line breaks added by TextView itself) can occasionally turn out slightly indented to the right. I'm not sure

Re: [android-developers] rendering international text into GL texture with correct line breaks

2013-05-20 Thread Latimerius
Guy romain...@android.com wrote: It's pretty easy. If you want the text to break, use the MeasureSpec AT_MOST X px for the width (where X is the maximum width in pixels you want your texture to be) and UNSPECIFIED 0 px for the height. On Sun, May 19, 2013 at 3:39 PM, Latimerius l4t1m3r

[android-developers] rendering international text into GL texture with correct line breaks

2013-05-19 Thread Latimerius
Hello, I'm looking into localising an OpenGL app into several languages. I'm not too worried about short strings like button labels, however the welcome screen contains a paragraph or two of text and the tutorial has a couple of 2-3 lines text strings. Currently, they are pre-rendered and

Re: [android-developers] rendering international text into GL texture with correct line breaks

2013-05-19 Thread Latimerius
a TextView, call measure() then layout() on it and then call its draw() method to draw into a Bitmap. This will take care of all the breaking, BiDi, etc. Note that TextView uses the Paint APIs under the hood to measure text. On Sun, May 19, 2013 at 10:55 AM, Latimerius l4t1m3r...@gmail.com

Re: [android-developers] If I set minSdkVersion as 8, but want to specify some methods for SdkVersion=15

2013-05-07 Thread Latimerius
The usual way to achieve that is to take advantage of the fact that Java won't load a class until it's first needed. Wrap up code that calls API functions that might not always be there (the getSupportedVideoSizes() call in your example) in a class which only gets instantiated if deviceLevel =

Re: [android-developers] How to program the apps which is download from play store?

2013-04-24 Thread Latimerius
On Wed, Apr 24, 2013 at 4:22 PM, TreKing treking...@gmail.com wrote: On Wed, Apr 24, 2013 at 5:42 AM, Perry168 perry...@gmail.com wrote: I hope to check user is download my apps from google play store or from other place. But I don't know how to write the program. There is no way for you

Re: [android-developers] Maps api key v1?

2013-04-23 Thread Latimerius
I'd say Google has multiple ways of announcing important changes, like this list, (the front page of) developer.android.com, G+, blogs etc. For breaking changes, ideally all of them should be used. I don't think Google has to rely on developers being registered in some way to communicate

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-06 Thread Latimerius
On Wed, Mar 6, 2013 at 7:48 AM, a1 arco...@gmail.com wrote: My minSdk is 7. Preserving GL context is a hint. You call it and pray it works. See the official docs at http://developer.android.** com/reference/android/opengl/**GLSurfaceView.html#**

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-06 Thread Latimerius
On Wed, Mar 6, 2013 at 8:16 AM, dnk dnkou...@gmail.com wrote: Use http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint() Gets called only when the user has decided to leave instead of another app coming in the foreground. Thanks, I had no idea this exists.

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-06 Thread Latimerius
On Wed, Mar 6, 2013 at 9:05 AM, Piren gpi...@gmail.com wrote: Forget about the whole preference stuff... just do it all manually, you'll have more control of the UI this way anyhow. Use write your own UI that just handles SharedPreferences on its own. OK, that makes sense then. Well I'm not

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-06 Thread Latimerius
On Wed, Mar 6, 2013 at 9:04 AM, Piren gpi...@gmail.com wrote: Do notice that in this instance onStop would NOT be called in Main activity, thus you can use onStop to stop the music instead of basing on the Pref activity That's a good point, I'll consider it. -- -- You received this

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 1:44 AM, RichardC richard.crit...@googlemail.comwrote: http://developer.android.com/reference/android/app/Activity.html#isFinishing() isFinishing() is unfortunately useless for this purpose - it's just 'false' in both cases, on 2.1, 2.2, 2.3, 4.1 and 4.2 (so I suppose

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 12:13 PM, Piren gpi...@gmail.com wrote: The obvious way, since it's your app.. just keep a flag saying im starting an activity whenever you start the prefs one... Yes, that's what I'm doing at the moment. However, it's getting kludgy fairly fast. One problem is

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
, 2013 at 2:38 AM, Lew lewbl...@gmail.com wrote: RichardC wrote: http://developer.android.com/**reference/android/app/** Activity.html#isFinishing()http://developer.android.com/reference/android/app/Activity.html#isFinishing() latimerius wrote: Hello, I would like to be able to tell

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
the onPause of a specific activity. On Tuesday, March 5, 2013 2:03:29 PM UTC+2, latimerius wrote: On Tue, Mar 5, 2013 at 12:13 PM, Piren gpi...@gmail.com wrote: The obvious way, since it's your app.. just keep a flag saying im starting an activity whenever you start the prefs one... Yes

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 4:41 PM, Piren gpi...@gmail.com wrote: Not sure what the issues you mention, never had those... onPause/onResume are pretty much the only lifecycle events that are constant in behavior :) I described it in my original post - in short, if the main activity is being

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 5:41 PM, Piren gpi...@gmail.com wrote: - Dont use a different Activity to show Prefs (you can re-use your current one, i personally always disliked the PreferencesActivity class.. its ugly as fuck) you can either just replace your current contentView or use other

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 6:09 PM, TreKing treking...@gmail.com wrote: On Tue, Mar 5, 2013 at 10:14 AM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 4:41 PM, Piren gpi...@gmail.com wrote: Not sure what the issues you mention, never had those... onPause/onResume are pretty

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 6:58 PM, TreKing treking...@gmail.com wrote: Threads you can start and stop with onPause / onResume. Assuming it's that simple in your case (I'm going to guess it's not =P ) Admittedly, I could probably stop my game thread in the main activity onPause() and resume it

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 9:18 PM, RichardC richard.crit...@googlemail.comwrote: Have you tried do the following and seeing what happens? - Play another OpenGL game just to get it into the long-press-home menu. - Start your game as normal and play it a bit. - [long-press-home] and

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 9:51 PM, RichardC richard.crit...@googlemail.comwrote: Typo in the above: With the scenario below if you are **NOT** releasing in onPause... I see. Well in the scenario below I would release it in onPause(). The only time I don't do full release in onPause() is when I

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 6:25 PM, Latimerius l4t1m3r...@gmail.com wrote: On Tue, Mar 5, 2013 at 5:41 PM, Piren gpi...@gmail.com wrote: - Dont use a different Activity to show Prefs (you can re-use your current one, i personally always disliked the PreferencesActivity class.. its ugly as fuck

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 11:19 PM, Kostya Vasilyev kmans...@gmail.com wrote: How about a PreferenceActivity with theme=@style/Theme.Dialog? I've tried that but it doesn't change the substance of the problem - the activity now *looks* like a dialog (not full-screen, dimmed background) but it's

Re: [android-developers] Re: how to tell why Activity.onPause() is called

2013-03-05 Thread Latimerius
On Tue, Mar 5, 2013 at 11:20 PM, a1 arco...@gmail.com wrote: I'm not quite sure about the rendering thread though - that's controlled by GLSurfaceView and I'm afraid I can't just pause it with no other side-effects. I think the only way would be to call GLSurfaceView.onPause() which

[android-developers] how to tell why Activity.onPause() is called

2013-03-04 Thread Latimerius
Hello, I would like to be able to tell if Activity.onPause() was called because the user is leaving the app, or simply because another Activity within the same app is coming up. I have a main Activity and a PreferenceActivity. The main Activity needs to handle onPause() differently depending on

[android-developers] replacing ParcelFileDescriptor.createPipe() on pre-9 API levels

2013-02-25 Thread Latimerius
Hello, I've got code that uses ParcelFileDescriptor.createPipe(). However, that function was only introduced in API Level 9 and I need to make my code work down to API Level 7. The function doesn't seem to be available from the support library. It's mostly implemented in native code so its

Re: [android-developers] Re: replacing ParcelFileDescriptor.createPipe() on pre-9 API levels

2013-02-25 Thread Latimerius
On Mon, Feb 25, 2013 at 5:42 PM, Nobu Games dev.nobu.ga...@gmail.comwrote: Can you use http://developer.android.com/reference/java/nio/channels/Pipe.htmlinstead? Hm, I need this for a ContentProvider.openAssetFile() implementation which ultimately has to return an AssetFileDescriptor. I

[android-developers] Android library project with non-default bin directory

2013-02-23 Thread Latimerius
Hello, I posted this on SO the day before yesterday (*) but since there have been no replies posting here, too: I have an Android project which uses an Android library project as a dependency. Building it with ant works fine, I'd just like to have the library project use a different bin

Re: [android-developers] Android library project with non-default bin directory

2013-02-23 Thread Latimerius
knows? -- K 2013/2/23 Latimerius l4t1m3r...@gmail.com: Hello, I posted this on SO the day before yesterday (*) but since there have been no replies posting here, too: I have an Android project which uses an Android library project as a dependency. Building it with ant works fine, I'd

Re: [android-developers] Re: why can't MediaPlayer access data via AssetFileDescriptor created by ContentProvider?

2013-02-22 Thread Latimerius
play the data even if you set the correct length to the AssetFileDescriptor. Please refer to the link I mentioned in my previous post for a lot more details about the issue. On Thu, Feb 21, 2013 at 10:05 PM, skink psk...@gmail.com wrote: Latimerius wrote: I'm wondering if anyone has made

Re: [android-developers] Re: why can't MediaPlayer access data via AssetFileDescriptor created by ContentProvider?

2013-02-22 Thread Latimerius
On Fri, Feb 22, 2013 at 11:53 AM, skink psk...@gmail.com wrote: btw could you post four openAssetFile method? I removed it in the meantime from my code base, plus there was a lot of unrelated leftovers from other tests, but if I reconstruct the substantial parts it was along the lines of:

Re: [android-developers] Re: why can't MediaPlayer access data via AssetFileDescriptor created by ContentProvider?

2013-02-22 Thread Latimerius
On Fri, Feb 22, 2013 at 5:02 PM, skink psk...@gmail.com wrote: as I can see your data source is some asset. in this case you don't have to use a pipe: my code I sent a link to is enough to play with MediaPlayer Excellent, you're right, this works! Sorry I missed this while reading your

[android-developers] why can't MediaPlayer access data via AssetFileDescriptor created by ContentProvider?

2013-02-21 Thread Latimerius
This is in reference to Mark Murphy's topic at StackOverflow: http://stackoverflow.com/questions/12920429/anyone-have-mediaplayer-working-with-parcelfiledescriptor-and-createpipe I tried to post the following there but someone deleted it. As I'm not sure why I figured I'll try to get some

Re: [android-developers] creating a complex tablet app

2013-02-18 Thread Latimerius
If you're angry now, just wait until they start changing public APIs and pulling stuff from under you, breaking your app freely in the process. ;-) On Sun, Feb 17, 2013 at 6:30 PM, bergstr sell.bergst...@gmail.com wrote: Hello, I have a rather complex app that runs on tablets only. The

[android-developers] android:multiprocess attribute of provider element

2013-02-17 Thread Latimerius
Hello, I'm trying to clean up the mess left behind by the semi-secret forward-locking redux clusterf*ck in 4.1. Our base app needs to access files in our expansion APKs' assets/ directories. Apparently, the only way that still works after 4.1 is to use a ContentProvider. As the whole

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Latimerius
On Thu, Jan 31, 2013 at 5:13 PM, Nobu Games dev.nobu.ga...@gmail.comwrote: 2. This seems to be the Android standard approach: pre-render an atlas / map texture with all letters and symbols you need using a Bitmap, Canvas and a font of your choice. The Android tools available are very

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Latimerius
platform-specific details and having fonts being rendered in OpenGL sounds quite portable to me :-) On Thursday, January 31, 2013 10:58:04 AM UTC-6, latimerius wrote: On Thu, Jan 31, 2013 at 5:13 PM, Nobu Games dev.nob...@gmail.comwrote: 2. This seems to be the Android standard approach: pre

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Latimerius
On Wed, Jan 30, 2013 at 9:55 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Why would you consider that suspicious? Half of our five star ratings are without a comment. I consider that VERY suspicious. Out of my almost 2000 5-star ratings, at least 95% have a comment to go with it. That's

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-29 Thread Latimerius
On Tue, Jan 29, 2013 at 8:25 PM, Kristopher Micinski krismicin...@gmail.com wrote: I would guess their algorithm removes five star ratings that don't have comments: that seems suspicious to me too. Why would you consider that suspicious? Half of our five star ratings are without a comment.

Re: [android-developers] using Paint to draw text with specified locale on pre-API 17

2013-01-20 Thread Latimerius
On Sat, Jan 19, 2013 at 11:15 PM, Romain Guy romain...@android.com wrote: The text locale on the Paint is used to resolve direction (right to left/left to right.) It won't affect text translations. Thanks for your reply, Romain. The direction is actually precisely the thing I'm worried

[android-developers] using Paint to draw text with specified locale on pre-API 17

2013-01-19 Thread Latimerius
Hello, I'd like to use Paint to draw test with en_US locale regardless of the default locale set on a device. I'm aware of Paint.setTextLocale(), however that function only exists since API 17 and our minSdkVersion is 7. Is there a way to achieve this on earlier Android version? Thanks in

Re: [android-developers] Total User Installs decreasing

2013-01-15 Thread Latimerius
FWIW, I sent them a message last week asking for an explanation (my reading of the docs, just as anybody else's, is that the number can never drop). No reply so far. On Sat, Jan 12, 2013 at 9:59 PM, Iain King iaink...@gmail.com wrote: My total user installs on an app has gone down by 2 over

Re: [android-developers] Re: Total User Installs decreasing

2013-01-15 Thread Latimerius
On Tue, Jan 15, 2013 at 4:20 PM, bob b...@coolfone.comze.com wrote: If you want better stats, you should probably use Flurry or Localytics or some other metric. Do you know how to get the basic market stats (total installs, active installs) using those? For instance, I suspect there would not

Re: [android-developers] Re: support for platform specific interfaces

2013-01-07 Thread Latimerius
I would say any thoughts of dropping Gingerbread are most likely premature at this point. Last time I checked, Gingerbread accounted for about a half of accesses to the market. I don't think you can afford to ignore that. Our own app usage seems skewed towards new Android versions but we'd

Re: [android-developers] Reading from another app

2013-01-02 Thread Latimerius
On Wed, Jan 2, 2013 at 2:20 AM, Russell Wheeler russellpeterwhee...@gmail.com wrote: Latimerius, So how do you directly access them from the assets folder? You have to know the name of the package whose images you want to use but that shouldn't be a problem in your case if I understand

Re: [android-developers] Reading from another app

2013-01-01 Thread Latimerius
On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler russellpeterwhee...@gmail.com wrote: If I wish to use images stored in another app, that I've written, what is the best way to do this? Content provider or directly accessing the res folder? I do almost the same, except that my images are in

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-26 Thread Latimerius
On Wed, Dec 26, 2012 at 2:35 AM, TreKing treking...@gmail.com wrote: On Tue, Dec 25, 2012 at 3:04 PM, Latimerius l4t1m3r...@gmail.com wrote: The thing I don't get is how would that be possible if Android doesn't collect individual Activity instances, just whole processes. I believe

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-26 Thread Latimerius
On Wed, Dec 26, 2012 at 1:38 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Dec 25, 2012 at 8:35 PM, TreKing treking...@gmail.com wrote: I believe it is entirely possible and actually a frequent occurrence that Activities are destroyed while processes are not. For example, you might

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-26 Thread Latimerius
On Wed, Dec 26, 2012 at 11:30 PM, RichardC richard.crit...@googlemail.comwrote: Have you experimented with Don't keep activities in Settings Developer options? Nope, I haven't touched that (yet). -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-25 Thread Latimerius
On Sun, Dec 23, 2012 at 10:43 PM, Lew lewbl...@gmail.com wrote: Instances do not initialize static members in Java. The static members are initialized as part of class initialization. Instances can set static values if they're mutable, but that's not initialization. I don't know about

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-23 Thread Latimerius
On Sat, Dec 22, 2012 at 8:06 PM, Mark Murphy mmur...@commonsware.comwrote: That is a documentation flaw. Android does not destroy this instance of the activity to save space, except by terminating the entire process. isFinishing() will distinguish multiple reasons for onPause() and onStop()

Re: [android-developers] Re: Send bug report from 4.1

2012-12-20 Thread Latimerius
I introduced logging into an app-private file a while ago for different reasons (partly because the system log on some devices is spammed beyond belief) and I'm happy for having done that. Access to the private log is uniform across platform versions, everything's fully automatic (no need to ask

Re: [android-developers] [Help!]Can't get any thread in DDMS window when debugging

2012-12-16 Thread Latimerius
On Sun, Dec 16, 2012 at 2:53 AM, 乌拉拉 see...@gmail.com wrote: Thanks, but I did debug pre-installed apps before, now I can't Is there any change in the 4.2.1? Or say if I want to debug them , I need a self-build rom? I've done no work myself in the way of debugging pre-installed apps, so

Re: [android-developers] give uniform variables an initial value

2012-12-16 Thread Latimerius
On Sun, Dec 16, 2012 at 10:47 AM, Piren gpi...@gmail.com wrote: http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-135099.html#367 basically they say the naming is mixed case, so i guess the only issue is that you have an underscore there. I'm only asking as code

Re: [android-developers] [Help!]Can't get any thread in DDMS window when debugging

2012-12-15 Thread Latimerius
I'm not quite sure I understand what you're trying to achieve, but if you want to debug pre-installed apps you should understand those are unlikely to be flagged as debuggable in their manifests. This is why they don't show up in DDMS. -- You received this message because you are subscribed to

Re: [android-developers] give uniform variables an initial value

2012-12-14 Thread Latimerius
On Fri, Dec 14, 2012 at 2:14 AM, Lew lewbl...@gmail.com wrote: of 'intensity_Handle' (a non-Java-compliant variable name, btw) and its assignment? Also just out of curiosity, and since you keep mentioning this kind of stuff - can you point me to the part of The Java Language Specification

Re: [android-developers] How to sync development projects?

2012-12-14 Thread Latimerius
On Fri, Dec 14, 2012 at 8:02 PM, TreKing treking...@gmail.com wrote: On Fri, Dec 14, 2012 at 12:52 PM, Jungle Jim jjjungle...@gmail.comwrote: Does anyone know of a utility that will easily sync the updates to the files like the xml and src betwee the two PCs? I don't know about utility,

Re: [android-developers] Re: HelloEffects confusion

2012-12-13 Thread Latimerius
On Thu, Dec 13, 2012 at 4:17 PM, bob b...@coolfone.comze.com wrote: Thanks. I'm still a little confused about why there is a glActiveTexture and a glBindTexture. Seems like there ought to be one function for setting the current texture. You need to differentiate between texture and texture

[android-developers] SecurityException thown from MediaPlayer.prepare()?

2012-12-12 Thread Latimerius
Hello, I got a crash logged through ACRA which looks like MediaPlayer.prepare() threw SecurityException. I'm not sure how to interpret this - as far as I can tell, prepare() is not documented to throw that exception type. However, the previous line in my source calls setDataSource() which can

Re: [android-developers] Don't mix Ant and Eclipse!

2012-12-06 Thread Latimerius
Try putting out.dir=your_ant_bin_directory in ant.properties or build.properties (one is old and the other is new, I always forget which is which). With this set I never had a problem with a corrupted build, although I do find that Eclipse builds fail to update the generated Build class. That

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Latimerius
On Tue, Nov 27, 2012 at 10:31 PM, RichardC richard.crit...@googlemail.com wrote: This sounds like an Android anti-pattern. I would suggest you design your app so that is does not need a do you want to quit. 1) onDestroy is not guaranteed to be called. 2) end-users do not expect apps to ask

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Latimerius
-installed and others are not? On Wed, Nov 28, 2012 at 4:31 PM, bob b...@coolfone.comze.com wrote: My car navigation app has an Exit button. In the upper right corner. I think it's the built-in app too. On Wednesday, November 28, 2012 5:04:29 AM UTC-6, latimerius wrote: On Tue, Nov 27, 2012

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Latimerius
On Wed, Nov 28, 2012 at 6:24 PM, TreKing treking...@gmail.com wrote: On Wed, Nov 28, 2012 at 11:18 AM, TreKing treking...@gmail.com wrote: On Wed, Nov 28, 2012 at 11:02 AM, Latimerius l4t1m3r...@gmail.com wrote: Yeah, well, it's probably not by Google, or one that Google had any say in. None

Re: [android-developers] Defining custom xml file in eclipse

2012-11-26 Thread Latimerius
On Mon, Nov 26, 2012 at 5:55 PM, Simon Giddings mr.s.giddi...@gmail.com wrote: I have a series of custom xml data files that I need to create. I would like to tell eclipse what its format is so that when I do a CTRL+SPACE, it will give me the possible node or attribute options. Is this

Re: [android-developers] Defining custom xml file in eclipse

2012-11-26 Thread Latimerius
On Mon, Nov 26, 2012 at 5:55 PM, Simon Giddings mr.s.giddi...@gmail.com wrote: I have a series of custom xml data files that I need to create. I would like to tell eclipse what its format is so that when I do a CTRL+SPACE, it will give me the possible node or attribute options. Is this

Re: [android-developers] Re: In search of Nexus 10 ADB drivers

2012-11-23 Thread Latimerius
On Fri, Nov 23, 2012 at 6:47 PM, Romain Guy romain...@android.com wrote: MTP should work. All my devices are set to MTP and work just fine with adb. Ah, good old works on my machine(TM), right? ;-) For what it's worth, if I set my Nexus 7 to MTP, adb devices lists it like this:

Re: [android-developers] Re: In search of Nexus 10 ADB drivers

2012-11-23 Thread Latimerius
On Fri, Nov 23, 2012 at 8:30 PM, jtoolsdev brianjto...@gmail.com wrote: What do we do for Linux? I get the Camera folder for a Galaxy Nexus opening on Ubuntu 10.04 but with my other devices I could get the whole SD card. It also refuses to copy the JPG picture files though it will copy the

Re: [android-developers] Re: In search of Nexus 10 ADB drivers

2012-11-23 Thread Latimerius
On Fri, Nov 23, 2012 at 9:25 PM, Romain Guy romain...@android.com wrote: Ah, good old works on my machine(TM), right? ;-) More like I've never heard of this issue before :) I'll ask around in the office on Monday to see if it's a known issue. Cool, thanks! -- You received this message

Re: [android-developers] Re: Can I see the menu, please?

2012-11-05 Thread Latimerius
Hm, I'm under the impression either that or the three-dots button at the lower right corner of the screen should work for any legacy app... On Mon, Nov 5, 2012 at 10:36 PM, bob b...@coolfone.comze.com wrote: That didn't work. On Monday, November 5, 2012 1:07:27 PM UTC-6, lbendlin wrote:

Re: [android-developers] Re: Can I see the menu, please?

2012-11-05 Thread Latimerius
On Tue, Nov 6, 2012 at 12:29 AM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 5, 2012 at 4:51 PM, Latimerius l4t1m3r...@gmail.com wrote: Hm, I'm under the impression either that or the three-dots button at the lower right corner of the screen should work for any legacy app... Only

Re: [android-developers] Is the 'back' button still kosher?

2012-11-02 Thread Latimerius
On Fri, Nov 2, 2012 at 1:02 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 2, 2012 at 2:10 AM, Keith Wiley kbwi...@gmail.com wrote: All right. I brought this up a few weeks ago on this list and some of the advice on the topic was to avoid menus entirely and replace them with in-app

Re: [android-developers] broken breakpoint

2012-11-02 Thread Latimerius
On Fri, Nov 2, 2012 at 3:39 PM, bob b...@coolfone.comze.com wrote: new Listener_Thread(this).start(); This looks suspicious to me - try storing the reference to your Listener_Thread instance somewhere. If you don't it might immediately become eligible for GC and could be

Re: [android-developers] broken breakpoint

2012-11-02 Thread Latimerius
On Fri, Nov 2, 2012 at 4:25 PM, bob b...@coolfone.comze.com wrote: I changed it to this: Listener_Thread listener_Thread = new Listener_Thread(this); listener_Thread.start(); Well what is the lifespan of listener_Thread? If it's local in onCreate() as seems to be implied then you haven't

Re: [android-developers] broken breakpoint

2012-11-02 Thread Latimerius
On Fri, Nov 2, 2012 at 6:15 PM, Kostya Vasilyev kmans...@gmail.com wrote: Hold on a second. Calling start() on a thread surely keeps a reference somewhere that would prevent the thread from being GC'd while it's still running. I would hope it doesn't but this is Java so yeah, possibly. One

Re: [android-developers] broken breakpoint

2012-11-02 Thread Latimerius
Good to know, cheers. On Fri, Nov 2, 2012 at 6:59 PM, Kostya Vasilyev kmans...@gmail.com wrote: 2012/11/2 Latimerius l4t1m3r...@gmail.com On Fri, Nov 2, 2012 at 6:15 PM, Kostya Vasilyev kmans...@gmail.com wrote: Hold on a second. Calling start() on a thread surely keeps a reference

Re: [android-developers] Is the 'back' button still kosher?

2012-11-02 Thread Latimerius
, November 2, 2012 6:22:50 AM UTC-7, latimerius wrote: On Fri, Nov 2, 2012 at 1:02 PM, Mark Murphy mmu...@commonsware.com wrote: On Fri, Nov 2, 2012 at 2:10 AM, Keith Wiley kbw...@gmail.com wrote: All right. I brought this up a few weeks ago on this list and some of the advice on the topic

Re: [android-developers] Open PDF file from assets

2012-10-31 Thread Latimerius
On Wed, Oct 31, 2012 at 2:21 AM, TreKing treking...@gmail.com wrote: As you said, reading PDFs is not a native feature and requires an external app, which would not have permission to read the PDF from another app's Assets folder. FYI apparently you don't need any permissions to access another

Re: [android-developers] Re: It seems easy to get rid of a competitor’s app

2012-10-21 Thread Latimerius
On Sat, Oct 20, 2012 at 11:44 PM, Kristopher Micinski krismicin...@gmail.com wrote: Please read the developer agreement you signed. There is nothing in it that says that Google has the responsibility to take legal action on your behalf. I don't take this discussion as being about whether

Re: [android-developers] Re: It seems easy to get rid of a competitor’s app

2012-10-21 Thread Latimerius
On Sun, Oct 21, 2012 at 4:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: It seems like it would make sense in the abstract, but time and time again I've been surprisingly wrong about legal action seeming like it should be obvious / easy, and having this be completely false. Have to

Re: [android-developers] Extremely slow turnaround when building and running

2012-10-16 Thread Latimerius
My project's turn-around had been OK (not exactly fast, but bearable) until I added a bunch of external jars. Since then, build times are in minutes for a program that has some 3-4 lines of Java, roughly 10 megs of assets and barely any resources. I googled it and it appears that dexing

  1   2   3   >