Nathan | 20 Oct 19:39 2014
Picon

Google Play Location Services on Wear

This is probably a simple If Android Wear needs a location, one way to do it is to contact the mobile app counterpart and request a location and send it back to the wear device.

But I was wondering, could one use GoogleApiClient on the wear device and request the location? I assume it would make the same round trip, if necessary, but might have the data already.

In other words, could I get the location via connecting a location client and calling this method?

Location getLastLocation (GoogleApiClient client)


Or am I oversimplifying it?


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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sree android | 20 Oct 19:11 2014
Picon

Exception in AES-256 Algoritham.

Hi friends,

i am implementing json data decryption in android using AES-256, ECB mode.
In these server implementation is done in php using Rijndael encryption with 24 digit key and 32 digit initial vector,ECB mode.If i implement with this key and initial vector in client i got Exceptions saying ECB mode doesn't support IV(initial vector),If i change ECB mode to CBC mode it is saying "IV length must be 16 bytes only."

Please guide me how can i decrypt data in android using AES-256 algoritham.

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sheng-Dean | 18 Oct 04:21 2014
Picon

How to acquire reference to UsageStatsManager?

As titled, how does one acquire a reference to UsageStatsManager?

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Naveen | 17 Oct 10:06 2014
Picon

Android Gaming

i have 1+ ex in andoird i want to learn more android like android gaming can anyone suggest for android gameing 

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Christine | 16 Oct 17:03 2014
Picon

My android studio suddenly has changed the editor font to enormous.

My android studio suddenly has changed the editor font to enormous.
I'm on Ubuntu, changing font size in settings (of android studio) doesn't change the font. The way it is now, it's unusable. What can I do?

Christine

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TobyKaos | 16 Oct 11:31 2014

Google Play Service crash with leaderboard on android 3.2

Hello,

I am adding google play leaderboard to my game. This work fine on Android 4.x but with my android 3.2 when I want to show the leaderboard the google play service crash (not my game).

The log say that a resource is missing then an excpetion is raised?

I am using the sample library helper BaseGameActivity. Maybe I have missed to add something to be backward compatible?

Can you help me to find this issue?

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
SAndy | 16 Oct 01:37 2014
Picon

Google Maps API on Android 4.4 taking wrong location

I am using the Google Play Location API to locate my destination from my current location.

My current location is picked up correctly by Android 4.0 to 4.3 but getting wrong current location in 4.4 device.

If there is no fix for this, then they should deprecate the requestLocationUpdates method.


Also pointing to my destination, when I type, it gives me suggestions, and when I choose the suggestion, it automatically takes wrong suggestion.

For ex- I am searching for Sydney Domestic Airport and it gives me suggestion, and when I choose the ’Sydney Domestic Airport’ suggestion, Google Maps by itself start pointing to ’Sydney Airport’ and end up in wrong destination.

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jim Graham | 15 Oct 09:30 2014
Picon

Re: insane ScrollView problems

On Wed, Oct 15, 2014 at 12:03:28AM -0700, Will Christiansen wrote:
> So what I think you need to do it follow Nobu Games suggestion about the 
> premature closure.

Of course I should...that's how I had it originally.  But as I've said,
when I do that, Eclipse whines about it not being closed.

Here's how it looks now (same as several time in the past, while trying to
figure out where the problem is:

---------------------------  CUT HERE  ---------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:background="#000000"
   android:orientation="vertical"
   tools:context="com.jdgapps.andgtbrew2.AndGTbrew2" >

   <ScrollView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" >

      <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="fill_parent"
         android:gravity="center_vertical|center_horizontal"
         android:orientation="vertical" >

buttons, etc.....

---------------------------  CUT HERE  ---------------------------

> It can't find the layout_width attribute because you are closing that XML 
> tag before it's set. Since you've tried that and the XML looks valid 
> (besides the premature closure) you should try to fix the XML like Nobu 
> Games suggested and then clean your project. I haven't used Eclipse in 
> quite some time but I believe it's under *Project *-> *Clean*.

Trust me, I know that, and that's not why it was origninally complaining
about not finding the layout_width---it was force closing because it
wasn't finding it in the ScrollView params---the exact same ones shown
above, btw.

And if I don't close it the way we all know is wrong, Eclipse whines
about it not being closed at line 2.  As I mentioned in another response,
I even tried joining all the lines together so it was ALL line 2 (up to
the '>' in the spot where it's supposed to be)....no change...Eclipse
still whines and refuses to build it.

> If Eclipse still continues to whine, try removing the 
> tools:context="com.jdgapps.andgtbrew2.AndGTbrew2" line of code. In this 
> instance Eclipse is wrong in saying you should close it on line 2 instead 
> of line 7.

I tried removing that---no change.  And yes, Eclipse is definitely wrong,
you know that, I know that, we all know that...but sadly, Eclipse doesn't
know that, and it refuses to recognize that it's wrong.  Until now.
Strange...very strange.

I just did a few undos, got back to what failed a few minutes ago,
and THIS TIME, Eclipse not only built it, it didn't force close, AND I
got what I was expecting on the display.  I'd go back to the older
version, but I'm also working with games and AndEngine, and it doesn't
like the older versions of Eclipse (you know, the ones before it
started crapping out all the time).

This is not the first time I've seen Eclipse fail, fail, fail, fail,
fail, fail, fail, and then build without errors, all on the same bit
of code (sometimes from known-working examples or my own
previously-working code).

I just wish I knew how to skip the repeated failures to build and
go straight to Eclipse working right the first time (like it used to).

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)          | "Now what *you* need is a proper pint of
spooky130u <at> gmail.com      | porter poured in a proper pewter porter
< Running Mac OS X Lion > | pot.."
ICBM / Hurricane:         |    --Peter Dalgaard in alt.sysadmin.recovery
   30.44406N 86.59909W    |

