File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes can we get a code from APK file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "can we get a code from APK file" Watch "can we get a code from APK file" New topic
Author

can we get a code from APK file

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1130
I need to know if we have apk file,can we get the code from it ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41856
    
  63
The question is generally moot, since if you don't have the source code for said APK to begin with, you most likely wouldn't have the rights to use it. What prompted this question?


Ping & DNS - my free Android networking tools app
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1130
one of my friend ask he need my apk file.So i just need to know whether he can get the code from my apk file ?
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3100
    
  40

sameera liyanage wrote:whether he can get the code from my apk file ?

Yes he can.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1130
I need more details.
1)can he get full code from the ap k file?
2)how to create a ap k file which prevent getting code ?
3)how to get a code from ap k file ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41856
    
  63
Using ProGuard as part of the build (like you would do for a release build) helps.

As to #3, we're not going to discuss potentially breaking the law in these forums.

By the way, are you sure this person is really a "friend" of yours, if you suspect him of attempting to steal your intellectual property?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we get a code from APK file