Android google repository - keyboard - java

guys, I'm looking for the source of the official android keyboard code but whenever I find in the official repositories, it is always with missing classes. I wonder where I can find the source (which is open), this terclado to be able to create and modify it and that works in versions 2.2 to the last.
I want to create an application where I can customize the layout with specific colors, etc. audio inputs and the like.
They could help me? I know it's maybe my question is not appropriate but do not give negative to block my account.
I just want to know where I can get the full source google Keyboard customize for me, but whenever I think, is missing classes at SRC.
thanks

Repos you can use
AnySoftKeyboard.git
LatinIME
A quick and concise google search is all you need to get what I just got. The first one is open source so it should be properly documented. The second one has a weird layout, but I don't use Google Source, so I wouldn't know how well it works/functions.

Related

Is there any way to add Autocorrect to my Android Keyboard?

I am working on an Android Keyboard, and I was trying to see if there was any way to add in Autocorrect into it. Or is Autocorrect provided with the Spelling Checker Framework? I cannot find a clear cut answer anywhere on here or any other place that I have looked.
My code for my keyboard can be found here > https://github.com/MJonesDev/AndroidKeyboardPractice
You can't rely on the Spellchecker framework. It isn't included on all devices- specifically Samsung ones. (Which may be my fault- when I worked at Swype and 4.0 was new, its UI was interacting badly with Swype. I asked them to turn it off by default, they decided to remove it entirely).
Even when it exists it doesn't really provide autocorrect. At best it can give you possibilities, and its then your job to display them, and handle the text correction when one is chosen.
There are various spelling correction libraries out there of different qualities. Its possible to find open source ones to include if you aren't looking to do anything special.

Add a custom file type with java application installation

I am trying to have my custom file type .vrs (which for all intents and purposes is an rich text format).
I am pleased with what I have since I am self taught.
But am having difficulties associating that file with my program so that when a user double clicks it, it automatically open my document editor.
All searches so far have come up with either right clicking and setting the association, but this is not what I would need.
I may not have explained as well as needed so think Photoshop's .psd when you install Photoshop all psd files are automatically set to open when you double click them.
Hopefully I have been clear enough for you to help.
Also whilst the question is regarding Java any resource be it for C# C++ etc, would also be appreciated.
Thanks for your time and any responses.
This functionality is system dependent, and in Windows involves the registry. If you really want to delve into this, take a look at this post, which goes into great detail on how to accomplish programmatically setting a file extension association using C++. If this is helpful, please write back telling us how you solved the problem in your individual situation.
If that isn't helpful I would try this link instead, as it links to more resources and demonstrates a little C# code.

How to create a custom keyboard that looks like the standard one

I am experimenting with custom ime on android. The sample SoftKeyboard app seems to show everything I need except how to make the keyboard look like the standard one (colors, hover effects, sizes etc.).
It seems like reusing resources from the standard keyboard sources could work, but I receive errors when trying to compile them like:
error: Error: No resource found that matches the given name: attr android:layout_alignParentStart'.
Commenting these errors produce lots of other XML errors, like:
error: No resource identifier found for attribute 'additionalMoreKeys' in package 'com.android.inputmethod.latin' key_f1.xml
Is there some semi automatic a way to fix these errors and make them compile?
I have got the sources from here: https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/android-4.4.2_r2
Thanks in advance.
That depends on your purpose.
If you want to create keyboard specifically to any activity then follow below tutorial.
http://tutorials-android.blogspot.in/2011/06/create-your-own-custom-keyboard-for.html
Or if you want to create keyboard that will replace default keyboard in all applications then following answer will be helpful to you.
https://stackoverflow.com/questions/14806087/android-facebook-emoji-keyboard/14826813
As you said you want to change layout of keyboard then read this.
You could browse the android source code: android.inputmethodservice.KeyboardView and
android.inputmethodservice.Keyboard and look for the specific behaviour you want.
The keyboard found in android is open source, along with most of the other packages found in the OS. You can see the code here: https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/android-4.4.2_r2

Control other applications using Java?

How can I control other applications using Java ?
I'm using the Mary Speech Synthesizer(Open source, Java). It can synthesize speech well , but it requires the text to be in a textbox in the application window itself and then a button to be clicked . For this project of mine
the text that needs to be realized is gonna be inbound from another java application . I need to know how I can place the text in the textbox and send a click to one of the buttons in the application .
I'm hoping to figure out a way to synthesize speech from a buffer later on but till then this seems like it's a way to get things working . Also , I'm pretty sure I'll be able to find other applications for this later on and this seems like a very interesting problem ..
Get the other application's API and call its methods accordingly.
If an application does not offer an API to interact with it, there is no simple solution to make it.
However, since the application is open source you can verify what type of licensing it has, and include a part of its source code in your Java application and call it properly.
I think your best option is to find a library that does the text synthesizing. Since controlling another java application required that java application to provide the necessary API for you to access it. As #Edmondo1984 told in his answer you can include the part of the code from the open source application(After checking the licence).

Instructions Package for Java

I want to make a help/instructions page for my Java program but I really don't want to have to go through and program all the frames and searching and such. Is there a package or program that I can just insert the data into and it will read it and create the dialog? I couldn't seem to find anything about it on Google.
It doesn't have to look like this at all but I like having the table of contents and the search at least.
alt text http://www.freeimagehosting.net/uploads/752f287397.png
Thanks
Java help system : https://javahelp.dev.java.net/
The windows help dialog you show is part of the Window Help subsystem. You could easily create a help file for that and launch it from your Java application, but it would be platform specific. If you want to implement cross-platform help functionality, you're probably going to have to implement it yourself, but you could probably do it simply by including a set of HTML resources and using an embedded lucene index to supply search functionalty.
Have you consider using a simple HTML based manual and/or website where all that information may be accessed through?
Pretty much like http://java.sun.com/javase/6/docs/ for instance where you have a main page and you can navigate the topics from there?
If that's a website ( rather than a local /doc directory ) you can have the extra benefit from having a full featured search engine index it for you.
See also: Google is the Help menu
After all, how many times do you use these help systems instead of searching the web?

Categories