[android-developers] Uri for accounts table in contacts db

2013-10-03 Thread Andrew Mackenzie
The contacts content provider is quite complex, with three tables for contact' raw contact and data. I suggest you read the long explanation of it in developer.android.com there the answers to your questions are provided, with a number of constants for Uris and also field names. BTW: be sure

[android-developers] Copy Image from Users Gallery to folder on SDCard

2013-10-03 Thread Andrew Mackenzie
Its been a while, and I would need to search for code, but I think: You will need to take the Uri you get in share action, and do a MediaQuery to find the source file or get a stream to read it from. It could be on sdcard or main memory or maybe even Picasa only having thumbnails locally. It

[android-developers] Copy Image from Users Gallery to folder on SDCard

2013-10-03 Thread Andrew Mackenzie
Also, I'd avoid hard coding any paths or the use of external storage - it might not exist. If you need storage then use getters for paths (getCacheDir(), getExternalCacheDir(), get public, get external public, etc). Try external first and if you get a null, fall back to the internal storage

[android-developers] aaptOptions problem in Gradle Plugin

2013-10-03 Thread Madison Koenig
Hello, I'm using the 6.1 version of the Gradle plugin and aaptOptions appears to ignore what I tell it not to compress. We pre-compress all PNG's to speed up the build process (on the server we build with takes ~10 minutes/build) so I added the below to the build.gradle only to have png's

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-03 Thread Piren
are you kidding me? well excuse me, i didnt know that you're such a serious developer that you must never ever learn something new, obviously, you've finished the learning phase. Who the hell would hire you when you can't even make a button? and not only you can't make a simple button, instead

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-03 Thread Jadranko Bodiroga
Piren.True=Visible ; :) On Thu, Oct 3, 2013 at 9:15 AM, Piren gpi...@gmail.com wrote: are you kidding me? well excuse me, i didnt know that you're such a serious developer that you must never ever learn something new, obviously, you've finished the learning phase. Who the hell would hire

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Gaurav Sharma
@Robert can you suggest me any other way so i can fix the issue? I have tried changing xml content type in tomcat 6.0 but it did not work. On Sun, Sep 29, 2013 at 11:36 PM, Robert Greenwalt rgreenw...@google.comwrote: We have contacts with many of the carriers and I had them ask Sprint about

[android-developers] Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
Hi, some testers are reporting me this error on some smartphone and I really don't know what it is and how to fix it. Someone has an idea? Thank you java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information. at

[android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
Hi, I have found the bug, the code that make crahs on android 2.3 is this Builder mGamesClienta = new GamesClient.Builder(context, this, this) .setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL) .setScopes(mScopes); Any idea on how to make it work on android 2.3? thank

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Mukesh Srivastav
Why not check for the OS version in run time and change your code accordingly. String androidOS = Build.VERSION.RELEASE; It is just a thought On Thu, Oct 3, 2013 at 5:19 PM, Davide Moriello davidem...@gmail.comwrote: Hi, I have found the bug, the code that make crahs on android 2.3 is this

