[android-developers] Re: Get the incoming caller name before phone starts to ring

2013-07-31 Thread Piren
what the hell? why are you scanning the entire DB and in such a bad fashion? You do know that the reason there's a ContentResolver is for you to run queries right? http://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup.html You'll get the result instantly. On

[android-developers] Re: android how to bring our application to foreground when it goes to background?

2013-07-31 Thread ashish
Hi, It is done. simply start your activity with flag excludeFromRecents= true and it will not show your activity in the home app switcher. On Monday, July 29, 2013 7:01:58 PM UTC+5:30, ashish wrote: i want to bring my application to foreground when it goes to background. when my application

Re: [android-developers] coming back to very first activity from inside tab group activity

2013-07-31 Thread Dalvinder Singh
You are missing set flag activity clear top Read this flag in Intent documentation. ... Dalvinder On Fri, Jul 26, 2013 at 12:50 AM, Amit Mangal forum.amit.man...@gmail.comwrote: sorry the code is Intent previewMessage = new Intent(getParent(), Detail_Screen. class);

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/26/2013 12:39 AM, Omer Gilad wrote: .I am wondering how developers here are dealing with the fact that there are 1000's of devices out there, some of them running your applications in very broken ways .I keep running into these kind of issues again and again for the past 3 years, and to be

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Piren
Either you intentionally ignored the message of his post or you're playing dumb. No one is complaining about fragmentation (which sucks, but that's besides the point). We're talking about APIs not performing as they should.If you claim that this never happened to you, you're either lying,

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Omer Gilad
No problem - you want practical examples, I have literally an endless amount... I will try not to collapse Google servers or something, so I'll post just a few. By the way - read the original post - I am NOT talking about official fragmentation. Not screen sizes, API levels features and so

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Piren
The Galaxy S (especially the i9000) is one of the shittiest devices i've worked on, without a doubt. On Wednesday, July 31, 2013 2:47:38 PM UTC+3, Omer Gilad wrote: No problem - you want practical examples, I have literally an endless amount... I will try not to collapse Google servers or

Re: [android-developers] Re: Get the incoming caller name before phone starts to ring

2013-07-31 Thread Kristopher Micinski
Heh, this is also a good point, I was dumb not to point the OP in that direction sooner :-) On Wed, Jul 31, 2013 at 2:59 AM, Piren gpi...@gmail.com wrote: what the hell? why are you scanning the entire DB and in such a bad fashion? You do know that the reason there's a ContentResolver is for

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 01:47 PM, Omer Gilad wrote: No problem - you want practical examples, I have literally an endless amount... I will try not to collapse Google servers or something, so I'll post just a few. Thanks for that. By the way - read the original post - I am NOT talking about official

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kostya Vasilyev
The i9000 - oh yeah! The file system freezes alone were a killer, and then when they implemented a fix, it was preventing apps from saving their own shared preferences. Today's top of the line Samsung devices seem to be much better (haven't run into anything on my Galaxy Note 2, myself, but

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kristopher Micinski
You're wrong about calling it fragmentation: fragmentation means there are n versions of Android, and you have to consider that. What Omer is saying is that there are actually x n versions of Android, when you take into account all of the vendor ROMs, with their long list of bugs. So it's not

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 02:40 PM, Kristopher Micinski wrote: You're wrong about calling it fragmentation: fragmentation means there are n versions of Android, and you have to consider that. What Omer is saying is that there are actually x n versions of Android, when you take into account all of the

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Jose_GD
Daniele, I think Omer has been constructive. He asked clearly: how do you deal with this situation? It's obvious there's no bullet proof solution to this problem, he has told us what he did until now and asked the community what are they doing to deal with it. El miércoles, 31 de julio de 2013

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Omer Gilad
Flaming is not the purpose of this discussion - the purpose is to: 1. Share and find some practical solutions, if there are any. 2. Bring the seriousness and span of this issue to Google's attention - as there seems to be complete ignorance and self-delusion regarding it. So far I haven't seen

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kristopher Micinski
I think various people outlined possible solutions if you'd read the previous messages. One possible solution is stricter certification requirements. Kris On Jul 31, 2013 8:49 AM, Daniele Segato daniele.seg...@gmail.com wrote: On 07/31/2013 02:40 PM, Kristopher Micinski wrote: You're wrong

[android-developers] Re: How to add third party jar in compile time but not runtime

2013-07-31 Thread lgaur
Hi Jelly Chan, I am trying to compile apk with some jar file and I don't want jar file to be part of .apk. I want at runtime apk should take jar file contents or .classes from system or device. I am developing this using ADT . Could you please provide more info how to achieve it while using

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 03:10 PM, Kristopher Micinski wrote: I think various people outlined possible solutions if you'd read the previous messages. One possible solution is stricter certification requirements. That's something Google can do, and is probably doing. I asked what WE can do. If we don't

