[android-developers] Flavors : I loose my 'R' when I use code in main
Hi, I have an App with 2 flavors : free and full. public class DocumentListActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.document_list_activity); android.util.Log.d(MultiReaderFree,DirectoryListActivity.onCreate()); import bse.multireader.util.ConstantsInterface; import bse.multireader.R; works OK When I implement in the Activity in the free flavor, an interface defined in the main source directory, I'm loosing all my resources : import *bse.multireader.util.ConstantsInterface;* public class DocumentListActivity extends ActionBarActivity *implements ConstantsInterface*{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.document_list_activity); android.util.Log.d(MultiReaderFree,DirectoryListActivity.onCreate()); I get the 'cannont resolve layout' Another question. When creating code/resources for the 'main' /common directory, which Build Variant should be used ? (there is no main build variant choice). Sorry for those beginner questions, but AndroidStudio is not easy to master -- 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/d/optout.
[android-developers] Re: FusedLocation Provider fail
OK, this is really getting ridiculous. Google Play Location Provider just isn't reliable. Only once in a great while can I even get a location. I'm not sure how I did it. I can't find any combination of settings that is reliable. Device Only mode has never worked except perhaps once. GPS was never activated as far as I can tell. getLastLocation() states If a location is not available, which should happen very rarely, null will be returned. The best accuracy available while respecting the location permissions will be returned. Not true. Seems pretty common for me and is happening a lot for end users as well. Not such a big deal if one could ask for the location and expect to get it. Still nowhere is documented what settings the user has to have for me to get location through Google Play Services. So far the promise of the FusedLocationProvider is coming short bigtime. I'm close to crawling back to the supposedly inferior LocationManager. Nathan -- 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/d/optout.
Re: [android-developers] Aam Aadmi Party #IFundHonestParty Challenge
Stop spreading nonsense. This time AAP party will definitely loose in vidhan sabha election. On Fri, Jan 16, 2015 at 9:08 PM, mayank k varshney mayank.be@gmail.com wrote: Hi Sandeep, I am impressed with your candidate of CM but AS I HOPE he need a management guru how to speak in public. So it is very hard for him to stand in front of Kiran Bedi now. He hit a golden opportunity to change the history of so called Indian politics. So don't loop we again in such type of mails. Regards, Mayank On Fri, Jan 16, 2015 at 3:12 PM, Sandeep Solanki solanki.scor...@gmail.com wrote: Accept Challenge http://mandrillapp.com/track/click/30165539/aamaadmiparty.ref-r.com?p=eyJzIjoiaVZmbThRR2J2T056OEdKZUFfRE93OF9KRnlrIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvYWFtYWFkbWlwYXJ0eS5yZWYtci5jb21cXFwvY1xcXC9pXFxcLzExM1xcXC85NDczNzY_cj1lbWFpbFwiLFwiaWRcIjpcIjRlY2ZmMjFlMjI5YTQ5NWFhZTU0Yjc3YWNiNGY0NDE0XCIsXCJ1cmxfaWRzXCI6W1wiZGM2Yjc3ZDc1MjlhNTIyMmVjZjkxYWFkMTY5ZjY5NmNhY2EyM2YxN1wiXX0ifQ As you know, I support Aam Aadmi Party (AAP) because it has offered an alternative politics rather than turning into just another political alternative. In spite of some actions on which we may have differing opinions, I feel that AAP still deserves a second chance and support from all of us as they are fully committed to corruption-free development, non-criminal candidates and Swaraj. AAP strongly believes that honest politics can only exist when elections are fought on clean money received as donation from supporters. I have taken the #iFundHonestParty Challenge and donated to AAP and seek your donation and support. To continue this challenge, donate now and throw the #IFundHonestParty Challenge to at least 10 friends and family members in your network. I know that you will accept my request and step forward to do your bit to support the cause and further this movement. I would love to discuss about it if you have any questions :-) Sandeep Solanki Accept Challenge http://mandrillapp.com/track/click/30165539/aamaadmiparty.ref-r.com?p=eyJzIjoiaVZmbThRR2J2T056OEdKZUFfRE93OF9KRnlrIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvYWFtYWFkbWlwYXJ0eS5yZWYtci5jb21cXFwvY1xcXC9pXFxcLzExM1xcXC85NDczNzY_cj1lbWFpbFwiLFwiaWRcIjpcIjRlY2ZmMjFlMjI5YTQ5NWFhZTU0Yjc3YWNiNGY0NDE0XCIsXCJ1cmxfaWRzXCI6W1wiZGM2Yjc3ZDc1MjlhNTIyMmVjZjkxYWFkMTY5ZjY5NmNhY2EyM2YxN1wiXX0ifQ http://mandrillapp.com/track/click/30165539/www.facebook.com?p=eyJzIjoiX0xUMU9vR2JnMzNoajZQdzYyN1hCUzFLQU1RIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3d3dy5mYWNlYm9vay5jb21cXFwvQWFtQWFkbWlQYXJ0eVwiLFwiaWRcIjpcIjRlY2ZmMjFlMjI5YTQ5NWFhZTU0Yjc3YWNiNGY0NDE0XCIsXCJ1cmxfaWRzXCI6W1wiYWI3OTE4ZGMwMzQyMGJhZGUwNzk3NjlkYmNiZmIyN2Y2ZDczMzZkZFwiXX0ifQ http://mandrillapp.com/track/click/30165539/twitter.com?p=eyJzIjoiMTM3am5tYzJQMWhWc2gwdmZkTFBOaVVzYzJVIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3R3aXR0ZXIuY29tXFxcL0FhbUFhZG1pUGFydHlcIixcImlkXCI6XCI0ZWNmZjIxZTIyOWE0OTVhYWU1NGI3N2FjYjRmNDQxNFwiLFwidXJsX2lkc1wiOltcImE2M2VjOTZlZTUwOGY3ZjAwMGVkNWU3MWI4YjdiOWJjMzA1NzIzMDlcIl19In0 -- 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/d/optout. -- 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/d/optout. -- *Thanks Regards ASHEESH ARYA* * +918743922514* -- 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
[android-developers] Best practise for DocumentFile? Is it the right approach?
I have an app that needs to support API 7 through lollipop; until KitKat, it used 'File' objects to talk to the local file system. I had planned to use DocumentFile as a simple solution to my problems. However, I can not see simple ways to do the following: 1. Save the equivalent of path and file; I used to save the last file written (an export or backup) then next time the user performed this operation, attempted to return them to the same directory. How is this done? In the 'io.File' world, I just save the result of getAbsolutePath(). In the DocumentFile world (or even the DocumentContract world) there does not seem to be an equivalent. How can I return the user to the same location next time? 2. IF I can return to the user to the same place next time they try to open/save, how do I allow them to navigate back up the tree? Sure, a file can have parents, but I can not see any calls that show me the parents, which kind of makes remembering locations useless. But failing to remember them is equally useless in large file trees. 3. If I use the new APIs, I can get document IDs. This is great, but do they encode the provider? Is there a call to say I have no idea who the provider was, just open this doc please, here is the ID...?. This is related to (2), but also important for using files within the app. 4. io.File has a set of functions relating to temp files. If I move over solely to the new APIs, how can I create a temporary file IN THE SAME PARENT as a given file, so that when the output is complete, I just do a delete/rename (to avoid blowing away the previous file until I know the new file it fully written). 5. I notice that DocumentFile keeps a link to parents internally. Does it support serialization, and if so, do the parents also get serialized? Sorry for so many questions, but every time I try to use the new API I seem to hit roadblocks, and all the samples seem overly simplisitic. -- 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/d/optout.
[android-developers] FusedLocation Provider fail
I feel betrayed. My first time using the Google Play Location Services and I don't think I've been told everything. All worked well in testing on my devices. I used PRIORITY_LOW_POWER. Boom - now the app is out in the field, and complaints are coming in. I don't know if it is everyone, or a small subset. I found out it didn't work if the Location Mode is set to Device Only. I didn't know that. I tried it and it doesn't fail - it just never gets a location, and never has a At least one person said that it still didn't work if he did that. I am checking on whether we didn't correctly do the check of whether Google Play Services is up to date, but I have no way of testing that code - I'd just have to ship it and hope it works. I don't find anything mentioned about what settings the user needs here: https://developer.android.com/training/location/receive-location-updates.html I don' understand why I can't even get the last location when it is on Device Only. Are there other gotchas with this and best practices for communicating this to the user? Nathan -- 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/d/optout.