Jump to content

How to edit an existing apk with Java code?

Strayan_Hades

Hi,

 

I'm currently being study the Kotlin code language to develop apps in android studio. 

 

I discovered an issue with an app on my tablet which I want to try and fix. But the problem is that the code is in Java and I want to be able to translate it into Kotlin so it is more compatible with android studio and my current knowledge.

 

Any help on this would be great.

 

Cheers.

 

Link to comment
Share on other sites

Link to post
Share on other sites

IntelliJ has a Java to Kotlin converter, it works best on IntelliJ IDEA but there is an online version. However you can't go the other direction.

https://try.kotlinlang.org/#/Kotlin Koans/Introduction/Java to Kotlin conversion/Task.kt

¯\_(ツ)_/¯

 

 

Desktop:

Intel Core i7-11700K | Noctua NH-D15S chromax.black | ASUS ROG Strix Z590-E Gaming WiFi  | 32 GB G.SKILL TridentZ 3200 MHz | ASUS TUF Gaming RTX 3080 | 1TB Samsung 980 Pro M.2 PCIe 4.0 SSD | 2TB WD Blue M.2 SATA SSD | Seasonic Focus GX-850 Fractal Design Meshify C Windows 10 Pro

 

Laptop:

HP Omen 15 | AMD Ryzen 7 5800H | 16 GB 3200 MHz | Nvidia RTX 3060 | 1 TB WD Black PCIe 3.0 SSD | 512 GB Micron PCIe 3.0 SSD | Windows 11

Link to comment
Share on other sites

Link to post
Share on other sites

On 2/17/2019 at 12:00 AM, BobVonBob said:

IntelliJ has a Java to Kotlin converter, it works best on IntelliJ IDEA but there is an online version. However you can't go the other direction.

https://try.kotlinlang.org/#/Kotlin Koans/Introduction/Java to Kotlin conversion/Task.kt

I should add that the kotlin converter doesn't always work very well, especially on complex apps. I suggest just using the java code, it's not that different and OP won't need to lose their mind if the conversion causes problems they didn't account for.

On 2/16/2019 at 11:49 PM, Strayan_Bass said:

so it is more compatible with android studio

Java is 100% compatible with Android Studio, which was originally designed for Java code.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×