[android-developers] Re: Best practise for DocumentFile? Is it the right approach?

2015-01-29 Thread Grunthos

Don't suppose anyone has insights for just one of these questions? 

#4 would be pretty useful.

-- 
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] Get log/console output without root access

2015-01-29 Thread drac94
You should take a look at solutions for crash reporting like ACRA, I use it for 
all my apps and it's very easy to configure and manage

http://www.toptal.com/android/automated-android-crash-reports-with-acra-and-cloudant

-- 
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] Why doesn't my test account work?

2015-01-29 Thread Russell Cecala
I went to the Google Play Developer console and clicked on the settings
gear icon.
I enter in the email I have my android phone logged with in the Gmail
accounts with testing access field.  Then on my phone I open the play
store app and try to install one of my apps that cost $0.99.  I was
expecting that I would not have to actually pay for my own app, but google
play still charges $0.99 to my credit card to install my app.  I guess I do
not understand what the testing access means or how to use it.  Can anyone
help me enlighten me?

Thanks
Red

-- 
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: Bluetooth Low Energy support on lollipop and previous

2015-01-29 Thread MathieuB
You shouldn't set a max sdk. You can set minSdk to 18, and targetSdk to 21. 
If you set a max, that means if there's a new android version, people won't 
be able to download your app, you'll have to make an update.

As for the error you get, it's mainly a lint error. If the code is in an if 
statement like you showed, there's no reason someone with API 18 enters 
into this if statement. You'll just have to add @SuppressLint(NewApi) 
before your method.

Have a look at this stackoverflow page, it'll help.

http://stackoverflow.com/questions/11592820/writing-backwards-compatible-android-code

-- 
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: Bluetooth Low Energy support on lollipop and previous

2015-01-29 Thread Tony Pitman
My mistake in choosing words. I didn't set a max, it is the target that I 
set.

The IDE also suggests putting the suppress tag on the method, but I have 
never been a fan of suppressing warnings or errors. If this is the accepted 
way to do it, however, then I will follow it.

Thanks!

On Thursday, January 29, 2015 at 7:09:08 AM UTC-7, MathieuB wrote:

 You shouldn't set a max sdk. You can set minSdk to 18, and targetSdk to 
 21. If you set a max, that means if there's a new android version, people 
 won't be able to download your app, you'll have to make an update.

 As for the error you get, it's mainly a lint error. If the code is in an 
 if statement like you showed, there's no reason someone with API 18 enters 
 into this if statement. You'll just have to add @SuppressLint(NewApi) 
 before your method.

 Have a look at this stackoverflow page, it'll help.


 http://stackoverflow.com/questions/11592820/writing-backwards-compatible-android-code


-- 
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] Why doesn't my test account work?

2015-01-29 Thread TreKing
On Thu, Jan 29, 2015 at 11:48 AM, Russell Cecala red.cricket.b...@gmail.com
 wrote:

 I guess I do not understand what the testing access means or how to use
 it.  Can anyone help me enlighten me?


Small text above that box:
In addition to the owner of this console the following users will get the
License test response from the application.

This is for testing Licensing.
http://developer.android.com/google/play/licensing/setting-up.html#test-response

-
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/d/optout.


Re: [android-developers] Why doesn't my test account work?

2015-01-29 Thread Russell Cecala
Thanks TreKing.  I changed the License Test Response pulldown to LICENSED
... but I still get prompted from my credit card?  Does it take some time
for the change to propagate or am I still misunderstanding something?

On Thu, Jan 29, 2015 at 11:37 AM, TreKing treking...@gmail.com wrote:


 On Thu, Jan 29, 2015 at 11:48 AM, Russell Cecala 
 red.cricket.b...@gmail.com wrote:

 I guess I do not understand what the testing access means or how to use
 it.  Can anyone help me enlighten me?


 Small text above that box:
 In addition to the owner of this console the following users will get the
 License test response from the application.

 This is for testing Licensing.

 http://developer.android.com/google/play/licensing/setting-up.html#test-response


 -
 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/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.


Re: [android-developers] Why doesn't my test account work?

2015-01-29 Thread Steve Gabrilowitz
You are still misunderstanding.  The license feature applies only to in-app
purchases, not the initial purchase.  And apps that implement IAP are
generally free for the initial download ;-)
On Jan 29, 2015 4:06 PM, Russell Cecala red.cricket.b...@gmail.com
wrote:

 Thanks TreKing.  I changed the License Test Response pulldown to LICENSED
 ... but I still get prompted from my credit card?  Does it take some time
 for the change to propagate or am I still misunderstanding something?

 On Thu, Jan 29, 2015 at 11:37 AM, TreKing treking...@gmail.com wrote:


 On Thu, Jan 29, 2015 at 11:48 AM, Russell Cecala 
 red.cricket.b...@gmail.com wrote:

 I guess I do not understand what the testing access means or how to use
 it.  Can anyone help me enlighten me?


 Small text above that box:
 In addition to the owner of this console the following users will get
 the License test response from the application.

 This is for testing Licensing.

 http://developer.android.com/google/play/licensing/setting-up.html#test-response


 -
 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/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.