--

-- 
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Graham | 15 Oct 08:18 2014
Picon

Re: insane ScrollView problems

On Wed, Oct 15, 2014 at 11:31:34AM +0530, Anurag Purwar wrote:
> change <LinearLayout xmlns:android=" http://schemas.android.com/apk/res/android" >
> to     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

I had it that way before....here's the error from Eclipse:

error: Error parsing XML: unbound prefix /AndGTbrew2/res/layout main.xml line 2
Android AAPT Problem

Like I said, I spent hours on this on problem, trying everything I could
think of or find in online docs, the dev guide, ScrollView examples,
etc., that might satisfy Eclipse's [whatever is going on with it].
I don't give up easily, but this one has me stumped...severely.

So, back to the same question....anyone see anything?

If I leave off the '>', Eclipse whines.  If I put it back, the app
force closes.....

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)          | "This 'telephone' has too many
spooky130u <at> gmail.com      | shortcomings to be seriously considered
< Running Mac OS X Lion > | as a means of communication.  The device
ICBM / Hurricane:         | is inherently of no value to us."
   30.44406N 86.59909W    | (Western Union internal memo, 1876)

--

-- 
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Graham | 15 Oct 01:37 2014
Picon

insane ScrollView problems

I give up...I've gone through examples (including using my own past code
that worked), and no matter what I try, using ScrollView causes a force
close, claiming that I haven't provided a layout_width parameter (I
have).  In fact, I checked EVERYTHING in the layout file, and nothing
is missing layout_width or layout_height.  And yet, logcat still claims
it isn't there.  It even give me the line number where it isn't (and is)
there.  I have been going in circles on this for hours....can someone
please point out what I'm not seeing?

Here is the layout file (main.xml):

---------------------------  CUT HERE  ---------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" >
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="#000000"
    android:orientation="vertical"
    tools:context="com.jdgapps.andgtbrew2.AndGTbrew2" >

   <ScrollView
      android:layout_width="fill_parent"
      android:layout_height="80dp"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true" >

      <LinearLayout
         android:id=" <at> +id/linearLayout1"
         android:layout_width="match_parent"
         android:layout_height="fill_parent"
         android:gravity="center_vertical|center_horizontal"
         android:orientation="vertical" >

   <Button android:text=" <at> string/newBrewStr"
      android:id=" <at> +id/newBrewView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:layout_alignParentTop="true"
      android:background="#00000000" />

   <Button android:text=" <at> string/openExistingStr"
      android:id=" <at> +id/openExistingView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:background="#00000000" />

   <Button android:text=" <at> string/cloneStr"
      android:id=" <at> +id/cloneBrewView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:background="#00000000" />

   <Button android:text=" <at> string/reformulateStr"
      android:id=" <at> +id/reformulateView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:background="#00000000" />

   <Button android:text=" <at> string/brewToFileStr"
      android:id=" <at> +id/brewToFileView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:background="#00000000" />

   <Button android:text=" <at> string/reportToFileStr"
      android:id=" <at> +id/reportToFileView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:background="#00000000" />

   <Button android:text=" <at> string/reportToTeXStr"
      android:id=" <at> +id/reportToTeXView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="10sp"
      android:textSize="24sp"
      android:textColor="#FFFFFF"
      android:background="#00000000" />

   </LinearLayout>
   </ScrollView>
</LinearLayout>

---------------------------  CUT HERE  ---------------------------

And here is the error I'm getting in logcat:

---------------------------  CUT HERE  ---------------------------
10-14 18:20:42.276 E/AndroidRuntime(19964): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.jdgapps.andgtbrew2/com.jdgapps.andgtbrew2.AndGTbrew2}:
java.lang.RuntimeException: Binary XML file line #2: You must supply a
layout_width attribute.

10-14 18:20:42.276 E/AndroidRuntime(19964): 	at
com.jdgapps.andgtbrew2.AndGTbrew2.onCreate(AndGTbrew2.java:54)
---------------------------  CUT HERE  ---------------------------

Take the ScrollView out, and it works...but only in Portrait.  In
Landscape, it NEEDS that ScrollView.

Does anyone see anything I'm not?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)          | 
spooky130u <at> gmail.com      | BOFH Excuse for the day:
< Running Mac OS X Lion > | 
ICBM / Hurricane:         | Paradigm shift without
   30.44406N 86.59909W    | a clutch.

--

-- 
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nathan | 13 Oct 18:41 2014
Picon

getSkuDetails returns BILLING_RESPONSE_RESULT_ERROR

User reports that he cannot sync up his in app purchases.

This is not in a sandbox or in testing. This is in the real world. Previously purchased items cannot be synched.

I've narrowed down to the fact that I querySkuDetails and get:
BILLING_RESPONSE_RESULT_ERROR=Fatal error during the API action

Various comments about this on the internet indicated that Google Play might time out and return this error if it doesn't get a response from its own server within 20 seconds or whatever.
However, I know of no way to force Google to get their response faster, or anything to ask the customer to do. I did ask him to clear caches as Google sometimes asks.

Apparently this used to work for the customer over mobile but not wifi but now works on neither.


Any ideas?

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane