I've made some edits to the code of the Android keyboard (here: https://android.googlesource.com/platform/packages/inputmethods/LatinIME/). I'm left with the folders and files: Android.mk, CleanSpec.mk, common/, dictionaries/, java-overridable/, java/,
native/, tests/, tools/.
How can I now build this as an APK I can put onto a device? I've read Google's build instructions (https://source.android.com/source/requirements.html) but I'm really unsure how to do this still. Could someone provide an idiot's guide to it, for me?
Enter the path of the Android.mk file, run mm. Checking the output and you will find the apk is in somewhere in out/target/product/...
Related
I'm new to Java coding and to Android studio. After selecting to create a new project, I select the option "Empty Activity" and then Java as the language. I essentially follow all the "newby" steps, as described, say, here in the first answer: Starting New Project in Android Studio
When I press finish, I get the following screen:
EDIT: The directory in which Android studio is installed is contained within a User folder that contains a space (it can't be renamed). This might be a source of problems (I don't know). I also tried saving the projects in folder C, not in a subfolder contained within C, but this solves nothing (Android Studio was not installed in said folder).
I've read that upon successfully creating such a new project, I should get a screen with some basic code on it. I get nothing like this. I also read that Android studio should create an xml file and a .java file. The .java file is missing.
What's going wrong here? Where can I start writing code? How can I fix this?
Its look like your project is not created properly, If you create new project in android studio it will look like as below SS.
You can also check your project folder and file from finder option like below SS.
After that you can see below structure for your project
You don't found anything like above SS please try to create another project but this time change your location for your project.
One more thing in Android Kotlin is more preferable over JAVA so also check with Kotlin for development.
Good Luck!!.
I'm trying to do something simple. I have an APK file, I want to change a certain variable value in a certain activity, and then recompile it back to APK so I can use it on my android device.
It's been days since I started with it and I can't find any solution for it.
I tried these approaches:
Decompile it with APKtool.
Open it with Android studio.
Change the value you want.
Couldn't recompile it to APK.
Decompile it with APKtool / Open the APK with 7-Zip.
Convert classes.dex to jar using dex2jar.
Open the jar file using luyten or jadx (jd-gui had an "internal error").
Couldn't edit the files.
On a different approach I can't remember how I did it, I was able to get to the activity files, but couldn't understand how to recompile it to APK again.
Please, if you have any idea of how do edit the classes and the activity, let me know. I have read lots of SO questions and google it so many times but I couldn't find any solution for it. Thanks!
Using Android apk tool you can able to decompile the existing APK only. You can't recompile it. It will throw error
If you are going to convert dex file to JAR file and JAR file to dex file that also won't work most of the times.
But one solution is available.. "DexPatcher". I tried this one but got stuck in between do to lack of knowledge... You can try "Dexpatcher tool" it will be good. If u got any idea please let me know..
Have a good day
I suggest you to use APK Studio. You can decompile/recompile apk using it. However, you cannot edit the source in Java. It decompiles in language called smali. If you need to just change a value, I guess this tool can solve your problem.
Use apk-editor.
Apk-editor is app in android
That decompile and recompile apk
apkeditor
I'm new to Android NDK and i've faced this error that
"APP_BUILD_SCRIPT points to C:\abc\xyz/jni/Android.mk"
I searched all the questions wasn't able to find the answer. However by just goofing around i was able to generate the jni library.
I did the following changes
1) I added a user variable APP_BUILD_SCRIPT which points to my project's Android.mk. eg.
C:\abc\src\jni\Android.mk
2) I added another user variable NDK_PROJECT_PATH to the src folder of my project. eg.
C:\abc\src
This src folder will have a folder named jni which contains my Native.c file and Android.mk.
And when I compiled, I saw a libs folder containing armeabi\lib_filename.so
However now when I run the program it throws an error "UnsatisfiedLinkError"
How do I tackle this?
Also for each project I have to change my user variables can anyone tell me a way to solve these issues.
Information:
I followed this example: How to use NDK in android project?
Just add my steps to it and you should be able to generate .so file.
I am trying to write a project that communicates with a Bluetooth device and receives information from it. I googled it and from what I understood I had to get a package named 'bluecove' which will contain all I need. I downloaded the jar file, and (in Eclipse) by right-clicking on 'my project>build path>jar file>bluecove', I added the jar file into my project. When I try to run some lines of code, it gives me an error that says that some content is unavailable:
Native Library intelbth_x64 not available
Native Library bluecove_x64 not available
Then I went back to the bluecove website and i saw there another Windows file for download called 'bluecove-2.1.0-sources.tar.gz'
here is a link:
http://code.google.com/p/bluecove/downloads/list
When I downloaded it, there was a folder inside named 'bluecove-2.1.0' which I think I have to copy into one of the system's folders. What should I be doing here?
Thanks
p.s i will need the answer as soon as possible - in the next 9 hours at most, please help me
and again thanks
As stated here (commented by oxc), you need to download the .jar specified: http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.62/
I'm using Eclipse-plugin to develop Android applications on mac.
I've got a project and I followed the steps in 'Android Tools > Export signed Application Package' successfully, but all I end up with is a blank-icon .apk.
Is it supposed to look like that? I've followed the instructions from what I can tell.
And when I transfer it to a phone, it won't execute. It's just reads "Can't use as a valid .apk-file". For the record, the application works just fine in the emulator.
Any help on this please?
did you check taht you have an icon file inside your drawables folder?
drawable
drawable-ldpi
drawable-mdpi
drawable-hdpi
should have it at least in drawable folder but chek every folder just in case the current icon defined un any of those folder is corrupted.
Seems like I've solved the problem... somehow. it just started working for some reason.
I guess the application was signed and zip aligned as aimed for after all.