[android-developers] Install the Google Play Services SDK issue

2014-03-31 Thread limtc
Hi, I would like to install Google Play Services and following this example: http://developer.android.com/google/play-services/setup.html -- Scroll to the bottom of the package list, expand Extras, select Google Play services, and install it. If you're using Android Studio, also install

[android-developers] Re: When/where should bindService/unbindService be called

2014-03-31 Thread Johan Appelgren
Why do you need to start the service at boot? That combined with what you write later about starting and stopping the service while your activity is running AND binding to it makes no sense to me. You're more likely to get a good answer if you explain more what you need the service for.

[android-developers] Re: Install the Google Play Services SDK issue

2014-03-31 Thread limtc
I found the solution... set SDK Manager options to force HTTPS and the options will show up! 在 2014年3月31日星期一UTC+8下午3时40分47秒,limtc写道: Hi, I would like to install Google Play Services and following this example: http://developer.android.com/google/play-services/setup.html -- Scroll to the

[android-developers] Why apps not developed in C ?

2014-03-31 Thread NewToAndroid
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

[android-developers] Is it all devices larger side the landscape?

2014-03-31 Thread lselwd
When using Eclipse tested app in Nexus7 emulator AVD - Phonegap Build App - when I have preference name=orientation value=portrait / I get https://lh3.googleusercontent.com/-PI4l1H2R4yo/Uzl1sqE_OtI/GLk/GfVkGNkMjCk/s1600/device-2014-03-31-163805.png but when preference name=orientation

Re: [android-developers] Why apps not developed in C ?

2014-03-31 Thread Sai Yamanoor
Someone might correct me if I am wrong here. I learned that they chose Java to meet performance requirements. There is a detailed explanation behind how the use of Java affects the device performance. Sai On Mon, Mar 31, 2014 at 6:19 AM, NewToAndroid rahulra...@gmail.com wrote: Hi all, I

Re: [android-developers] Why apps not developed in C ?

2014-03-31 Thread Nikolay Elenkov
On Mon, Mar 31, 2014 at 11:40 PM, Sai Yamanoor yamanoor...@gmail.com wrote: Someone might correct me if I am wrong here. I learned that they chose Java to meet performance requirements. There is a detailed explanation behind how the use of Java affects the device performance. Because Java is

[android-developers] Re: Why apps not developed in C ?

2014-03-31 Thread Salsero69
You can write Apps in C and C++ using the NDK. https://developer.android.com/tools/sdk/ndk/index.html 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

[android-developers] Re: Why apps not developed in C ?

2014-03-31 Thread NewToAndroid
Thats good to know. My intension behind asking this question was, will the apps be faster if written in C/C++ ? But looking at the intro of NDK, they say it won't give significant performance improvement if apps developed in c/c++. Is it because of the layers of basic Android architechture? Or

Re: [android-developers] Re: Why apps not developed in C ?

2014-03-31 Thread Kristopher Micinski
One big reason is that a lot of time is spent in system libraries, which are written in C/C++. I believe in the original talk on Dalvik, it was indicated that 70% of the time was spent in non-interpreted code. You also have to remember that Dalvik has a JIT compiler and now an LLVM based runtime

Re: [android-developers] Is it all devices larger side the landscape?

2014-03-31 Thread Marina Cuello
No, there are a few devices with a BlackBerry-like / QWERTY format that have 4:3 screens. Samsung Galaxy Y Pro is one I can recall. But they're exceptions, I believe. Marina On Mon, Mar 31, 2014 at 11:04 AM, lselwd webmas...@poliscarhire.com wrote: When using Eclipse tested app in Nexus7

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

2014-03-31 Thread Ted Hopp
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

[android-developers] Re: How to inject mock objects in Android?

2014-03-31 Thread Yuvi
Hi Andrew, Is it good idea to create constructor of Android Component classes ? I have read somewhere that we should never create constructors for Android Component classes. Regards, Yuvi On Wednesday, March 26, 2014 11:48:31 PM UTC+5:30, Andrew Mackenzie wrote: I think with your current