[android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Nobu Games
That crash message says that there is further information in some additional log output. What does it say? On Thursday, October 3, 2013 5:21:44 AM UTC-5, Davide Moriello wrote: Hi, some testers are reporting me this error on some smartphone and I really don't know what it is and how to fix

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Παύλος-Πέτρος Τουρνάρης
Well this is not random! While in the summer me and a friend developed a game with Play Services this occured when we added the game-id i think directly to the AndroidManifest! You have to add it in strings.xml and call it as a resource for example: @string/game-id, in your Manifest file! On

[android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
They log I got from the play store console developer was only this :-( But luckily I just found a phone that has the same error and had more information on the logcat. The code now is: Builder mGamesClienta = new GamesClient.Builder(context, this, this) .setGravityForPopups(Gravity.TOP

[android-developers] How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread HImanshu Mittal
Hello I am building the app that requires that users location has to be updated on my server periodically or to be more efficient only when its location has been updated. For that a Service will run on its device. But I am not able to develop that till now haven't found that does that

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
No, it was not my problem =) I just had to add mGamesClienta.setViewForPopups(gameView); and it worked =) Yes, it was not random, I tought it was ranom becouse I had only reports from people. The error was only on android 2.3 Il giorno giovedì 3 ottobre 2013 16:35:28 UTC+2, Paul-Peter

[android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread Piren
this subject has been discussed quite a lot, i suggest you search the net and this forum for answers. the short list of things you need to know: - use location change listeners for changes when the device is awake and responding - use alarms to wake the device for periodical updates - Since a

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread HImanshu Mittal
I have been trying that to build it, but I am still not successful in making that. I would be really great if you could provide the code if you have made it!! :) On Thu, Oct 3, 2013 at 9:03 PM, Piren gpi...@gmail.com wrote: this subject has been discussed quite a lot, i suggest you search the

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread Steve Gabrilowitz
You are more likely to get help developing your own service if tell us in which areas you have been less than successful. If you are looking for a full piece of code already written for you then try Google ;-) On Oct 3, 2013 11:49 AM, HImanshu Mittal himanshu5...@gmail.com wrote: I have been

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread HImanshu Mittal
Bro , Don't dramatize things out here. I have asked a question thats it. For the first the first time I have asked a question on any forum regarding a help in my 8 months of development time. I was not able to make a code because the code which I have made is not working. If you can provide the

[android-developers] Wifi direct or bluetooth without invitations?

2013-10-03 Thread user123
Is it possible to skip the invitation process in Wifi direct of bluetooth connections? If for example I have a chatroom, where one user acts as the host, with 50 people, I just want that they just do discovery, see the name of the host, select it - and can join directly. I don't want that the

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Robert Greenwalt
https? I don't know who is mangling the data or what they are keying off. Changing the type was a good idea, but apparently not enough. Maybe rot13 on the on the contents? Turn on http compression? This is all silly stuff you shouldn't have to do. R On Thu, Oct 3, 2013 at 3:04 AM, Gaurav

[android-developers] Wifi direct or bluetooth share information without user?

2013-10-03 Thread user123
Is it possible that, using any connectivity technology, unknown devices can share information between without the user is controlling it? It would be an app where the user previously gives permission to do so, and which information is shareable. Then if 2 or more nearby devices have this app

Re: [android-developers] Uri for accounts table in contacts db

2013-10-03 Thread Giles Ian
Thanks Douglous and Andrew, What I am actually looking for is *account_id* based on *account_name* and * account_type, *and this info is only available in accounts table. On Wed, Oct 2, 2013 at 11:24 PM, Andrew Mackenzie and...@mackenzie-serres.net wrote: The contacts content provider is

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Gaurav Sharma
@Robert I am using HTTP not HTTPS. If rot13 is happening then i should be receiving changed character like A -N but that is not the case i am receiving some unreadable letter like byte symble $3. I will try with http comperession. Thanks for your suggestion. On Thu, Oct 3, 2013 at 10:36 PM,

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Steve Gabrilowitz
Any chance you can use FTP protocol instead of HTTP to see if this fixes the issue? On Oct 3, 2013 1:28 PM, Gaurav Sharma gauravsharma...@gmail.com wrote: @Robert I am using HTTP not HTTPS. If rot13 is happening then i should be receiving changed character like A -N but that is not the case

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Robert Greenwalt
I was suggesting you could use https - then they can't muck with your content. Rot13 was suggested as a cheap way to mask your content. Http compression is also just a way to mask the content, but it's clear in the headers that this is happening and they may automatically see your content anyway

Re: [android-developers] Xml file corrupted over sprint cellular network ?

2013-10-03 Thread Kostya Vasilyev
Is the XML content maybe compressed (gzipped) by the cellular operator's proxy? Uncompressed, it would look like garbage. You can find out by checking for Content-Encoding: gzip (or maybe deflate). -- K On Thursday, October 3, 2013 2:04:53 PM UTC+4, Gaurav Sharma wrote: @Robert can you

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-03 Thread Amit Mangal
Hi i am able to add image on button using drawable right property . now i want to set text on this drawable right image dynamically. i searched lot but didnt find how to set text on drawable right image on button. thanks On Thu, Oct 3, 2013 at 2:10 PM, Jadranko Bodiroga

[android-developers] Preventing auto-update?

2013-10-03 Thread Larry Meadors
I have an app that allows a user to download a sizable file - can be 1GB or more (full length movies). Recently one of our testers discovered that if he was downloading when the play store updated the app, the download was cancelled because the app was killed (I presume so it could be updated).

Re: [android-developers] Preventing auto-update?

2013-10-03 Thread Steve Gabrilowitz
I believe that what you really want to prevent is not the update but rather the antisocial behavior of your app when it is terminated while a download is in progress. Adding appropriate code to your onstart and onstop should take care of the problem. On Oct 3, 2013 4:54 PM, Larry Meadors

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-03 Thread TreKing
On Tue, Oct 1, 2013 at 10:57 PM, Amit Mangal forum.amit.man...@gmail.comwrote: I didnt understand i m talking about button and ur talking about textview here is the confusion You can use either one. Replace textview with button in my comment. The concept is the same. For the 3rd time, did

Re: [android-developers] Preventing auto-update?

2013-10-03 Thread TreKing
On Thu, Oct 3, 2013 at 3:52 PM, Larry Meadors larry.mead...@gmail.comwrote: Is there a way to prevent that? He had to re-download the entire file, which is kind of crappy. Implement resume downloading capability, so the app picks up where it left off downloading when it was last interrupted.

Re: [android-developers] LocationManager.requestLocationUpdates and PendingIntent

2013-10-03 Thread TreKing
On Tue, Oct 1, 2013 at 3:18 PM, Alex Belyaev abel.the.fi...@gmail.comwrote: I have a quick theoretical question: why * LocationManager.requestLocationUpdates* method needs* PendingIntent *instead of an action? Well, what is your reasoning for why an Action would make sense here instead?

Re: [android-developers] Preventing auto-update?

2013-10-03 Thread Larry Meadors
Heh, that's the second thing I suggested. Thanks for the affirmation. ;-) Larry On Thu, Oct 3, 2013 at 3:21 PM, TreKing treking...@gmail.com wrote: On Thu, Oct 3, 2013 at 3:52 PM, Larry Meadors larry.mead...@gmail.com wrote: Is there a way to prevent that? He had to re-download the entire

Re: [android-developers] LocationManager.requestLocationUpdates and PendingIntent

2013-10-03 Thread Alex Belyaev
And why not?) In theory you can provide a unique action, so *LocationManager * can simply broadcast location changes. And yes, there is a possibility, that someone can listen to this broadcast too and potentially abort them. So that is the reason why I am asking. пятница, 4 октября 2013 г.,

