I want to use ProGuard to obfuscate my app (using Eclipse). Unfortunately ProGuard is only enabled when exporting the release version. Is there any way to test the proguarded build on the development machine since I don't own an android device? I use a lot of native code etc., so I want to get sure nothing essential gets optimized away.
Thank you
Related
I've installed and set up Java JDK 17 as well as Android SDK (the manual way) on my Ubuntu 22.04.
From there, is it possible to develop an Android application in Java WITHOUT Android Studio ?
Developing through the command line or through a light IDE is fine by me, but there are very few guidance and information out there.
Thanks to enlighten me.
Sure you can! You'll need to type an awful lot of stuff though, that Android Studio does for you automatically:
You'll need to create gradle files to build your project, you'll need to create an Android manifest to describe your Android components and your app (permissions, themes, target SDK, etc.).
You'll need to create the code files containing your Android components (Activity, Fragment, Service, BroadcastReceiver, etc.). You'll need to create all your UI definition files in XML (layouts and other resources).
Then you can use gradle on the command line to run all the necessary preprocessors, code generators, compilers, linkers, resource builders and package builders to give you an APK which you can then install on your device for testing. And you can debug by writing lots of stuff to the logs and using adb commands to get the logcat off the device to see the log messages, exceptions and stack traces.
I am wandering if building a Flutter app with different java versions make any difference. Could the version influence if the app crashes or not in an old device, for example?
Generally, It won't effect anything. However, if you're using some plugin/package that require specific java version, it might cause a problem. If your app crashes, read the log and see if it is caused by a package/plugin and if so, that particular package might need a specific version.
I am using Android Studio (IntelliJ) to program Android apps and am facing a problem with hot code swapping and libgdx.
When I run the desktop application in demo mode everything works fine. If I try to change a bit (e.g. the color of an element) nothing is refreshed in the application. Even if I select Run->Reload changed changes a new gradle build is started (takes very long) and then says couldn't find any changes.
I have imported the same sample application in eclipse. There I can just change something in the code and it is immediately shown in the running app.
Anyone else experiencing this issue? Why is this not possible in IntelliJ?
Unfortunately, hot swap debugging does not appear to work when using the Gradle template.
It is actually possible as specified here, you need to disable the Android Support plugin if you want hot code swap to work with Gradle and libGDX.
Well i `ve made an app using java me and as graphics i used lwuit library which i added into the midlet`s jar. On Nokia it runs smooth and i wanted to port it to android. So i found out about microemulator http://microemu.blogspot.ro/2008/11/running-java-me-applications-on-android.html and i followed those steps and i got the apk. However when i run it into the Android Emulator it closes at start. I don`t know what may be the problem because i was able to convert the demo jar app into apk and it ran succesfuly.
Any ideas on what should i do?
I suggest you port your application to Codename One which should be pretty simple. It has proper Android support which will make your application look and act native on Android.
I am an Indie Game Developer, and I am currently building a game for the Android Platform, using NDK.
My problem is that, this game is now more than 20MB in size and is taking a lot of time to deploy and start up on my Android Device, which is becoming a pain and is slowing me down.
So, I wanted to know
Is any way to hot deploy just the delta changes, that I make to my Android Project, instead of building and installing the whole thing to my Android Device again and again?
Is it even possible? I am looking for some thing like JRebel tool, for the Java VM and Java Containers.
[Update: Any other thoughts on bringing down the build time, please?]
Thanks and Cheers!
[Note: Just wanted to mention that I will not be be able to use the emulator for faster builds, because my game uses OpenGL library heavily, which the emulator cannot handle.]
So, I wanted to know if there is any way to hot deploy just the delta changes, that I make to my Android Project, instead of building and installing the whole thing to my Android Device again and again?
Not for stuff you are packaging inside your APK.
Just wanted to mention that I will not be be able to use the emulator for faster builds, because my game uses OpenGL library heavily, which the emulator cannot handle.
I would hope that the latest emulators (with hardware acceleration) and the x86 emulator images for 2.3.3 and 4.0.3 would run your game acceptably fast.
Actually hotswaping delta changes on Android is possible. You should use some special tools to achieve this behavior. You can try the tool: InstaRelaoder use "inirwetrust" as the password
JRebel is available for Android, and supports NDK projects.
https://zeroturnaround.com/software/jrebel-for-android/
Android Studio 2.0 has now an Instant Run feature.
More info in this link.