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
Related
I have the need to add the support for a DSL(domain-specific language) to the android studio. What I want to achieve is an extension recognized and syntax highlighting and at the moment of the creation of the new project set up the necessary files for the environment.
Looking around the web I haven't found a good way to do this. I have thought about some solutions but I can't figure out if these are realizable.
Solution 1:
Modify the standard Android project wizard maybe adding a checkbox that set up the environment for the type of language like the image below.
https://imgur.com/HiIqlsI
I think this is probably unachievable.
Solution 2:
Once I created my default Android project add in the right mouse button click menu an option to set up the environment for the project.
Solution 3:
Create a custom wizard project setup just for my language.
I don't know if it's possible to do a similar thing in Android Studio. Any help is appreciated
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
Im new to programming and am trying to make a game for Android. When I try to make a new Android Application Project, it lets me fill in the form and everything but when Eclipse is creating the project, I get this error: https://gyazo.com/1b875ce753ccf2aab85359b567abdba5
you need to import appcompat-v7 or check this video
updated - another option - not use templates when create new project: means doesn't create activity, and ect via constructor. in this case you need to create it manualy. guess it simpliest that switch off appcompat.
btw. is better to use Android Studio, as for ex. latest adt not supported by eclipce
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
When I first started a project in Android under eclipse, I am able to access the Graphical Layout designer, so I fast can design my application. But when I create a new XML file in order to add components to another class I can use this feature, how can I fix this?
Sometimes when you have a project with, fore example, 2.1 with google apis the editor dont work property. Delete the google api and try other time