Re: [android-developers] LocationManager.requestLocationUpdates and PendingIntent

2013-10-03 Thread TreKing
On Thu, Oct 3, 2013 at 4:43 PM, Alex Belyaev abel.the.fi...@gmail.comwrote: And why not? Why not? is not really a good reason to do something. ) In theory you can provide a unique action, so *LocationManager* can simply broadcast location changes. I don't follow what you're suggesting.

[android-developers] Re: LocationManager.requestLocationUpdates and PendingIntent

2013-10-03 Thread Alex Belyaev
What *LocationManager *does, when we call *requestLocationUpdates* and provide a *PendingIntent*? It sends us locations back with broadcasts. So basically *LocationManager *needs only an action, that is the only thing you need to make a broadcast across the system. So I'm asking, why it need a

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread Lew
HImanshu Mittal wrote: Bro , Don't dramatize things out here. I have asked a question thats it. How is asking for relevant details dramatizing it? It's spelled that's. For the first the first time I have asked a question on any forum regarding a help in my 8 months of development time.

Re: [android-developers] Re: LocationManager.requestLocationUpdates and PendingIntent

2013-10-03 Thread TreKing
On Thu, Oct 3, 2013 at 5:32 PM, Alex Belyaev abel.the.fi...@gmail.comwrote: What *LocationManager *does, when we call *requestLocationUpdates* and provide a *PendingIntent*? It sends us locations back with broadcasts. It sends locations back with broadcasts ... *if you specify a broadcast for

Re: [android-developers] Re: LocationManager.requestLocationUpdates and PendingIntent

2013-10-03 Thread Alex Belyaev
Yes, this absolutely makes sense. You were right, I was assuming broadcasting as the only option in that case. Thank you. пятница, 4 октября 2013 г., 2:25:12 UTC+3 пользователь TreKing написал: On Thu, Oct 3, 2013 at 5:32 PM, Alex Belyaev abel.th...@gmail.comjavascript: wrote: What

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-03 Thread HImanshu Mittal
package com.example.metro; import com.dude5692.StaticURL.ProjectURL; import json.jSOn; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.location.Criteria; import android.location.Location; import