Android 中的固件支持
我想知道如何开始添加 Android 的新设备。 假设我有一个新硬件,一个条形码扫描仪,想将其添加到我的 Android 手机中。我该怎么做?我的意思是原始设备制造商如何解决这个问题?他们是否与谷歌有某种形式的合作来增加这项专有功能?
我的理解/方法如下: 1.获取新硬件的固件。 2.与android接口(这是我的疑问,我该怎么做?) 3. 编写一个 Android 应用程序来使用该设备,例如添加新硬件扫描的所有对象的成本。固件向我发送条形码。我在我的 Android 应用程序中收集所有代码,匹配它们的价格并将它们相加。 这个应用程序是用java编写的吗?
问候 阿德
I wanted to know how to start with a new device addition to android.
Say, I have a new hardware, a barcode scanner and want to add this to my android phone. How do I do this? i mean how do the OEMs go about this? Do they have some kind of tie-up with Google for this proprietary addition?
My understanding/approach is as below:
1. Take the firmware of the new hardware.
2. Interface it with android (here is my doubt,how do I do this?)
3. Write an android application to use the device, say add the costs of all objects scanned by the new h/w. The firmware sends me the barcode. I, in my android app, collect all the codes, match their prices and add them up.
Is this app written in java?
Regards
Aad
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己没做过这个。然而,我的理解与你的类似——
您可以首先从 AOSP 获取 Android 框架代码并熟悉它。棘手的一点是让你的更改被接受回官方源代码树中。否则,任何想要使用您的应用程序的人也需要运行您的自定义 ROM。
总体而言,以下是 Google IO 2008 关于 Android 平台架构的演示:
http://sites.google.com/site/io/机器人的解剖学--生理学
我也认为这种问题是可以得到完整回答的。我想一旦你开始你的项目,通过提出更有针对性的、孤立的问题,你会得到更好的建议。
Haven't done this myself. However my understanding is similar to yours--
You could start by grabbing Android framework code from AOSP, and getting familiar with it. The tricky bit would be getting your changes accepted back in official source tree. Otherwise, anyone wanting to use your app, would also need to be running your custom ROM.
For the big picture, here's Google IO 2008 presentation on Android platform architecture:
http://sites.google.com/site/io/anatomy--physiology-of-an-android
I also think this kind of question is way to general to be answered comletely. I guess you'd get better advice by asking more focused, isolated questions once you start your project.