mobile backend starter import to android studio - android

This is my first post in StackOverflow.
I am building an android app using Android Studio. This app requires some cloud backend to sync user data across devices. After some research, I came across the Mobile Backend Starter from google which provides a fully deployed app engine backend and a client android application.
The problem is that every video/tutorial out there is using Eclipse to open this client application. When you try to import it to Android Studio, you get an Assertion:Null error.
Another step I tried is that, I opened it in Eclipse, followed google documentation to set
And then tried to import to Android Studio. This time I got an error that the "The filename, directory name, or volume label syntax is incorrect"
Can someone help me out with this? Is it also possible to use the "Generate Mobile Backend" option in android studio? But wouldnt this mean that we cannot leverage the client libraries provided in Mobile Backend Starter?
Edit (to add more details to the question):
If I use the "Tools > Google Cloud Tools > Generate App Engine Backend" method, will I be able to get all the boiler plate code in the Mobile Backend android client?
Also, I tried today to Generate App Engine Backend and point to my existing Mobile Backend Starter app engine project. But this did not bring in end point connections for mobilebackend api. Am I missing something here?

Yes there is an option in Android Studio also for Generating App Engine Backend.
Tools > Google Cloud Tools > Generate App Engine Backend
Here is a nice tutorial on Android Blog for the same
http://android-developers.blogspot.in/2013/06/adding-backend-to-your-app-in-android.html
But look in to this post before doing this as Google App Engine Back-end still uses maven so you need to install that before using it.
Maven needed when generating Google App Engine backend in Android Studio

This is an old question but for those that come to this now the easiest way to get started is with this unofficial build for android studio. Why couldn't google do this themselves?
https://github.com/thagikura/mobile-backend-starter-android-client-with-AndroidStudio

Related

Integrate cordova based android mobile app with google analytics property 4

Steps to set up a new Analytics link
Integration source
we followed above mentioned steps successfully for android app build using cordova but not able to reach 5th step.Am I missing something here? Suggest any other approach to track mobile app activity using google analytics4 property.
we used cordova to build mobile android app.
Above steps maybe for native mobile app only or in case of cordova based build will need plugin to support integration of google analytics.Any leads appreciated .Thanks

How can I import/open the Twilio android code in the same Android Studio where I already have the ionic and capacitor code opened?

I have Ionic and Capacitor code imported opened in Android Studio. I am trying to open Twilio SDK in the same Android studio. But it's not letting me do that and the Twilio SDK is opening in a new Android studio. Am I missing something?
Then only I can integrate them right? Is my understanding correct?
I am trying to do the following in android studio:
import com.twilio.rest.api.v2010.account.Call;
It says "cannot resolve symbol twilio"
Twilio developer evangelist here.
The Twilio Java SDK is not intended for use within Android applications and will not work.
Further, you should not make requests directly to the Twilio API from an Android application. To do so you would need to either store or retrieve your Twilio account credentials within your application. A malicious user could then extract the credentials from the application and use them to abuse your account and spend your credit.
Instead, we recommend you build a server application that your Android app can use as a proxy to the Twilio API. Check out this blog post on how to send SMS messages from Android with Twilio to see an example.

AWS Android Project Sign on

I just tried AWS for the first time to build a basic hello world android app with user authentication and I seem to be missing something critical. I worked with Android apps before so I have all the software setup there plus AWS CLI installed I created an android project in AWS Mobile Hub, created user pool, I configured signon/register add on in my new AWS project and I clicked on Integrate button but I'm not sure what's next. I saw on youtube some people had build and test buttons that they used to generate Android Studio project on a menu on the left, I'm not seeing any of that, how can I build a skeleton project in AWS to download so I can finalize it with Android Studio? Any help would be appreciated.
Thank you
Here is a link which teach you step by step on how to build a skeleton project in AWS https://github.com/aws-samples/aws-mobile-android-notes-tutorial/blob/master/tutorial/analytics.md.

App engine cloud endpoints backend and android in the same maven project

Can I create app engine cloud endpoints backend project for my android application, so that I can manage the server and client library code in the same maven project?
Currently I have an android project in android studio, but I want to add a cloud endpoints backend to it. Dont want to manage 2 separate projects in git for these.
You can add the cloud backend using Android Studio itself. It is quiet straightforward!You need to add App Engine first to your package and then generate end points. I have tried it and it works perfectly fine.

Mobile Backend Starter Java - on Android Studio

Has anyone managed to extend "Mobile Backend Starter Java" on Android Studio
https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java
Frustratingly any documentation that exists seems out of date or only for Eclipse".
I want to use Gradle and not Maven , Android Studio and not Eclipse
I followed the Tutorial
https://developers.google.com/cloud/samples/mbs/
but the extend page left me confused
https://developers.google.com/cloud/samples/mbs/extend_backend
I would like to know if anyone has tried this
I thought about going from the other direction creating an app and then Google Cloud Tools and App Engine Backend with Google Cloud Messaging but I do not see a deploy , I did see this, Deploy Google App Engine backend from Android Studio
but have not tried yet
There is a project on GitHub which you can use as module. It provides you with the basic client libraries. You can use it as starting point. See https://github.com/thagikura/mobile-backend-starter-android-client-with-AndroidStudio and follow the instructions there.

Categories

Resources