Re: [android-developers] Re: Get the incoming caller name before phone starts to ring

2013-07-31 Thread Piren
was wondering how you've missed that ;-) On Wednesday, July 31, 2013 3:18:28 PM UTC+3, Kristopher Micinski wrote: Heh, this is also a good point, I was dumb not to point the OP in that direction sooner :-) On Wed, Jul 31, 2013 at 2:59 AM, Piren gpi...@gmail.com javascript: wrote:

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 03:05 PM, Omer Gilad wrote: Flaming is not the purpose of this discussion - the purpose is to: 1. Share and find some practical solutions, if there are any. That's the primary reason I bothered to reply in the first place. I saw you wasn't try to flame. But, since you were pissed

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Παύλος-Πέτρος Τουρνάρης
I really dont get any of your points Daniele! Every developer that till now sent an email in this discussion has already stated his/her opinion in order to answer at Omer's first question... We can bring Google's attetntion at this problem but we should be focused on it! If you don't create any

Re: [android-developers] Re: Get the incoming caller name before phone starts to ring

2013-07-31 Thread Kristopher Micinski
Yeah, that was just me being dumb and writing up a quick response without thinking while working on other things. Piren's solution is the obvious thing to do: you don't really want to cache hundreds of contacts and you'd end up writing your own implementation of what the lookup's already doing

[android-developers] Getting OutOfMemory Error while loading images in fragments. (Only on Android OS version 4.1.2 Jelly Bean)

2013-07-31 Thread Matt
Hi all, I am loading several images on Fragments. I have about 22 images of total 2.3 MB. I am getting OutOfMemory error every time I test my app on devices with Jelly Bean 4.1.2. The weird thing is, this happens only when I test it on devices with Android version 4.1.2. It works fine on any

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 03:36 PM, Παύλος-Πέτρος Τουρνάρης wrote: I really dont get any of your points Daniele! I can see that ;) Every developer that till now sent an email in this discussion has already stated his/her opinion in order to answer at Omer's first question... I'm asking you all to

[android-developers] Re: Getting OutOfMemory Error while loading images in fragments. (Only on Android OS version 4.1.2 Jelly Bean)

2013-07-31 Thread Piren
Your images are not 2.3MB, their compressed data is... the images when loaded by Android are much more than that (their size according to android is basically their resolution times the bit depth per pixel you defined). The last image you loaded asked for 8.4MB alone... I assume that you don't

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread a1
1. Share and find some practical solutions, if there are any. There isn't any, for some specific use cases (games) best solution is to use higher level API (game engine). 2. Bring the seriousness and span of this issue to Google's attention - as there seems to be complete ignorance and

