Restore source code of the app [duplicate] - java

This question already has answers here:
Is there a way to get the source code from an APK file?
(32 answers)
Closed 8 years ago.
I used revert local history and now there is no code at all. I have a working version of the app on my phone.
Is there any way I can get the source code back from my phone?

No. You can't get exact source code from .apk file.
You can try find your answer here.
Is there a way to get the source code from an APK file?
But this will not the exact copy of your project.

Related

Creating Jar file for Java code with Intelij [duplicate]

This question already has answers here:
How to build JARs from IntelliJ properly?
(23 answers)
Closed 3 years ago.
How can I creat a Jar File of my Java GUI code using Intelij, so I can run my programe and use it like other programes without opening the compiler ?
Can someone help me please ?
Here is the link to the same Question which was asked previously on StackOverflow.
How to build jars from IntelliJ properly?

Can we undo file.delete() function in java? [duplicate]

This question already has answers here:
Using Java's File.delete() method
(4 answers)
Closed 6 years ago.
I was trying to delete some duplicate files in my folder which is around 230GB. Therefore, I searched for files with the names _2 or _3 and use the
file.delete();
However, it deletes the files that I wasn't expecting it. Can I undo that process or are those files deleted permanantly?
The Files are gone. See this Question below
http://stackoverflow.com/questions/11106850/using-javas-file-delete-method
So, about the workaround, If this was on windows, using recovery tools like "File Scavenger" might help you out.

Is it possible to obfuscate java code and then building an APK file from those java files? [duplicate]

This question already has answers here:
Is it really impossible to protect Android apps from reverse engineering?
(10 answers)
Closed 8 years ago.
I am building an android app and i want to secure its source code. I am building it by using Java. As i have gone through some answers here which is related to obfuscation of java code and protecting it from reverse engineering. So is it also possible in android development. If yes then how?
And if it is not possible then how can we protect apk file from reverse engineering.
Have a look at ProGuard :
Proguard

can I delete xml files ? android [duplicate]

This question already has answers here:
Android - Create app with pure Java and no XML?
(6 answers)
Closed 9 years ago.
whenever I create an activity in android, XML files are automatically generated. Can I delete them if I do the layout programmatically in Java code ?
Sure... You can do it.
Look this, Layouts.
So, regarding it, we can create our .xml files and then add to our Project.

How to export text into pdf in Java, Android? [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
How to create pdf files on android
I need to create app for exporting text into pdf file. But I don't know how to do it, because I never used it ever. Help me please, give me an example for this task or link for tutorial.
Some libraries in java to acheive this
http://pdfbox.apache.org/
http://itextpdf.com/

Categories

Resources