-- 
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: ServiceTestCase and Contexts

2015-01-29 Thread Igor Ganapolsky
I am getting this error:

 android.content.Context.getMainLooper()' on a null object reference

When calling 
new GoogleApiClient.Builder(getApplication())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
.build();

 

On Tuesday, February 8, 2011 at 10:54:05 AM UTC-5, nate wrote:

 Thanks for the response.  The assets that I needed for the test 
 project were specifically built for testing and we could not 
 distribute them in the assets of our app (we are keeping the app 
 footprint small), but the workaround I posted above worked fine to get 
 the assets from the test project. 

 On Feb 4, 5:04 pm, A. Elk lancaster.dambust...@gmail.com wrote: 
  Hmmm. 
  
  ServiceTestCase.getSystemContext() returns the context of the test 
  package. ServiceTestCase.getApplication() gets the Application 
  instance in use by the service under test. It's probably better to use 
  that Application object to look at the assets you want. 
  
  When you wrote getContext(), I didn't understand which class you were 
  talking about. In a test case class, calling getContext() will usually 
  default to AndroidTestCase.getContext(), which will give you the 
  context of the test package. In an instrumented test case like 
  ActivityInstrumentationTestCase2, you have an Instrumentation object, 
  so you can call getTargetContext() on that object to get the context 
  of the instrumented component under test. 
  
  To come back to the original problem, which assets do you need to use? 
  Could you build them into your test package as well as the application 
  under test, instead of trying to get them from the app on the fly? 
  
  On Feb 4, 11:20 am, nate nat...@cisco.com wrote: 
  
  
  
  
  
  
  
   OK, I found a solution: 
  
   I created a context to our test package and was able to access the 
   assets: 
  
   mTestAppContext = getContext().createPackageContext(com.blah.test, 
   Context.CONTEXT_IGNORE_SECURITY); 
  
   Just in case anyone else needs a workaround. 
  
   On Feb 4, 10:36 am, nate nat...@cisco.com wrote: 
  
Also, i put the test assets in the target project's directory and 
 was 
able to access them with: 
  
getSystemContext().getAssets().list(.) 
  
On Feb 4, 10:31 am, nate nroy...@gmail.com wrote: 
  
 I checked my setUp() method and I do call super.setUp() as the 
 first 
 line.  The reason I believe the contexts are the same are 
 two-fold: 
  
 I tried both: 
  
 getSystemContext().getAssets().list(.) 
 getContext().getAssets().open(.); 
  
 and neither of them listed any files.  The second reason is that I 
 read the code for ServiceTestCase and saw that the 
 getSystemContext() 
 is just the 
 same context retrieved by getContext(), but it's grabbed before 
 any 
 tests have a chance to mess with it(according to the comment in 
 the 
 code): 
  
 @Override 
 protected void setUp() throws Exception { 
 super.setUp(); 
  
 // get the real context, before the individual tests have 
 a 
 chance to muck with it 
 mSystemContext = getContext(); 
  
 } 
  
 So it would seem that getting the context to the app the testcase 
 is 
 in is not possible with the ServiceTestCase, unless I am missing 
 something. 
  
 On Feb 3, 9:15 pm, A. Elk lancaster.dambust...@gmail.com 
 wrote: 
  
  What leads you to believe that both Context objects contain the 
 same 
  information? If you do a getSystemContext() you should get the 
 context 
  that's stored during setUp(). The only thing that might screw 
 this up 
  is if you overrode setUp() but forgot to call super.setUp() 
 first. 
  
  On Feb 2, 2:08 pm, nate nroy...@gmail.com wrote: 
  
   Hey Everyone, 
  I don't know if I am doing something wrong here, but when I 
 am 
   trying to use the ServiceTestCase class to test my Service, I 
 cannot 
   get a context which points to the test project.  getContext() 
 and 
   getSystemContext() both seem to point to the target project's 
   context.  The reason I need the context of my test app is that 
 i have 
   some assets which i need to be able to use in order to test 
 the 
   service in question.  Does anyone know of a workaround or 
 could point 
   me at a way of resolving this?  (i looked through the source 
 of 
   ServiceTestCase and didn't see another way) 
  
   Something similar to instrumentationtestcase's 
   getInstrumentation.getContext() is what I am looking for. 
  
   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 

[android-developers] How to access Camera stream inside Webview

2015-01-29 Thread Abhi
Can someone help me here ??

-- 
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] What is the max number of apps?

2015-01-29 Thread Russell Cecala
What is the maximum number of apps one can have in google play?

-- 
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.