How to add additional drivers to android stack - android

I need to customize the android source code to add another secondary display for the device (this is the requirement). Hence i need to integrate the secondary display's drivers into the android stack and also add some libraries to the android stack using which the secondary display can be controlled. The driver code is readily available, so i only need to integrate it with the android stack. As i have never worked with android source code i hardly have any idea about how to proceed. Also there is no tutorial available for any kind of guidance for the same.
So far with the help of this site I'm able to setup the environment using the instructions given here: http://source.android.com/source/downloading.html
I should perform the integration on jelly Bean, so have downloaded JB source code.
Now proceeding towards integration of the drivers i have no idea how to proceed. Please provide some tutorials or useful links to do so.
Thanks in advance.

Related

How to make a voice assistant android apk offline?

I want to make an android project that can understand my voice command and can response with voice.So, are there some api or frameworks? If not, how do I analyse and translate that voice?
Stack Overflow is probably not the right place to ask for an advice, but let me answer you. CMUSphinx is probably the most popular free speach recognition library, working offline. I haven't used it, but I hope it's going to help you. Then you need also text-to-speach library working offline, so take a look at this catalog - https://android-arsenal.com/tag/100 . If you don't find a library, you can have the code of an open source project like Android Mary TTS and reuse whatever is necessary.

Debugging with AOSP

I am new to Android system source code. My issue is that while debugging using Android Studio, the control goes to the wrong location in the source file while I step into it, i.e., it goes elsewhere in the source file, not to the method it should have stepped into. I know this issue sounds really silly, but has anyone else encountered it?
Also do you have any recommendations on how I would go about learning how the control flows within the Android system? I could not find many blogs on this topic (nor many questions and answers on StackOverflow about this either), and the Android documentation is not really helpful. I did download and build AOSP, but not sure where to go from there. Any pointers would be helpful!
Thank you in advance.
Debugging android framework libraries or native applications like surfaceflinger is tricky. The documentation on android site leaves lot of details to imagination.
Please start with Debugging Android Framework applications link to understand how to organize your source code, eclipse setup etc. The other articles on that site go into debugging of native applications as well as native libs loaded by Java applications. I suggest start there to save yourself lot of time.
For Android open source project you can see this link https://source.android.com/source/downloading.html
For Access online source you can see this link http://androidxref.com/ it is very good for explore ASOP.
I am Embedded android developer . you can ask me any question related to ASOP on stackoverflow.

Remove unwanted packages from downloaded android source before build

I have downloaded Android 4.0.1_r1 source code to my local system. I'm working to understand building own custom Android ROM and modify it according to my requirements.
I went through a number of web based tutorials on how to build custom ROMs for Android and I am clear with the overall process. What I'm essentially looking for is a well defined structured way of removing packages that are downloaded along with the source code but not needed for my own version of the build.
Additionally, it would be helpful if someone can provide me links pointing to building android source (guides,books or tutorials) as most of the available resources are based on creating Android APPs using Android SDK and the application framework. Its difficult to find any decent indepth tutorial explaining the entire architecture , source tree and different build guidelines for platform level developers.
This is a good book, but it's not officially out yet (you can get the first few chapters only).
There is no real documentation, but if you hang out with CyanogenMod forums/IRC long enough you can get some insights. You can also ask questions on the official Google Groups, android-porting and android-platform should be helpful. Reading XDA can be helpful too, if you can filter out all the noise.
Generally, the whole thing is quite complicated, and there are parts that are device specific. The only thing that you can remove more or less safely without modifying things (much) are the bundled user-level apps (Calculator, etc). Even some of those may provide some system-level services, so you should watch out.
In short, buy the book, read the groups and ask more specific questions, like 'how do I modify X in order to do Y. I tried Z and it didn't quite work.
In addition to the answer, this is the closest I got to find a suitable information for modifying packages in the source code before building. It also has a decent information for memory optimization.
http://processors.wiki.ti.com/index.php/TI-Android-ICS-MemoryOptimization
For removing packages please refer to the section
Run Time-Volatile Memory Customization
subsection - Customizing Android Product Package
The article pertains to Froyo , but the concepts are pretty much the same Android 4 ICS.
I have added this for anyone seeking reference material on the same.

Easy looking at Android source code without downloading full code

I want to modify say MediaRecorder class for example. And I want to show at full source code of it.
Where can I get source code of standard classes?
See http://source.android.com/
Here [at the link above] you can find the information and source code you need to build an Android-compatible device.
Android is an open-source software stack for mobile devices, and a corresponding open-source project led by Google. We created Android in response to our own experiences launching mobile apps. We wanted to make sure that there was no central point of failure, so that no industry player can restrict or control the innovations of any other. That's why we created Android, and made its source code open.
Easy looking at code without downloading full Android source code

android, zxing, styling the response

alright so I've searched for quite sometime on this and I can't seem to find just the kind of answer that answers my questions...so here goes nothing! And mind you, I'm new to android dev soooo I may have stupid questions that some of you may get irritated at, but we all have to learn some how right?
I'm trying to develop an application that will allow users to scan in a QR code and then display the information that is encoded into it in a nice organized way.
It seems like ZXing doesn't like the idea of integrating their code with other applications e.g. you have to use their application from the market and point to it via intents... well if I do it this way, can I decode the contents so that I can have access to the content and do as I want with it?
What would I have to include in my project from the ZXing folder that I downloaded to make it all work? And would I have to build all of the objects with in that folder in order to use them in my project?
Any help would be greatly appreciated. Thanks!
I have decided to go other routes.
The "Android way" is to do everything via intents.. However, zxing is a special case. You can follow the intent route, or you can (as it's apache licensed), download the source code and adapt as necessary. We did that for the game Barcode Beasties ( mandatory self promoting download link here : https://market.android.com/details?id=com.fawepark.android.barcodebeasties ) and that meant we could also brand the scan page as well.
If you want use the software integrated, then just download the source and either compile it as a library or just include it in your source folder as another folder.

Categories

Resources