TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why is the Android Telephony API so limited (closed)?

12 点作者 gherlein超过 15 年前

3 条评论

desiderata超过 15 年前
Another intentionally crippled API in Android wouldn't exactly be surprising. I run into them all the time as a developer.<p>The initial SDKs had an awesome XMPP implementation that made communicating with programs on other phones incredibly easy. A program could even be started remotely to add a status bar notification that someone is challenging you in a multiplayer game you both have installed, for example. Now there's no public XMPP API at all and you have to include a less integrated Smack API JAR provided by the community. This uses up a lot of the very small amount of data storage space for installing applications and requires you to query the user for user and password information the phone already has anyway. Needless to say the issue thread for this is full of developers complaining and detailing how badly it impacts them and Google doesn't care.<p>Similarly, earlier versions of Android exposed some great APIs for searching for nearby businesses. For example, you could find all pizza places near the user and do something cool with that information in your application. The classes that allowed this were com.google.googlenav.Search and com.google.android.location.GmmGeocoder, but are now inaccesibe. The public GeoCoder class is useless for this. Developers are forced to call the Maps web service, handle all the potential problems and resource issues of opening HTTP connections, and parse XML results when this functionality is already completely written, just no longer exposed. The built in Maps application does this, so Google probably wants to prevent developers from being able to do the same easily.<p>I suppose it is a lot like how Apple rejects apps that "duplicate functionality". Google is trying to cripple third party developers in the same manner, they just do it at the API level.
评论 #814844 未加载
评论 #815057 未加载
davidw超过 15 年前
The source code is all there, so he ought to look at it and see. That doesn't mean it's necessarily very easy to <i>access</i>, especially via the public API, but if he wants to know what it's actually doing, it should be visible at some level.<p><i>Edit</i>: for example:<p><a href="http://android.git.kernel.org/?p=platform/hardware/ril.git;a=blob;f=libril/ril_commands.h;h=de82e70829f5122b2f100a8a824d6bbe089bbae2;hb=HEAD" rel="nofollow">http://android.git.kernel.org/?p=platform/hardware/ril.git;a...</a>
Caligula超过 15 年前
This sounds bazaar. So its not possible to access the audio in and out in android? It is 2am and I should be sleeping so maybe I read it wrong.<p>Android was on my to try list but this is a showstopper. Thanks for saving me some time.
评论 #814807 未加载