Custom keyboard with popup emoji - android

I want to add popup emoji like google keyboard. My problem is how to make half screen activity to showing popup screen and how to use it in my class that extended from InputMethodService implements KeyboardView.OnKeyboardActionListener.
I used emojicon library from github.
If i want to use this github project how to download respective jar file?

Instead of jar you can add the https://github.com/ankushsachdeva/emojicon/tree/master/lib as an Android module to your application and can use it in the same way as shown in sample app https://github.com/ankushsachdeva/emojicon/tree/master/example
It allows you to keep track of the library project code. In future, if you ever wanted to do some change in the library project, you can do it easily.
If you want you can generate the jar file on your own from the library project.
Please check:
How to make a .jar out from an Android Studio project

Related

Why the Softkeyboard example doesn't work?

I want to create a custom keyboard for android.
So I am starting from the official softkeyboard example.
So I have downloaded it and I have opened it with Android Studio.
But as you can see, there is no way to Run it ( the play button is grey instead of green ):
What do I have to do ?
This is not my first app, I have developed other simple apps that work perfectly.
there is no gradle file in that project so you cant run... create new project and copy your classes

Can i create an android application as template?

I'm not sure if its the right title but ill explain what i mean.
I'm making more than one android application, but they have the same structure
sliding menu , list view , about me , costume dialog with (copy,share,like)
with some modifications in the styles (colors, backgrounds , fonts , menu strings )
my qustion is : is there any way to use the structure as library or implemntation or anu other way
insted of coping the same codes in every projects ?
Basically what you want to do is to create an Android library. Just develop it like a normal application, with Activities and layout.
Please follow this tutorial to set up your project. http://www.vogella.com/tutorials/AndroidLibraryProjects/article.html
When you'll create a new project with the given library, all your code will be silently included and you'll get access to your Activities and even to your R class.
Try Android studio - Official IDE for android development. Simple to use.
There is an option to save your project as template. Tools > Save project as template
For eclipse I think you need to write plugin https://stackoverflow.com/a/4992150/3020568

How to make a phonegap project as library in android?

I have already created an phonegap android project and it is working fine, now i would like to create same kind of project againg. Might it would be more than 5 apps, so i thought making it as library.
I have make the project as library and created a new project with different package name. Change the launcher activities name to the libraries launcher activity name. But now the issue is application error is happening, cannot load the index.html file.
So i think the way worked on is not the proper one, can anyone please help me to solve this problem.
you have to assign your initial android project as a library. right click the project, pick properties, then go to android, tick the "is library" box and apply
For your new projects, you need to "add" the project before as your library as the image above

How to add an icon from the android library to my project using ADT

Android has several system icons available, such as these.
I can't use them in my application (for system notifications as an example) since they are not made public within the API. So I would like to add them to my project in eclipse using ADT.
Is there a way to do this automatically? For example, when I start a new android project, it allows me to create an icon for my project, and creates it in all sizes and places them in the correct resource folders. I'd like to import other icons from the android library the same way.
Thanks.
From what it says here:
NOTE: Some of the images in the Android jar are not public and
therefore cannot be directly used (you can copy them to you own
application, but can't reference them via the "android" package
namespace). This project does not distinguish between what is public
and what is not. If you try to use an image that is not public, you
will get an error indicating that fact.
So it seems that the way to go is to copy the icons to your project, as Android won't allow direct access to them.

Using third party libraries in android project

I am just starting off with android and have been googling high and low to find any tutorials/resources that could answer my beginners questions.
How can import a third party resource into my project and start using it?
For example, i wanted to use scrollableTabActivity, a widget that's available at https://github.com/honcheng/ScrollableTabHost-for-Android. I have downloaded and it looks like it is a project by itself. How can import into into my project and start using it?
This is the case of even projects like droid fu, for the life of me i could not figure out how to add them and start using in my project.
I did successfully added asynchttp into my project cause there was .jar download available. But for projects like droid-fu or scrollableTabActivity, how can i use the source files to add the functionality into my project?
Any help is highly appreciated
Thanks
Add the projectyou downloaded to you workspace.
Right click on it, properties, Android and be sure the Is Library checkbox is checked.
Then in your project, right click, properties, Android and click on add on the bottom right to add the previous project.
The project you refer to actually contains a lot of demonstration code which shows you how to use the ScrollTabHost control in your app. Rather than trying to include this stuff which will just bloat your app, simply copy the ScrollTabHost.java file in to your project, along with any resources upon which it depends.
I agree with Mark Allison's answer. But generally speaking to import a whole project in Eclipse, check the box next to that third party project name on the Project References tab in your project Properties.

Categories

Resources