[android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Omer Gilad
I just came upon this by accident http://officialandroid.blogspot.co.il/2012/09/the-benefits-importance-of-compatibility.html This seems like the right approach, but my own experience is that the Android reality is very far from this ideal. I've heard about the CTS. The question is - are

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Omer Gilad
I am missing the point of this post. Are you saying that there is no solution? If so, what do you suggest? Just stop developing for Android? When I say not aware of that, I mean that it doesn't show up as a practical solution from the eyes of developers. Maybe they're aware of that and do

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Omer Gilad
I would certainly support by adding known issues if there was such a system. I'm not familiar with any free website that can easily create such a database - anyone? On Wednesday, July 31, 2013 4:59:19 PM UTC+3, Daniele Segato wrote: On 07/31/2013 03:36 PM, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½-οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½

Re: [android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kristopher Micinski
Yes. To install Google Play or Google apps, you absolutely are required to pass the CTS. But, from your discussion, the CTS obviously doesn't test all parts of the Android platform: it's just a test suite. Kris On Wed, Jul 31, 2013 at 11:06 AM, Omer Gilad omer.gi...@gmail.com wrote: I just

[android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Nobu Games
I got a big problem with a game of mine and the latest version of Android. Semi-transparent pixels rendered on the OpenGL ES surface let the underlying activity shine through as following screen shot shows. This problem only appears in a new AppGratis promoted version of the game I just

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Nobu Games
I think a central website for collecting known issues and workarounds would be a great idea. There are free wiki hosting services that could be used for that: https://en.wikipedia.org/wiki/Comparison_of_wiki_hosting_services On Wednesday, July 31, 2013 10:14:40 AM UTC-5, Omer Gilad wrote: I

[android-developers] Re: Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Nobu Games
Tiny update: The SHA1 digest as displayed on the Google Play developer console is identical with the one from my uploaded APK on my computer. So I just guess that the Google Play app installs things differently or it is a really bizarre device quirk. And I do hope it's a rare one because I

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 05:58 PM, Nobu Games wrote: I think a central website for collecting known issues and workarounds would be a great idea. There are free wiki hosting services that could be used for that: https://en.wikipedia.org/wiki/Comparison_of_wiki_hosting_services I think a wiki is not a

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Nobu Games
How are you handling transactions in your queries? In later versions of Android SQLite writes by default temporary journaling data files that are not immediately merged with the actual database file (see here: http://www.sqlite.org/tempfiles.html). This might be an explanation for the reported

[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-07-31 Thread Streets Of Boston
Is your render-mode continuously or when-dirty? If it is when-dirty, be sure to call surfaceView.requestRender() in your onTouchEvent implementation. On Tuesday, July 30, 2013 7:14:22 AM UTC-4, Edvinas Kilbauskas wrote: The best solution to your problem is probably to bite the bullet and

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Nobu Games
Oops, I sent my reply just to you, so here again for all to see: on the one hand that's a good idea. On the other hand we would need someone who is willing to host and maintain that bug tracker. Setting up products, versions etc. is a lot of work in a bug tracking system. That's why I think

[android-developers] Re: Sample Code for Purchased Check (App = PHP = App Order-Number Purchased State)?

2013-07-31 Thread Nobu Games
As a humble start you could tell us what you tried to do and why exactly it doesn't work (error messages etc.). Also be careful with PHP related online tutorials. A lot of beginners provide you with material who do not grasp basic concepts of code / SQL injection and hardening your web service.

Re: [android-developers] Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
Hi Thomas, The bug trackers I proposed are all free to use and cloud bug trackers (meaning no one has to maintain a server or something). What's needed are admins for that bug tracker. Categories can be created when needed. If there are enough maintainers I think it can be done, the

Re: [android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Daniele Segato
On 07/31/2013 05:17 PM, Kristopher Micinski wrote: Yes. To install Google Play or Google apps, you absolutely are required to pass the CTS. But, from your discussion, the CTS obviously doesn't test all parts of the Android platform: it's just a test suite. Yes, and never will. It may be a

[android-developers] Re: android how to bring our application to foreground when it goes to background?

2013-07-31 Thread Nobu Games
Not that I am in favor of such a behavior but I've seen apps with parental control feature doing that. They provide something like a controlled sandbox environment as an app (and not as a home screen replacement), so children cannot download stuff or do whatever they want with the device.

[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-07-31 Thread Edvinas Kilbauskas
2013 m. liepa 31 d., trečiadienis 19:28:23 UTC+3, Streets Of Boston rašė: Is your render-mode continuously or when-dirty? If it is when-dirty, be sure to call surfaceView.requestRender() in your onTouchEvent implementation. It's RENDERMODE_CONTINUOUSLY. Also, I took the advice, and

Re: [android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kristopher Micinski
Just because a test suite doesn't cover all possible behavior doesn't mean stricter enforcement wouldn't help developers. Test suites don't cover all of the codebase by definition, that's why they're called test suites :-) So I'm in favor of setting up a tracker for device bugs, but that doesn't

[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-07-31 Thread Nobu Games
I see in your code sample in your original post that you log the event coordinates. That can stall your app and may be a reason for these delays. Also, how do you communicate the touch events to your rendering thread? On Wednesday, July 31, 2013 12:06:22 PM UTC-5, Edvinas Kilbauskas wrote:

Re: [android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Romain Guy
Is your SurfaceView marked with the transparent pixel format? If so, what you are seeing would be expected. If your SurfaceView is opaque then you *must* draw every pixel opaque on screen. On Wed, Jul 31, 2013 at 8:25 AM, Nobu Games dev.nobu.ga...@gmail.comwrote: I got a big problem with a

Re: [android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Nobu Games
Hi Romain, thanks for your reply. It seems I do not understand the surface view initialization for making the alpha channel within OpenGL ES work. I set up the surface view with: glSurfaceView.getHolder().setFormat(PixelFormat.RGBA_); The game is already out with that surface view setup

Re: [android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Romain Guy
glSurfaceView.getHolder().setFormat(PixelFormat.RGBA_); This gives you a translucent surface, which means that any pixel that is not drawn completely opaque will be blended with whatever window is behind your app. It will affect your performance btw. Should I change the surface view

Re: [android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Nobu Games
Thanks for the explanation On Wednesday, July 31, 2013 12:52:14 PM UTC-5, Romain Guy (Google) wrote: glSurfaceView.getHolder().setFormat(PixelFormat.RGBA_); This gives you a translucent surface, which means that any pixel that is not drawn completely opaque will be blended with

Re: [android-developers] Re: Getting OutOfMemory Error while loading images in fragments. (Only on Android OS version 4.1.2 Jelly Bean)

2013-07-31 Thread maitrey chhaya
Oh ok, so do I need to use something like lazy list or is there any way that i can handle it in my code. I am using Fragment Activity and have created two fragments and replacing them alternatively for displaying all the images one by one. One more thing that i don't understand is why only on

Re: [android-developers] Re: Getting OutOfMemory Error while loading images in fragments. (Only on Android OS version 4.1.2 Jelly Bean)

2013-07-31 Thread maitrey chhaya
Oh ok, so do I need to use something like lazy list or is there any way that i can handle it in my code. I am using Fragment Activity and have created two fragments and replacing them alternatively for displaying all the images one by one. One more thing that i don't understand is why only on

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Nathan
On Wednesday, July 31, 2013 9:21:59 AM UTC-7, Nobu Games wrote: How are you handling transactions in your queries? A single record written is done as a single transaction. I believe, though, that the writing part is all done and it is now just reading. No transactions on reading. In

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Nobu Games
Just another related thought: SQLiteDatabase contains some implicit transaction magic under the hood which is meant to prevent accidents due to simultaneous accesses from different threads. That does not always work that great and can lead to some kind of indefinite deadlock situation. You can

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Nobu Games
Just another related thought: SQLiteDatabase contains some implicit transaction magic under the hood which is meant to prevent accidents due to simultaneous accesses from different threads. That does not always work that great and can lead to some kind of indefinite deadlock situation. You can

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Nathan
On Wednesday, July 31, 2013 12:35:04 PM UTC-7, Nobu Games wrote: Just another related thought: SQLiteDatabase contains some implicit transaction magic under the hood which is meant to prevent accidents due to simultaneous accesses from different threads. That does not always work that

[android-developers] Re: Do SQLiteDatabase references go stale?

2013-07-31 Thread Kostya Vasilyev
On Thursday, August 1, 2013 2:01:29 AM UTC+4, Nathan wrote: In older Android versions that error was not treated gracefully and the database file could get corrupted. In newer versions you are greeted with an exception. When the database file gets corrupted, the default behavior of

Re: [android-developers] Re: Dealing with 1000's of different devices, each one with its own bugs

2013-07-31 Thread Kostya Vasilyev
Since pretty much everyone agrees that the CTS misses things... Wouldn't it be worthwhile to not only track device specific issues, but to also add tests to a fork of CTS? Google might then accept those enhancement, or might not, it would still be helpful in any case. -- K On Wednesday, July

[android-developers] AndroidAnnotations RestTemplate

2013-07-31 Thread Ricardo Cardoso
Hello, all right? I am using AndroidAnnotations in my project and I am having trouble to understand this RestTemplate, how do ... is this need my Json stay that way: Parameters: {user={email=userte...@example.com, firstname=anotheruser, password=[FILTERED], password_confirmation=[FILTERED]},

[android-developers] ResourceNotFound exception after modifying string in android resource (.arsc) file

2013-07-31 Thread Giles Ian
I have modified one of the strings in android binary resource(.arsc) file successfully. By successfully I mean I am able to replace a string with a bigger one, move other binary data, update offsets and lengths. I also tested it out by trying to parse/read this same modified arsc file. Now the

[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-07-31 Thread Streets Of Boston
I looked at your video. It seems that the drawing itself is not an issue. The framerate doesn't stutter nor is it slow. It just lags behind the position of your finger. It seems that the delivery of the touch-events is delayed (at least as far as the rendering is concerned). Try to create a

[android-developers] Re: Getting OutOfMemory Error while loading images in fragments. (Only on Android OS version 4.1.2 Jelly Bean)

2013-07-31 Thread Matt
Oh ok, so do I need to use something like lazy list or is there any way that i can handle it in my code. I am using Fragment Activity and have created two fragments and replacing them alternatively for displaying all the images one by one. One more thing that i don't understand is why only on

Re: [android-developers] Re: How to add third party jar in compile time but not runtime

2013-07-31 Thread Kristopher Micinski
That's not possible unless you distribute the library as part of the firmware. Why wouldn't you want the code to be part of the APK? Perhaps there's something else you could do. Kris On Wed, Jul 31, 2013 at 9:19 AM, lgaur lokeshg...@gmail.com wrote: Hi Jelly Chan, I am trying to compile apk