I have few questions:
Is it possible to create an Android App with Java and setup all
myself?
If yes, what are the important things, that must a App have?
Is there a tutorial?
If someone want know why:
I want to understand all exactly and want to have the full control.
The Android SDK with eclipse have so many features(For the first small projects too many).
In the best case I want only link the Android library jar, but I think its not so easy and there are a few Mord things Like the App manifest ...
I hope someone understand me and can help me.
I want to understand all exactly
I doubt that there is anyone on the planet that understands it all exactly.
Is it possible to create an Android App with Java and setup all myself?
I do not know what "with Java" means here. Based on the rest of your question, I am interpreting this as:
Is it possible to create an Android application project without an IDE?
In that case, you are welcome to:
Create a project using android create project, designed to be built with Apache Ant, or
Create a project by copying an existing project or downloading a bootstrap project, then use android update project to create the Ant build files
If yes, what are the important things, that must a App have?
The android create project command will create a complete "Hello, world" application, ready to be run.
Is there a tutorial?
I will settle for pointing you to the documentation for creating and building projects on the command line, in hopes that perhaps that is what you are referring to.
Related
I am working on an Cordova Android app. As part of the app, I wrote some Java classes to create a service using WorkManager to poll our server and send a notification to the client on certain events.
Right now the code is invoked through MainActivity.java, where I create the worker, and all of the classes sit in the Java folder under the Android Platform directory. My understanding is that this isn't ideal since my code will get dropped every time we want to reset the platform.
What is the right way to add this code to a project and is there a tutorial that I can follow? Should it all be a plugin?
Thank you in advance.
You should definitely refactor your code into a plugin. Check out the doc here
You can make your plugin for Android only as well.
I would recommend too, to clone a very simple plugin and check out the code.
This question already has answers here:
Is there a way to get the source code from an APK file?
(32 answers)
Closed 6 years ago.
My friend and I are building an android app for an FBLA State Leadership Conference Competition.
We used MockingBot to create a "blueprint" for our app, and planned on using Android Studio to replicate the design & make the app functional.
We downloaded the Android APK file from MockingBot. Instead of re-making it on Android Studio, is there a way that we can extract the Java & XML Files from the APK, and put them into Android Studio to complete most of the XML work, then tweak it from there?
THANKS
You'd normally be able to do something like this with a number of tools. apktool and dex2jar are good, jadx is a great all in one solution too. In this case, it looks like MockingBot uses Cordova to generate your app, meaning there is almost no real Java/Android code to decompile. It is essentially a web wrapper so you can build cross platform apps.
jadx will still allow you to extract everything from the application, but it might not be easy to reconstruct. I would suggest checking out Apache Cordova, or another project that implements it, such as Ionic if you intend on going this route. If you do, I also suggest using an IDE better for web developing. You can still use Android Studio, but vanilla Intellij might make your life a little easier.
Assuming MockingBot didn't use any Cordova plugins, you can simply unzip the APK and use what falls under the assets/www directory to start customizing your app using Cordova.
Edit: Because I can't comment without at least 50 points... This actually isn't a duplicate as was already suggested. The question might seem similar, but web wrapped applications are very different from those built using Java and much easier to decompile/reverse. The answer linked in your comments will very likely not help you.
I'm trying to begin programming with libgdx (in Windows XP with Eclipse for JAVA - Android) but, as every begining, nothing is clear and every doubt is a big problem.
I have found some tutorials about how to begin to programming with libgdx, but every tutorial found says the same: you must create a PC project for compile the native JAVA code and then create another project for Android who needs the PC project.
It's possible to do it in a easier way (all in only one Android project)? If it's possible, how? It would be really slower? I run my Android projects in my device (a Motorola G) and it seems pretty fast.
All (kind) responses will be appreciated. Thank you.
Are you using the project generator? http://code.google.com/p/libgdx/wiki/ProjectSetupNew
You could use that and simply ignore the non-android projects it creates ,even delete the other ones you don't plan to use (not the main java one though) and run it via an android emulator/device.
You will probably still have to keep the main java project, libgdx is geared towards people that want to compile to multiple devices.
It's been over year since i've used libgdx and i don't recall this being one of the issues i had with it.
The easiest way I find is to actually just put a main method class in your libgdx project. I have a wrapper project for android that invokes my libgdx project but if you look at the example in superjumper source in github you can see they just put a main method class within their libgdx project.
The android project then just delegates to this project.
Consider though, if you do run it directly from a project, you'll need to code in keyboard cursor keys which is pretty easy, you can follow the superjumper example here line 138.
I'm working on a server backend component for an app, and one goal is to log all the messages transmitted through the app (using MQTT). To do this, I wanted to use the app as a library of sorts so that I could use the objects defined within to parse the messages coming through, since none of the messages will be transmitted as standard types. I'm using IntelliJ for the Java development, and Android Studio for the Android development. Is this possible? I was previously able to import the code as a module, which let me use the types defined within, but when I went to build the project it tried to build the Android code as well and failed because IntelliJ hadn't set up Android dependencies. Should I try and set the Android SDK as a dependency in the app module, and then build? Or am I approaching this the wrong way? (if it's even possible) I understand that there are also Library projects which looks like a possible solution, it would just require re-factoring all the applicable code out to a different project and I was hoping that wouldn't be necessary.
Trying to import the entire Android app as a library into a different codebase probably isn't going to work; you don't want a non-Android app to have all that Android code linked in, and with resources and the whole environment it will be tough to get it to compile at all.
A better approach would be to take all of the code that needs to work cross-platform and distill it into a plain Java library that you can include in multiple contexts. On the Android side you could include it as a plain Java library project, or compile it to a jar and include the jar.
There are a lot of solutions for creating an app online like http://www.theappbuilder.com.
How do they build these apps? Is there any example source code to look at cause these tools are all over the internet?
This app builder uses Webview, set to full screen what shows HTML5 page that you can make with this tool. I think it might be possible to see some code. These kinds of tools are helpful for some easy apps, if you want full control and make something more complicated you will need to use Android-sdk or some other hybrid sdk-s(appcelerator, corona-sdk, adobe flash buider and so on).
You can use Ionic for that, i have similar project that i am working on right now since ionic is built in top of angular and html and produce /www folder for you and you can simply use command ionic cordova build android to convert to the apk, if you want it to run on server you can call those command using php exec() command.
In a comment above, you ask about open source alternatives. Take a look at something like PhoneGap. It is close enough that it should give you an understanding of the general approach.