[android-developers] How to calculate a tablets resolution before purchasing the tablet

2014-04-01 Thread Simon Giddings
I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which boasts a 
screen resolution of 2560 x 1600 pixels for a screen diagonal of 10.1.

Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc ?

I haven't been able to find any form of developer support on the toshiba 
web site, which could have helped.

-- 
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] Bluetooth, my app suddenly asks for permission to access SIM. Why?

2014-04-01 Thread Leo


I'm developing a game that has 'play via bluetooth' mode. Two game 
instances connect to each other perfectly, but from time to time (one out 
of ten or so) I got a confirmation dialog on my Galaxy S3 with message that 
Remote app requests permission to access SIM.

This message appears when my game tries to connect to the S3 phone. 
Suddenly after several successful connections, next connection raises this 
dialog and then refuses to connect no matter what I choose in this dialog.

I've tested this behavior on my Galaxy S3 (Android 4.1.1) and HTC Legend 
(Android 2.2). 

The game is using generated UUID for creating secure bluetooth connection.

Why am I getting this access SIM? And how to fix it?

Any advice is really appreciated.

-- 
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: Why apps not developed in C ?

2014-04-01 Thread Digipom
Here are some thoughts that would help bias the default choice toward Java:

   - There are more Java programmers out there, and Java is taught more 
   than C or C++. This leads to a bigger audience of developers for Google 
   Play.
   - The level of skill required to use C  C++ effectively is higher than 
   it is for Java, since the legacy of the languages is older and there are 
   more pitfalls and gotchas to worry about, like undefined behaviour, memory 
   corruption, and so forth.
   - Tooling and library support has historically been better for Java than 
   it has been for C / C++. 
   - Using a virtual machine means that apps don't need to be recompiled to 
   support future platforms. It may also give more freedom in other areas.

The downside is that the performance can sometimes be terrible under 
Dalvik. ART aims to ameliorate this, but I don't know if it can close the 
gap as well as Java on the desktop/server has been able to, relative to 
native performance. I've seen differences of 10x or more between native and 
Dalvik, depending on what the code is doing. For most non-game applications 
this won't be an issue, but for some applications, it is, and the Google 
team acknowledges this and gives you access to C / C++ via the NDK (Native 
Development Kit), if you really want it. There'll be a few limitations:

   - Code will be more complex due to the need to mix Java, C / C++, and 
   JNI glue code.
   - Most Java APIs are not directly accessible from the native layer.
   - You're limited as to which native libraries you can portably use 
   across different versions of Android.

If you're only looking for native performance without the hassle of using 
the NDK, RenderScript might be a better bet.

C/C++ might still make sense if you have existing libraries, a 
multi-platform code base such as a game engine, and Google doesn't prevent 
you from using native languages if you really want to. You can even use 
Fortran and other languages too, if you want! The native layer is not a 
first-class citizen on Android's platform, so using Java  RenderScript 
will lead to less pain, but the option is still there if you really want to 
use it.

On Monday, March 31, 2014 7:19:14 AM UTC-4, NewToAndroid wrote:

 Hi all,

 I have this question out of curiocity.
 Android is based on Linux, which is basically written in C. Why Android 
 apps are not written in C ? Why Java?

 I accept that , I might have big gaps in my understanding of Android, 
 which is what I want to clear.

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


[android-developers] Re: License client issue: can NOT_LICENSED be returned due to being off-line?

2014-04-01 Thread Digipom
I've run into similar issues, and found that it's more reliable in terms of 
impact on the end user to implement a second level of state tracking 
separately from what Google Play returns. So, you might want to do that 
depending on what your license policy is.

On Monday, March 31, 2014 9:32:41 PM UTC-4, Ted Hopp wrote:

 We have an app that uses the following license policy:

- if a definitive response of LICENSED is stored in the app's 
preferences and has not expired, allow access.
- if a definitive response is not stored in the app's preferences, or 
if it has expired, or if the cached response is NOT_LICENSED, request 
a license check from the server.
- if a definitive response (LICENSED or NOT_LICENSED) is received, it 
is stored in the prefs, along with the license validity period returned by 
the server. Access is permitted if the definitive response is LICENSED.
- if anything other than a definitive response is received (airplane 
mode, server error, etc.), the last stored definitive response is used to 
determine access, even if expired. If no response is stored, allow access.

 (This is basically the same as the LenientPolicy described in this 
 threadhttps://groups.google.com/forum/#!searchin/android-developers/%22NOT_LICENSED%22$20response/android-developers/Pg1R5COMLD8/mBiKJyUxp0MJ.
  
 We're aware of its weaknesses, but generally it works for us.)

 The problem is that we occasionally receive reports of customers being 
 denied use of the app due to a license problem. These are installations 
 that definitely should be receiving a server response of LICENSED. When 
 the problem happens, and when we've been able to obtain details, it always 
 turns out that the user's device was not fully connected. When full network 
 connectivity was restored, the app ran fine. Here's (part of) a report from 
 a customer who has been unusually helpful:

 I'm using an Acer Iconia A500 tablet, running Android 4.0.3, kernel 
 2.6.39.4+. . . . So, I don't seem to be able to simulate it with airplane 
 mode on. I also tried turning airplane mode back off, and it works fine 
 right now. The situation where this happened to me it happened three 
 different times, it was during a reading group at another person's house, 
 and I don't have any access to their wifi network.  So, there was wifi in 
 the area, but I wasn't connected to any at all, but I wasn't on airplane 
 mode either. . . If it happens again, I will try to watch more closely and 
 take note of any network circumstances.

 We have not been able to reproduce the problem on either an emulator or on 
 our test devices. As far as I can tell from our code, our app will always 
 run unless it receives a response of NOT_LICENSED from the license 
 client. Our assumption had been that this was only possible if the 
 licensing client successfully contacted the license server and received a 
 response of NOT_LICENSED (or had an unexpired NOT_LICENSED server 
 response previously cached). But perhaps our assumption is wrong. Is there 
 any situation where the licensing client on the device will return a 
 response of NOT_LICENSED due to a communication problem (or any other 
 reason besides having received that response from the license server)? Is 
 there anything we could ask the customer to do that might help sort out 
 what's going wrong?


-- 
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: License client issue: can NOT_LICENSED be returned due to being off-line?

2014-04-01 Thread Ted Hopp
I'm not sure I understand this suggestion. What state are you tracking? How 
is it separate from what Google Play returns? As I described, we are 
already separately maintaining the last definitive response received. Do 
you do something beyond that?

More to the point: our app *seems* to be receiving a NOT_LICENSED response 
in situations where it is technically impossible that any response was 
received from the Google Play license server. How would we distinguish 
these responses (received from the licensing client running on the device) 
from legitimate NOT_LICENSED responses (which would also be delivered via 
the licensing client)?

On Tuesday, April 1, 2014 9:38:40 AM UTC-4, Digipom wrote:

 I've run into similar issues, and found that it's more reliable in terms 
 of impact on the end user to implement a second level of state tracking 
 separately from what Google Play returns. So, you might want to do that 
 depending on what your license policy is.



-- 
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] License client issue: can NOT_LICENSED be returned due to being off-line?

2014-04-01 Thread Digipom Inc.
Without going into details since this is a public forum, suffice it to say that 
it might not be in your best interest to delicense the app when it has been 
licensed successfully in the past. This approach has helped us in dealing with 
these issues, and perhaps a similar approach might help out in your case.

On Apr 1, 2014, at 11:48 AM, Ted Hopp ted.h...@gmail.com wrote:

 I'm not sure I understand this suggestion. What state are you tracking? How 
 is it separate from what Google Play returns? As I described, we are 
 already separately maintaining the last definitive response received. Do you 
 do something beyond that?
 
 More to the point: our app seems to be receiving a NOT_LICENSED response in 
 situations where it is technically impossible that any response was received 
 from the Google Play license server. How would we distinguish these responses 
 (received from the licensing client running on the device) from legitimate 
 NOT_LICENSED responses (which would also be delivered via the licensing 
 client)?
 
 On Tuesday, April 1, 2014 9:38:40 AM UTC-4, Digipom wrote:
 I've run into similar issues, and found that it's more reliable in terms of 
 impact on the end user to implement a second level of state tracking 
 separately from what Google Play returns. So, you might want to do that 
 depending on what your license policy is.
 
 
 -- 
 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/2-FuY6eO1cQ/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/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] Fingerprint Scanner

2014-04-01 Thread shiva pendem
Hello all,

i am planing to make a application with finger print as a securit to that
application,

but i am unable to find the correct data or reference to my plan of making
the application,

i have seen the application
https://play.google.com/store/apps/details?id=mobi.thinkchange.fingerscannerlite

in this similar way, to access my application it should ask for fingerprint
scan,

how can i achieve the process of scanning the finger print,

all the reference links and sample codes are most welcome,


Thanks,
Pendem Shiva Shankar,
Gtalk:pendem.shiva89,
msn:shivapen...@live.com,
www.shivaapps.in.

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