将 RatingBar 连接到 sql
connect RatingBar with sql
我在我的 android 应用程序中添加了 Rating Bar,我想
(when any one rating course in my app its store in SQL file and
then the rating Bar show the new stars )
并使其 在线 (当人们从 google play 下载应用时显示新评级,当他添加他的评级应用时显示新评级等...)
我该怎么做?
如果您想访问 SQL 数据库,则需要使用 JDBC。 https://www.tutorialspoint.com/jdbc/index.htm
您需要为数据库获取主机,以便人们可以在任何 phone 上使用该应用程序。设置数据库和所有 JDBC 代码后,应该有一种方法可以使用数据库中的数据自动填充评级栏。
如果要存储用户 phone 的评分,则可以使用 SQLite 而不是 MySQL,并在用户 phone 上创建数据库.这意味着您不必获得数据库主机,但也意味着没有其他人能够访问数据。
我在我的 android 应用程序中添加了 Rating Bar,我想
(when any one rating course in my app its store in SQL file and then the rating Bar show the new stars )
并使其 在线 (当人们从 google play 下载应用时显示新评级,当他添加他的评级应用时显示新评级等...)
我该怎么做?
如果您想访问 SQL 数据库,则需要使用 JDBC。 https://www.tutorialspoint.com/jdbc/index.htm
您需要为数据库获取主机,以便人们可以在任何 phone 上使用该应用程序。设置数据库和所有 JDBC 代码后,应该有一种方法可以使用数据库中的数据自动填充评级栏。
如果要存储用户 phone 的评分,则可以使用 SQLite 而不是 MySQL,并在用户 phone 上创建数据库.这意味着您不必获得数据库主机,但也意味着没有其他人能够访问数据。