Combine 2 android apps - android

Experts,
I am having the source code of 2 android apps which have been separately developed. I need to combine both of them as a single application so the output would be a single apk file. Let me more specific.
App 1: Shop list app -
App 2 Calculator app.
using a button click in the App 1 I would want to call the second app Calculator. I have researched on Internet and I am seeing some suggestions like library project etc.
Anyone who has some idea on the feasiblity, please throw some ideas on the same.
Thanks,
Harry

output would be a single apk file.
Then use as a library project.
Check this may help you
Setting up a Library Project
Referencing a library project

Open Eclipse-> right click on your project-> Build Path -> Configure Build Path
Go to "Projects" tabs on Top and add new project which will install two apks of the curernt project and the depends project that you just added.
It will do the trick for you.
Thanks

Related

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 display the documentation for the support libraries inside Android Studio?

When I use the command 'Quick Documentation' in Android Studio in a class that comes from one of the support libraries (e.g. ActionBarActivity), the IDE does not show the documentation for the class. If I use it on one of the classes from, say, the Android API 19 (e.g. Activity), the IDE displays the complete documentation as is shown in the reference page on https://developer.android.com/reference/packages.html.
Is there any way to add the documentation for the support libraries to Android Studio so that they can be accessed through 'Quick Documentation' as well?
When Android Studio has opened the decompiled jar class, click on "Download..." blue link at top right, this will download jar with javadoc and save it in :
/.ideaLibSources
rebuild project if necessary, now doc is available.
Tested on android studio 2.0 preview 4.
If you are not using Gradle, this will be easier for you.
Go to File -> Project Structure. From there, on the left-hand side, select Libraries. Select the library you want to add source/java-docs to, then click the plus at the bottom and add the source and/or java-doc jars. There's a chance AS will automatically know what's what.
If you're using Gradle, more than likely in Project Structure, you won't see the Libraries tab, and I'm sorry but I don't know how to help from that point. If you use Gradle, AS detects that and takes away "unnecessary" options. Sorry to send you searching again, but I know there's something called a .properties file for jars that tell the source and java-docs, but I haven't implemented it. If I can find the page that told me that information, I'll update this.
EDIT: The answer is here. This should help you out.

Combining android packages into single project

Friends I have 3 android projects in eclipse say App1, App2, App3 and i want to combine all these into another android project say AppStarter which only has buttons to start the main activity of each of those 3 projects. So how can combine all the files of App1,2,3 under AppStarter and what changes do i have to make in android manifest of each project?
Don't refrain from going into details, I am really confused. Although pointing me to right way is also helpful.
Simplest way to do what you want is to use App1,2 and 3 as Android Library project and link them to your main project. All what you have to do this is HERE.And there you can find something helpful about library project.
It's just few mouse clicks.

How to call a project in another one by clicking a button (Android_elcipse)

Good day everybody ,
I am making a virtual market by android , i make to projects (MAP) , (QR scanner)
but how to integrate them together in one application ?
I need to make 2 buttons in the layout , one of them calls the QR scanner by clicking on it , & the other one calls the Map as well.
so what should i do in steps, please :)
Thanks in advance.
You need to understand the concept of intents. Check out these links...
http://developer.android.com/guide/topics/intents/intents-filters.html
http://ashwinrayaprolu.wordpress.com/2011/03/17/launching-different-applications-from-android-activity-using-intent/
Go project Properties of this two project and set as a Is Library project then go your final project properties in Is library option add this two project then you can able to access this two library project all class and activity.

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