Chinese Yellow Pages | Classifieds | Knowledge | Tax | IME

A working source code of a simple demo of AWS Lambda for Android Phone could be found at:

https://github.com/mingewang/AndroidEventGenerator

Notes:

(1) The above code runs good on the real android phone.

(2) Running on the Android Emulator, I always got the error:

final LambdaFunctionsInterface myInterface = factory.build(LambdaFunctionsInterface.class);

Method threw ‘java.lang.UnsupportedOperationException’ exception. Cannot evaluate $Proxy0.toString()

then it crashed the app in the emulator. what could be wrong?

Get the MD5 sigature for AWS Application console ( Android Settings)

keytool-list-printcert-jarfile app.apk

 

Useful references:

https://java.awsblog.com/post/Tx2J2LPKTTVU93H/Invoking-AWS-Lambda-Functions-from-Java

https://mobile.awsblog.com/post/Tx1OUIR0XJAI3ZM/Building-a-Mobile-Backend-Using-AWS-Lambda

https://mobile.awsblog.com/post/TxR1UCU80YEJJZ/Using-the-Amazon-Cognito-Credentials-Provider

http://docs.aws.amazon.com/lambda/latest/dg/java-wt-user-app-android.html

Leave a Reply

Your email address will not be published. Required fields are marked *