Android L App Drawer - android

I am quite new to android development, and have been trying to design an app..
Can anyone tell me, how do I include github projects into my app??
https://github.com/ikimuhendis/LDrawer#download
This is the perfect example of what I am trying to do. Can anyone please guide me, by a step by step process, so as to how I can make a fully functional apk from this?
I already have a project, with a working Google Map fragment, on top of that, I am trying to include this type of action bar.
Can anyone help me?? I am a complete newbie and I would appreciate it very much..
Thanks!!

if your using Android Studio add this to you build.gradle in the dependencies tag
compile 'com.ikimuhendis:ldrawer:0.1'
compile 'com.android.support:appcompat-v7:21.0.+'
if your using eclipse down load the the source as a zip and import the library folder form the downloaded file in you current project as a android library.
if can post you code i can help you with it.

Related

Native android library compile

I want to compile these code to be android native library. I have tried many techniques and follow many online example and it doesn't work. I will provide the link to the code and explain which part I want to compile.
This the link https://github.com/zyq8709/DexHunter (I want to compile the code in folder called dalvik). If anyone knows how to compile it please help me. thank you
This code is a part of platform build. If you are lucky, you can compile libdex for device only, but you must ignore the host side. The easiest hack would be to run
ndk-build BUILD_HOST_STATIC_LIBRARY=/dev/null BUILD_HOST_EXECUTABLE=/dev/null
Final, I have found the solution to compile the above code. I downloaded whole android source by using Ubuntu 16.0.4 and then I modified the specific file which it was changed and replaced it. After I compile whole all the android source code. Finally, I could get a customized ROM which I could use it as I expected. If anyone interested how to download and compile whole the android source code you can follow this link https://source.android.com/setup/build/requirements. If you have any problem you can find the solution on google or you can post here so someone including me will respond.

Error in MainAcitivity.java file & no style are loading

I am new to android. I am creating an android application, but there are many errors showing in MainActivity.java. Here is a screenshot
Another problem is that no style in showing in activity_main.xml. Here is the screenshot
Although I have added appcompact_v7 jar file like this
But it's not recognizing it in android option of project propertise
I have installed Support library in SDK manager. Please tell me how to solve this problem?
It is really hard to say what is wrong there. here are some things that you should try:
first of all, there are errors in your xml file (activity_xml). Please check if xml is properly formatted and you are using right tags. For debugging purpose, please make your acitivity_xml an empty FrameLayout and see if it works.
Include android 6.0 into your build path. Clean the project and try building again. Make sure your layouts are error free before doing that.
Your eclipse is unable to detect referenced library at given location. Please make sure referenced library is at same place and ERROR-FREE. If library has error, your project won't include it.
Please solve all problems one by one. First make an error free xml, then a Hello world Activity. Run it on device or emulator. Once done, try to solve library and import problem now.
Best Suggestion: Please migrate to Android Studio and gradle for better support and learning.

How to add "dlew/joda-time-android" library to Android Studio

I'm using joda time (version 2.8.2) library in my project and everything works fine, but I'd like to use the specialized version for Android, as explained here: dlew/joda-time-android
While it was easy to add the joda time jar to Android Studio and adding the dependencies to the project, I didn't understand what to do in this case.
What do I have to download, where to put it and how to configure it.
Is there someone who did it and can write a step by step guide?
Thanks
Message update: I don't know why the question got two downvotes. I researched on Internet before posting the question. I also tried to contact the developer who posted the library on github. I didn't find an answer and it doesn't seem to be a stupid question, because I'm not getting tons of answers. I know I'm not an expert and for this reason I'm askingfor help, but before doing this, I always try to find a solution by myself. Thanks
Add this to the build.gradle file of your app:
dependencies
{
compile 'joda-time:joda-time:2.9.4'
}
In Android Studio Choose File>Project Structure. Then click dependencies tab in project structure. Click the + symbol (upper right corner) and choose library depencendy and type net.danlew in search bar. Click on net.danlew:android.joda:2.9.9 (current version as of today) if not already highlighted and then choose OK.

Importing and using a library in android studio

I am using android studio to import this project called https://github.com/Pixate/pixate-freestyle-android. However when I import it into android studio the folder under samples, freestyleshowcase doesnt seem to build. The other 2 samples buld correctly. There is a red circle around the java file with a J (error) but there is no error in the file itself. COuld someone please help me out?
You are obviously missing some libraries but it is going to be hard for anyone to tell you which since we do not know the libraries the project needs.You can try Build-->Rebuild Project or Build-->Clean Peoject if it still doesn't work, close and open Android Studio.
If that doesn't work also then you have to go the hard way of identifying the libraries need by the project samples you imported and see if you have them.
When in doubt, you can try the Library Dependency option (using Maven) as demonstrated here:
https://www.youtube.com/watch?v=6BUcx9gGQ3o
That way, you won't have to manually edit the build.gradle file.

how to use JakeWharton-Android-ViewPagerIndicator in intellij?

Hi there I am just newer in android development and I am trying to build my first app and I do will until now.
but I need to use ViewPagerIndicator so I do my search and I've found JakeWharton-Android-ViewPagerIndicator also I am using inellij IDE
but the problem that when I want to add this library into my project I can't find the jar file and I don't know if the error from my side or what please any help.
regards
You will need to create a new module with the library sources and add it as a dependency to your main module. This answer has detailed steps you can follow. Just replace the library used with ViewPagerIndicator.

Categories

Resources