[android-developers] Uri for accounts table in contacts db
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 to filter only VISIBLE group contacts in the query or you will get contacts not visible to the user in their phone. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Copy Image from Users Gallery to folder on SDCard
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 could be not readable from your app even, and only visible via a content provider and the MediaStorage query. So depending on the case you might need to read it through the Uri you are provided and then re-write the stream to a new file of your own, not being able to copy a file. I'd read up on media storage and media queries. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Copy Image from Users Gallery to folder on SDCard
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 getters. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] aaptOptions problem in Gradle Plugin
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 still running through compression. Has anyone else had this issue? aaptOptions { noCompress 'png' } -Madison -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] how to create button with one image background and one image inside and text
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 of trying to learn how to do it, you're trying to make other people do the work for you? Even developers with 20 years of experience would still need to read the damn manual and do tutorials when they study a new language\framework.. do your due diligence and then you wouldn't have to publicly show how little you know. Anyhow, you being such an awesome developer who is no longer a student and now only develops (without studying of course), is more than qualified to handle this very complex problem of making a button with text on it on your own. On Wednesday, October 2, 2013 8:01:53 PM UTC+3, Amit Mangal wrote: U r not understanding problem again. I m not a student i am a developer if i will study company will hire some one else to work. I have to work i completed my study long before now i do development. Thanks On 02-Oct-2013 12:31 PM, Piren gpi...@gmail.com javascript: wrote: i'm saying that you should read the documentation and actually do the plethora of tutorials available on Android Developers before you go on a forum and ask other people for help. On Tuesday, October 1, 2013 9:45:43 PM UTC+3, Amit Mangal wrote: what are you saying i am unable to understand ? can you please explain ? thanks On Tue, Oct 1, 2013 at 2:36 PM, Piren gpi...@gmail.com wrote: it's actually a wee bit more complex (and by complex i mean - still in the realm of a developer that started android development 3 days ago), if you want a proper red background for the number... but this question is so basic he should try to figure it out on his own. On Tuesday, October 1, 2013 12:47:54 AM UTC+3, TreKing wrote: On Sun, Sep 29, 2013 at 3:19 PM, Amit Mangal forum.am...@gmail.comwrote: i have attached the sample picture any idea how to create that . i want to add text inside button image dynamically . That's just a TextView with a custom, stretchable background. Look up PNG9. ---- ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] how to create button with one image background and one image inside and text
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 you when you can't even make a button? and not only you can't make a simple button, instead of trying to learn how to do it, you're trying to make other people do the work for you? Even developers with 20 years of experience would still need to read the damn manual and do tutorials when they study a new language\framework.. do your due diligence and then you wouldn't have to publicly show how little you know. Anyhow, you being such an awesome developer who is no longer a student and now only develops (without studying of course), is more than qualified to handle this very complex problem of making a button with text on it on your own. On Wednesday, October 2, 2013 8:01:53 PM UTC+3, Amit Mangal wrote: U r not understanding problem again. I m not a student i am a developer if i will study company will hire some one else to work. I have to work i completed my study long before now i do development. Thanks On 02-Oct-2013 12:31 PM, Piren gpi...@gmail.com wrote: i'm saying that you should read the documentation and actually do the plethora of tutorials available on Android Developers before you go on a forum and ask other people for help. On Tuesday, October 1, 2013 9:45:43 PM UTC+3, Amit Mangal wrote: what are you saying i am unable to understand ? can you please explain ? thanks On Tue, Oct 1, 2013 at 2:36 PM, Piren gpi...@gmail.com wrote: it's actually a wee bit more complex (and by complex i mean - still in the realm of a developer that started android development 3 days ago), if you want a proper red background for the number... but this question is so basic he should try to figure it out on his own. On Tuesday, October 1, 2013 12:47:54 AM UTC+3, TreKing wrote: On Sun, Sep 29, 2013 at 3:19 PM, Amit Mangal forum.am...@gmail.comwrote: i have attached the sample picture any idea how to create that . i want to add text inside button image dynamically . That's just a TextView with a custom, stretchable background. Look up PNG9. --**--*** ***--**--- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscribe**@googlegroups.com. For more options, visit https://groups.google.com/**grou**ps/opt_outhttps://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To
Re: [android-developers] Xml file corrupted over sprint cellular network ?
@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 this. On Sat, Sep 28, 2013 at 3:34 AM, Gaurav Sharma gauravsharma...@gmail.comwrote: @robert: How do you such information? have you faced this situation before or have they contacted you ? On Sat, Sep 28, 2013 at 4:31 AM, Robert Greenwalt rgreenw...@google.comwrote: I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization herehttp://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the
[android-developers] Random IllegalStateException on some phone
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 com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$b.p(Unknown Source) at com.google.android.gms.internal.p$a.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Random IllegalStateException on some phone
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 you =) Il giorno giovedì 3 ottobre 2013 12:21:44 UTC+2, Davide Moriello ha scritto: 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 com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$b.p(Unknown Source) at com.google.android.gms.internal.p$a.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Random IllegalStateException on some phone
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 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 you =) Il giorno giovedì 3 ottobre 2013 12:21:44 UTC+2, Davide Moriello ha scritto: 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 com.google.android.gms.**internal.p$f.a(Unknown Source) at com.google.android.gms.**internal.p$f.a(Unknown Source) at com.google.android.gms.**internal.p$b.p(Unknown Source) at com.google.android.gms.**internal.p$a.handleMessage(**Unknown Source) at android.os.Handler.**dispatchMessage(Handler.java:**99) at android.os.Looper.loop(Looper.**java:130) at android.app.ActivityThread.**main(ActivityThread.java:3687) at java.lang.reflect.Method.**invokeNative(Native Method) at java.lang.reflect.Method.**invoke(Method.java:507) at com.android.internal.os.**ZygoteInit$**MethodAndArgsCaller.run(** ZygoteInit.java:867) at com.android.internal.os.**ZygoteInit.main(ZygoteInit.**java:625) at dalvik.system.NativeStart.**main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Random IllegalStateException on some phone
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 it. Someone has an idea? Thank you java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information. at com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$b.p(Unknown Source) at com.google.android.gms.internal.p$a.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Random IllegalStateException on some phone
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 Thu, Oct 3, 2013 at 5:19 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: 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 it. Someone has an idea? Thank you java.lang.**IllegalStateException: A fatal developer error has occurred. Check the logs for further information. at com.google.android.gms.**internal.p$f.a(Unknown Source) at com.google.android.gms.**internal.p$f.a(Unknown Source) at com.google.android.gms.**internal.p$b.p(Unknown Source) at com.google.android.gms.**internal.p$a.handleMessage(**Unknown Source) at android.os.Handler.**dispatchMessage(Handler.java:**99) at android.os.Looper.loop(Looper.**java:130) at android.app.ActivityThread.**main(ActivityThread.java:3687) at java.lang.reflect.Method.**invokeNative(Native Method) at java.lang.reflect.Method.**invoke(Method.java:507) at com.android.internal.os.**ZygoteInit$**MethodAndArgsCaller.run(** ZygoteInit.java:867) at com.android.internal.os.**ZygoteInit.main(ZygoteInit.**java:625) at dalvik.system.NativeStart.**main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- *Παύλος-Πέτρος Τουρνάρης* *Android Software Developer* - *http://goo.gl/TsJ8u* - *http://acschedule.org* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Random IllegalStateException on some phone
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 | Gravity.CENTER_HORIZONTAL) .setScopes(mScopes); mGamesClienta.setViewForPopups(gameView); mGamesClient = mGamesClienta.create(); I just added the setViewForPopups and this fixed the crash on android 2.3 =) Il giorno giovedì 3 ottobre 2013 16:19:10 UTC+2, Nobu Games ha scritto: 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 it. Someone has an idea? Thank you java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information. at com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$f.a(Unknown Source) at com.google.android.gms.internal.p$b.p(Unknown Source) at com.google.android.gms.internal.p$a.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to make a Service That will periodically send the Users Location on a server
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 perfectly. Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Random IllegalStateException on some phone
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 Tournaris ha scritto: 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 Thu, Oct 3, 2013 at 5:19 PM, Nobu Games dev.nob...@gmail.comjavascript: wrote: 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 it. Someone has an idea? Thank you java.lang.**IllegalStateException: A fatal developer error has occurred. Check the logs for further information. at com.google.android.gms.**internal.p$f.a(Unknown Source) at com.google.android.gms.**internal.p$f.a(Unknown Source) at com.google.android.gms.**internal.p$b.p(Unknown Source) at com.google.android.gms.**internal.p$a.handleMessage(**Unknown Source) at android.os.Handler.**dispatchMessage(Handler.java:**99) at android.os.Looper.loop(Looper.**java:130) at android.app.ActivityThread.**main(ActivityThread.java:3687) at java.lang.reflect.Method.**invokeNative(Native Method) at java.lang.reflect.Method.**invoke(Method.java:507) at com.android.internal.os.**ZygoteInit$**MethodAndArgsCaller.run(** ZygoteInit.java:867) at com.android.internal.os.**ZygoteInit.main(ZygoteInit.**java:625) at dalvik.system.NativeStart.**main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- *Παύλος-Πέτρος Τουρνάρης* *Android Software Developer* - *http://goo.gl/TsJ8u* - *http://acschedule.org* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to make a Service That will periodically send the Users Location on a server
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 service does not guarantee it will remain alive to send the location changes, make sure you take a power/cpu wake lock every time a change needs to be sent (especially when being awoken by an alarm) - do not try to keep a service as foreground and keep the wake lock forever, this will just drain the battery. let the device sleep and only use wake locks for updating. - remember that the location returned is the last known one, let the device get a fix on it's current location. On Thursday, October 3, 2013 5:55:23 PM UTC+3, HImanshu Mittal wrote: 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 perfectly. Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server
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 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 service does not guarantee it will remain alive to send the location changes, make sure you take a power/cpu wake lock every time a change needs to be sent (especially when being awoken by an alarm) - do not try to keep a service as foreground and keep the wake lock forever, this will just drain the battery. let the device sleep and only use wake locks for updating. - remember that the location returned is the last known one, let the device get a fix on it's current location. On Thursday, October 3, 2013 5:55:23 PM UTC+3, HImanshu Mittal wrote: 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 perfectly. Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/cFXbDUmDh6E/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server
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 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 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 service does not guarantee it will remain alive to send the location changes, make sure you take a power/cpu wake lock every time a change needs to be sent (especially when being awoken by an alarm) - do not try to keep a service as foreground and keep the wake lock forever, this will just drain the battery. let the device sleep and only use wake locks for updating. - remember that the location returned is the last known one, let the device get a fix on it's current location. On Thursday, October 3, 2013 5:55:23 PM UTC+3, HImanshu Mittal wrote: 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 perfectly. Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/cFXbDUmDh6E/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server
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 code than it will be really be helpful or I can also post my code out here than you can tell me where I am doing it wrong :) On Thu, Oct 3, 2013 at 9:23 PM, Steve Gabrilowitz steveg1...@gmail.comwrote: 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 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 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 service does not guarantee it will remain alive to send the location changes, make sure you take a power/cpu wake lock every time a change needs to be sent (especially when being awoken by an alarm) - do not try to keep a service as foreground and keep the wake lock forever, this will just drain the battery. let the device sleep and only use wake locks for updating. - remember that the location returned is the last known one, let the device get a fix on it's current location. On Thursday, October 3, 2013 5:55:23 PM UTC+3, HImanshu Mittal wrote: 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 perfectly. Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/cFXbDUmDh6E/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/cFXbDUmDh6E/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop
[android-developers] Wifi direct or bluetooth without invitations?
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 host has to tap 50x on accept invite. Also, maybe depending on the answer for the previous question, are there any mechanisms to define an allowed group of people - besides sharing a password with them? I'm asking for wifi direct and bluetooth because I don't know yet what I will use to implement this functionality. I tend to prefer peer to peer because greater range and if I read correctly it doesn't limit the number of peer like bluetooth. But bluetooth also could also be used. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Xml file corrupted over sprint cellular network ?
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 Sharma gauravsharma...@gmail.comwrote: @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 this. On Sat, Sep 28, 2013 at 3:34 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: @robert: How do you such information? have you faced this situation before or have they contacted you ? On Sat, Sep 28, 2013 at 4:31 AM, Robert Greenwalt rgreenw...@google.com wrote: I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization herehttp://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google
[android-developers] Wifi direct or bluetooth share information without user?
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 installed, they will share this information by themselves. So far I ran the sdk demos for bluetooth and wifi direct. I think the discovery process can be automated... in bluetooth at least it's possible to pass 0 to be always discoverable. But still I need to confirm the connection to/from the other devices. Is it possible to skip this? I have a preference for wifi direct answer because of range and it seems to be better generally. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Uri for accounts table in contacts db
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 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 to filter only VISIBLE group contacts in the query or you will get contacts not visible to the user in their phone. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Xml file corrupted over sprint cellular network ?
@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, Robert Greenwalt rgreenw...@google.comwrote: 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 Sharma gauravsharma...@gmail.comwrote: @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.com wrote: We have contacts with many of the carriers and I had them ask Sprint about this. On Sat, Sep 28, 2013 at 3:34 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: @robert: How do you such information? have you faced this situation before or have they contacted you ? On Sat, Sep 28, 2013 at 4:31 AM, Robert Greenwalt rgreenw...@google.com wrote: I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization herehttp://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit
Re: [android-developers] Xml file corrupted over sprint cellular network ?
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 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, Robert Greenwalt rgreenw...@google.comwrote: 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 Sharma gauravsharma...@gmail.comwrote: @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.com wrote: We have contacts with many of the carriers and I had them ask Sprint about this. On Sat, Sep 28, 2013 at 3:34 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: @robert: How do you such information? have you faced this situation before or have they contacted you ? On Sat, Sep 28, 2013 at 4:31 AM, Robert Greenwalt rgreenw...@google.com wrote: I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization herehttp://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You
Re: [android-developers] Xml file corrupted over sprint cellular network ?
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 - it's less obscured than rot13. R On Thu, Oct 3, 2013 at 10:37 AM, Steve Gabrilowitz steveg1...@gmail.comwrote: 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 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, Robert Greenwalt rgreenw...@google.comwrote: 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 Sharma gauravsharma...@gmail.com wrote: @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.com wrote: We have contacts with many of the carriers and I had them ask Sprint about this. On Sat, Sep 28, 2013 at 3:34 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: @robert: How do you such information? have you faced this situation before or have they contacted you ? On Sat, Sep 28, 2013 at 4:31 AM, Robert Greenwalt rgreenw...@google.com wrote: I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravsharma...@gmail.com wrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization herehttp://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit
Re: [android-developers] Xml file corrupted over sprint cellular network ?
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 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 rgree...@google.comjavascript: wrote: We have contacts with many of the carriers and I had them ask Sprint about this. On Sat, Sep 28, 2013 at 3:34 AM, Gaurav Sharma gauravs...@gmail.comjavascript: wrote: @robert: How do you such information? have you faced this situation before or have they contacted you ? On Sat, Sep 28, 2013 at 4:31 AM, Robert Greenwalt rgree...@google.comjavascript: wrote: I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravs...@gmail.comjavascript: wrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization herehttp://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- Gaurav Sharma Bangalore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/eihARGT8Pl8/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit
Re: [android-developers] how to create button with one image background and one image inside and text
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 jadrankobodiroga1...@gmail.com wrote: 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 you when you can't even make a button? and not only you can't make a simple button, instead of trying to learn how to do it, you're trying to make other people do the work for you? Even developers with 20 years of experience would still need to read the damn manual and do tutorials when they study a new language\framework.. do your due diligence and then you wouldn't have to publicly show how little you know. Anyhow, you being such an awesome developer who is no longer a student and now only develops (without studying of course), is more than qualified to handle this very complex problem of making a button with text on it on your own. On Wednesday, October 2, 2013 8:01:53 PM UTC+3, Amit Mangal wrote: U r not understanding problem again. I m not a student i am a developer if i will study company will hire some one else to work. I have to work i completed my study long before now i do development. Thanks On 02-Oct-2013 12:31 PM, Piren gpi...@gmail.com wrote: i'm saying that you should read the documentation and actually do the plethora of tutorials available on Android Developers before you go on a forum and ask other people for help. On Tuesday, October 1, 2013 9:45:43 PM UTC+3, Amit Mangal wrote: what are you saying i am unable to understand ? can you please explain ? thanks On Tue, Oct 1, 2013 at 2:36 PM, Piren gpi...@gmail.com wrote: it's actually a wee bit more complex (and by complex i mean - still in the realm of a developer that started android development 3 days ago), if you want a proper red background for the number... but this question is so basic he should try to figure it out on his own. On Tuesday, October 1, 2013 12:47:54 AM UTC+3, TreKing wrote: On Sun, Sep 29, 2013 at 3:19 PM, Amit Mangal forum.am...@gmail.comwrote: i have attached the sample picture any idea how to create that . i want to add text inside button image dynamically . That's just a TextView with a custom, stretchable background. Look up PNG9. --**--** --**--- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscribe**@googlegroups.com. For more options, visit https://groups.google.com/**grou**ps/opt_outhttps://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send
[android-developers] Preventing auto-update?
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). Is there a way to prevent that? He had to re-download the entire file, which is kind of crappy. Larry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Preventing auto-update?
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 larry.mead...@gmail.com wrote: 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). Is there a way to prevent that? He had to re-download the entire file, which is kind of crappy. Larry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] how to create button with one image background and one image inside and text
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 you look up what I told you? On Wed, Oct 2, 2013 at 12:01 PM, Amit Mangal forum.amit.man...@gmail.comwrote: I m not a student i am a developer if i will study company will hire some one else to work. I have to work i completed my study long before now i do development. LMAO - dude, are you serious? You can't be bothered to study because you have to work? So you're not allowed to learn anything new because you're too busy working? Good luck keeping your job. On Thu, Oct 3, 2013 at 1:27 PM, Amit Mangal forum.amit.man...@gmail.comwrote: 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. You don't have to do this. If you would just follow my simple instruction, you would have been done by now. All you need is a simple button with a custom PNG9 background. Google that shit. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Preventing auto-update?
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. As Steve suggested, this is not the only case when your app can be killed in the middle of a download. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] LocationManager.requestLocationUpdates and PendingIntent
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? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Preventing auto-update?
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 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. As Steve suggested, this is not the only case when your app can be killed in the middle of a download. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] LocationManager.requestLocationUpdates and PendingIntent
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 г., 0:28:22 UTC+3 пользователь TreKing написал: On Tue, Oct 1, 2013 at 3:18 PM, Alex Belyaev abel.th...@gmail.comjavascript: wrote: 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? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] LocationManager.requestLocationUpdates and PendingIntent
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. 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. You lost me. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: LocationManager.requestLocationUpdates and PendingIntent
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 whole *PendingIntent*? I don't know what else I may add to make my question completely clear. вторник, 1 октября 2013 г., 23:18:00 UTC+3 пользователь Alex Belyaev написал: Hello guys! I have a quick theoretical question: why * LocationManager.requestLocationUpdates* method needs* PendingIntent *instead of an action? Just for having a possibility to send location updates to the specified *UserHandle *or any other reasons? Thank you in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server
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. Not important. I was not able to make a code because the code which I have made is not working. That's like telling a doctor, I don't feel well and expecting a diagnosis. You need to provide details. If you can provide the code than it will be really be helpful or I can also post my code out here than you can tell me where I am doing it wrong :) Since that's what the guy was asking for, why do you give him a hard time? On Thu, Oct 3, 2013 at 9:23 PM, Steve Gabrilowitz steve...@gmail.comjavascript: wrote: 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 ;-) Follow his advice. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: LocationManager.requestLocationUpdates and PendingIntent
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 your PendingIntent*. You can also elect to start a Service or Activity, can't you? So basically *LocationManager *needs only an action, that is the only thing you need to make a broadcast across the system. To make Intents unique, you also need to specify Data and Category. You are also assuming sending a broadcast is the only action one would want to take in response to a location update So I'm asking, why it need a whole *PendingIntent*? Because an Action is not sufficient to explicitly tell the system how you want to respond to an location update. The PendingIntent specifies the component to start (Broadcast Receiver, Activity, Service), and provides extra information for that component to respond to the Intent (Data, Category, extras). Disclaimer: this is all based on my reading of the docs and my understanding of PendingIntents. I have not used this particular method myself, so I could be wrong here. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: LocationManager.requestLocationUpdates and PendingIntent
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 *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 your PendingIntent*. You can also elect to start a Service or Activity, can't you? So basically *LocationManager *needs only an action, that is the only thing you need to make a broadcast across the system. To make Intents unique, you also need to specify Data and Category. You are also assuming sending a broadcast is the only action one would want to take in response to a location update So I'm asking, why it need a whole *PendingIntent*? Because an Action is not sufficient to explicitly tell the system how you want to respond to an location update. The PendingIntent specifies the component to start (Broadcast Receiver, Activity, Service), and provides extra information for that component to respond to the Intent (Data, Category, extras). Disclaimer: this is all based on my reading of the docs and my understanding of PendingIntents. I have not used this particular method myself, so I could be wrong here. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server
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 android.location.LocationListener; import android.location.LocationManager; import android.os.AsyncTask; import android.os.Bundle; import android.os.IBinder; import android.widget.Toast; public class MyService extends Service { ProjectURL proURL = new ProjectURL(); String initialURL; SharedPreferences pref; @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); final LocationManager mlocmag = (LocationManager)getSystemService(Context.LOCATION_SERVICE); final LocationListener mlocList = new MyLocationList(); Criteria criteria = new Criteria(); // Getting the name of the best provider final String provider = mlocmag.getBestProvider(criteria, true); final Location loc = mlocmag.getLastKnownLocation(provider); UpdateWithNewLocation(loc); // This method is used to get updated location. mlocmag.requestLocationUpdates(provider, 1000, 0, mlocList); } @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { // TODO Auto-generated method stub return super.onStartCommand(intent, flags, startId); } private void UpdateWithNewLocation(final Location loc) { // TODO Auto-generated method stub if(loc!= null) { final double lat =loc.getLatitude(); // Updated lat final double Long = loc.getLongitude(); // Updated long pref = getSharedPreferences(myMetroFile,Context.MODE_PRIVATE); System.out.println(MO Service Running); String UniqueDeviceId = pref.getString(DeviceUniqueID, 0); initialURL = proURL.projectURL + storeLatLong.php?RegID=+lat+Email=+Long+Device=+UniqueDeviceId+Start=NO; new Async().execute(); } else { } } class Async extends AsyncTaskString, Void, String { //ProgressDialog progress; protected String doInBackground(String... params) { try { new jSOn().execute(initialURL); } catch (Exception e) { e.printStackTrace(); } return null; } protected void onPreExecute() { super.onPreExecute(); } protected void onPostExecute(String result) { super.onPostExecute(result); } } public class MyLocationList implements LocationListener { public void onLocationChanged(Location arg0) { // TODO Auto-generated method stub UpdateWithNewLocation(arg0); } public void onProviderDisabled(String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),GPS Disable , Toast.LENGTH_LONG).show(); } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),GPS enabled, Toast.LENGTH_LONG).show(); } public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } } On Fri, Oct 4, 2013 at 4:44 AM, Lew lewbl...@gmail.com wrote: 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. Not important. I was not able to make a code because the code which I have made is not working. That's like telling a doctor, I don't feel well and expecting a diagnosis. You need to provide details. If you can provide the code than it will be really be helpful or I can also post my code out here than you can tell me where I am doing it wrong :) Since that's what the guy was asking for, why do you give him a hard time? On Thu, Oct 3, 2013 at 9:23 PM, Steve Gabrilowitz steve...@gmail.comwrote: 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 ;-) Follow his advice. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/cFXbDUmDh6E/unsubscribe . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit