简体   繁体   中英

Connect Android app to Heroku db

I recently created an iOS app using Heroku as the backend server. I want to be able to create the same app in Android using the same information in Heroku.

Any ideas as to how i can do this? I have researched and i see a lot about creating an API (which i am new to android and not sure how to do this).

I downloaded the Parse Starter Project and in the StarterApplication.java, according to Parse.com, you place the appId and key in the Parse.initialize() but what about the server information. Confused!

在此处输入图片说明

With parse server you initialize like this:

Parse.initialize(new Parse.Configuration.Builder(context)
                .applicationId(appId)
                .clientKey(null)
                .server(serverUrl)
                .build());

Not sure if you need the clientKey(null) part, I'd try without that first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM