使用 android API 为 Android 应用程序创建 Web 前端. [英] Creating a Web frontend for Android App using android APIs.

查看:26
本文介绍了使用 android API 为 Android 应用程序创建 Web 前端.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

预先感谢您回答问题.

这是场景,我想要一些关于如何进行的指导建议.

Here is the scenario and I want some suggestion of guideline how I can proceed.

我有一个用于音乐流媒体的 Android 应用,具有以下功能

I have an android app for Music streaming with following features

  1. 当然是音乐流
  2. 创建播放列表
  3. 用户登录/退出
  4. 按专辑或艺术家或流派 FM Radio Streaming 等类别搜索
  5. 推送通知
  6. 均衡器等.

我还有一个在 Ruby on Rail(Mysql 数据库)中创建的后端,用于音乐管理,例如添加歌曲、流派、专辑和艺术家.它还处理发送推送通知等.

I also have a backend that is created in Ruby on Rail (Mysql database) for Music management like adding songs, genre, albums and artists. It also handles sending push notification and all.

现在我想创建一个 Web 前端,让用户通过他们的笔记本电脑或台式机欣赏歌曲,这样我就可以让我的用户灵活地播放歌曲,查看他们在 android 设备上创建的播放列表.

And now I want to create a web frontend for users to enjoy the songs through their laptop or desktop so that I can give my users the flexibility to play songs, view playlist that they create in android devices.

这里是主要问题:

如何创建前端以使用我的 android 应用程序正在使用的 json api,这样我就不必为网站创建另一个后端.?如果可能,请告诉我.

How Can I create the frontend to use the json api that my android app is using so that I dont have to create another backend for the website.? Let me know if its possible or not.

如果无法使用 json api,那么我该如何继续以避免另一个后端工作?

If not possible to use the json api then how can I proceed so that I avoid another backend work?

推荐答案

当然有可能.将 json 字符串作为 URL 参数传递给 Web 服务.

Sure it's possible. Pass the json string to the web service as a URL parameter.

这篇关于使用 android API 为 Android 应用程序创建 Web 前端.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